23.09.2013, 18:41
Hello. I want that If I set the Player Health to 24 so His health set to 24. I almost completed the Command but I want to add these lines. I mean If I set Player Health like:
/heal <playerid> <amount>
/heal 0 59
So his health should be set to "59" exactly.
So I made it:
What to Add now?
/heal <playerid> <amount>
/heal 0 59
So his health should be set to "59" exactly.
So I made it:
pawn Код:
CMD:heal(playerid, params[])
{
new id;
if(sscanf(params,"u",id)) return SendClientMessage(playerid, COLOR_RED1, "[ ! ] USAGE: /heal <playerid> <amount>");
if(!IsPlayerConnected(id))return SendClientMessage (playerid, COLOR_WHITE, "ERROR: Invalid Player Id");
if(IsPlayerAdmin(id)) return SendClientMessage (playerid, COLOR_RED1, "[ ! ] You have restored player health");
return 1;
}