23.09.2013, 18:45
This is the way you want it to work. Work on it to suit your needs.
pawn Код:
CMD:heal(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new id,amount;
if(sscanf(params,"ui",id,amount)) return SendClientMessage(playerid, COLOR_RED1, "[ ! ] USAGE: /heal <playerid> <amount>");
if(!IsPlayerConnected(id))return SendClientMessage (playerid, COLOR_WHITE, "ERROR: Invalid Player Id");
SetPlayerHealth(id,amount);
}
return 1;
}