Command help
#4

You could always do the casual strcmp

pawn Код:
CMD:mycommand(playerid, params)
{
    new pname[24];
    GetPlayerName(playerid, pname, 24);
    if(strcmp(pname, "Fernando", true)) return SendClientMessage(playerid, -1, "Only Fernando can use this command!");
    //Command
    return 1;
}
EDIT: Looks like RACGaming beat me to it.
Reply


Messages In This Thread
Command help - by Fernado Samuel - 15.06.2013, 08:41
Re: Command help - by RACGaming - 15.06.2013, 08:44
Re: Command help - by RACGaming - 15.06.2013, 08:47
Re: Command help - by [HiC]TheKiller - 15.06.2013, 08:52

Forum Jump:


Users browsing this thread: 1 Guest(s)