17.06.2014, 13:38
pawn Code:
CMD:sethp(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use this command!");
new Float:Health, PID;
if(sscanf(params, "uf", PID, Health)) return SendClientMessage(playerid, -1, "USAGE: /sethp [playerid] [health]");
if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, -1, "Player is not connected.");
SetPlayerHealth(PID, Health);
return 1;
}