26.07.2012, 15:51
pawn Code:
CMD:sethealth(playerid, params[])
{
new user, health;
if(!sscanf(params, "ui", user, health))
{
if(user != INVALID_PLAYER_ID)
{
SetPlayerHealth(user, health);
}
else return SendClientMessage(playerid, red, "SERVER: Invalid ID.");
}
else return SendClientMessage(playerid, white, "USAGE: /sethealth [ID] [AMMOUNT]");
return 1;
}