Healing a player?
#1

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.


Код:
		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;
}
Reply


Messages In This Thread
Healing a player? - by Chrillzen - 15.11.2011, 21:35
Re: Healing a player? - by IceCube! - 15.11.2011, 21:40
Re: Healing a player? - by Chrillzen - 15.11.2011, 21:56

Forum Jump:


Users browsing this thread: 1 Guest(s)