Limit of healing and timer???
#6

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new Float:pHealth;
    GetPlayerHealth(playerid,pHealth);
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if (PlayerToPoint(0.5, playerid, 1778.5148,-1575.8615,17.4416))
        {
            if (pHealth > 99.0) return SendClientMessage(playerid, 0xFF0000FF, " Your health is full");
            else
            {
                #define newhealth 25
                SetPlayerHealth(playerid,pHealth + newhealth);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Limit of healing and timer??? - by Moustafa - 28.06.2009, 08:58
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:03
Re: Limit of healing and timer??? - by woot - 28.06.2009, 09:03
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:05
Re: Limit of healing and timer??? - by dice7 - 28.06.2009, 09:06
Re: Limit of healing and timer??? - by woot - 28.06.2009, 09:09
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:11
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:17
Re: Limit of healing and timer??? - by yom - 28.06.2009, 09:20
Re: Limit of healing and timer??? - by Moustafa - 28.06.2009, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)