#3

Try
pawn Код:
CMD:armour(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return 0; //If the player is not admin show 'unknown command'
    SendClientMessage(playerid,-1,"You've sucessfully used armour!");
    SetPlayerArmour(playerid,100.0);
    return 1;
}
EDIT: Stinged beat me to it :P
EDIT2: The reason that I used return 0 after IsPlayerAdmin, and did not use SendClientMessage, is simply because the normal players don't have to know that the command exists.
Reply


Messages In This Thread
help - by saffierr - 14.07.2014, 09:00
Re: help - by Stinged - 14.07.2014, 09:03
Re: help - by Jstylezzz - 14.07.2014, 09:04
Re: help - by Jack_Leslie - 14.07.2014, 09:04
Re: help - by saffierr - 14.07.2014, 09:10
Re: help - by Jack_Leslie - 14.07.2014, 09:13
Re: help - by saffierr - 14.07.2014, 09:28
Re: help - by Jack_Leslie - 14.07.2014, 09:37
Re: help - by Stinged - 14.07.2014, 09:48
Re: help - by saffierr - 14.07.2014, 11:10

Forum Jump:


Users browsing this thread: 2 Guest(s)