19.08.2013, 10:47
pawn Код:
//=====[Set HP]=====
CMD:sethp(playerid, params[])
{
if(PlayerInfo[playerid][Adminlevel] < 4) return SendClientMessage(playerid,COLOR_RED,"You're not allowed to use this command!");
new targetid,
health;
if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_RED,"[ERROR] Player not connected!");
if(sscanf(params, "ui", targetid, health)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /sethp [PlayerID/PartOfName] [Amount]");
SetPlayerHealth(targetid, health);
return 1;
}