11.08.2013, 17:15
pawn Код:
CMD:heal(playerid, params[]) {
new id;
if (sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFF0000AA, "Usage : /heal <ID>");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000AA, "Player not found");
SetPlayerHealth(id, 100.0);
SendClientMessage(id, 0x00FF00AA, "You have been healed");
SendClientMessage(playerid, 0x00FF00AA, "Player healed");
return 1;
}