16.11.2011, 20:35
pawn Код:
COMMAND:sethp(playerid, params[])
{
if(PlayerInfo[playerid][PlayerAdmin] < HP_LEVEL) return SendClientMessage(playerid,COLOR_RED, "You Cant Use This Command !!!");
new targetid,intgr;
if(sscanf(params,"ui", targetid,intgr)) return SendClientMessage(playerid, COLOR_WHITE, ""WHITE"Usage: "GREEN"/sethp "WHITE"[playerid] "WHITE"[ammount]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Player ID"RED"(Player Is Not Connected)!");
SetPlayerHealth(targetid, intgr);
return 1;
}