29.03.2011, 21:44
pawn Код:
CMD:sethp(playerid, params[])
{
new player2, Float:health;
if(sscanf(params, "uf", player2, health)) SendClientMessage(playerid, COLOR_WHITE, "[USAGE]:/sethp <playerid> <health>");
else if(!IsPlayerConnected(player2)) SendClientMessage(playerid, COLOR_WHITE, "Invalid Player.");
else
{
SetPlayerHealth(player2, health);
SendClientMessage(playerid, COLOR_WHITE, "Player Health Set.");
SendClientMessage(player2 , COLOR_WHITE, "Your health has been set.");
return 1;
}
return 1;
}