How can i ?
#2

Somewhere on top
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;
}
in cmd
pawn Код:
if(!PlayerCanUseCmd(playerid)) return SendClientMessage(playerid,-1,"You can't use this command :<");
Reply


Messages In This Thread
How can i ? - by CraTzy - 31.10.2015, 10:51
Re: How can i ? - by Jefff - 01.11.2015, 16:35
Re: How can i ? - by CraTzy - 02.11.2015, 06:42

Forum Jump:


Users browsing this thread: 1 Guest(s)