15.11.2011, 21:35
Hi so i made this code but i know i messed up something, so some help fixing the code would be nice.
The healer has to be close to the other person.
PlayerDied = When a person is dying.
The healer has to be close to the other person.
PlayerDied = When a person is dying.
Код:
COMMAND:heal(playerid, params[]) { new deadid; if(sscanf(params, "i", deadid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /aheal [ID]."); if(PlayerDied[playerid] == 1) { if(IsPlayerInRangeOfPoint(playerid, 7.0, deadid, deadid, deadid)) { if(!IsPlayerConnected(deadid)) return SendClientMessage(playerid, COLOR_GREY, "That Player Is Not Connected!"); SetPlayerHealth(deadid, 100); } else { SCM(playerid, COLOR_GREEN, "l"); } } return 1; }