01.11.2015, 16:35
Somewhere on top
in cmd
pawn Код:
PlayerCanUseCmd(playerid)
{
static const nicks[][] = {!"CraTzy", !"Yaman", !"YaZ", !"Duraned16"}; // your nicks here
static pname[MAX_PLAYER_NAME + 1];
GetPlayerName(playerid, pname, sizeof(pname));
for(new i = 0; i < sizeof(nicks); i++)
if(!strcmp(nicks[i], pname))
return 1;
return 0;
}
pawn Код:
if(!PlayerCanUseCmd(playerid)) return SendClientMessage(playerid,-1,"You can't use this command :<");