29.03.2011, 20:40
Код:
CMD:sethp(playerid, params[]) { new player2, health; if(sscanf(params, "ud", player2, health)) SendClientMessage(playerid, COLOR_WHITE, "[USAGE]:/sethp <playerid>"); 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; }