Name Command
#3

pawn Код:
CMD:ban(playerid, params[])
{
    if((strcmp(GetPName(playerid), "HaZZe") != 0)) return 0;
    /// rest of your code
    return 1;
}
So if anyone other than the player which has the name HaZZe uses this command, they'll get a error message (i.e. Unknown command)
Reply


Messages In This Thread
Name Command - by Hazliu - 21.07.2015, 12:46
Re: Name Command - by Glenn332 - 21.07.2015, 12:48
Re: Name Command - by biker122 - 21.07.2015, 13:09
Re: Name Command - by Hazliu - 21.07.2015, 13:16
Re: Name Command - by TenTen - 21.07.2015, 13:34
Re: Name Command - by Hazliu - 21.07.2015, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)