3 posts in this topic

/red - сам команда

pAdmin == 0 - проверка на администратора

SetPlayerColor - собственно выдача цвета на ник

Спойлер

if(strcmp(cmd,"/red",true)==0)//
{
    if(!PlayerInfo[playerid][pAdmin] == 0)
    {
        SetPlayerColor(playerid,0x68000088); 
    }
    else
    {
        SendClientMessage(playerid,COLOR_LIGHTRED,"Вы не администратор!");
    }
    return 1;
}

 

 

Share this post


Link to post
Share on other sites

invalid function or declaration

И так 4 раза

Share this post


Link to post
Share on other sites

@Tony_Hasl ✔ код покажи, точнее сюда свою кмд скинь и код

DC_CMD

 

 
cmd:red(playerid,params[])
}
   if(PI[playerid][pAdmin] < 0) return SCM(playerid, COLOR_GREY, NO_DUTY_TEXT);
   if(sscanf(param,"d")) return SendClientMessage(playerid,COLOR_RED,"Используйте: /red");
   if SetPlayerColor(playerid,fa0000); 
     return 1;
}

 

Edited by Donaldo_Farekelka

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content