Health set
#5

pawn Код:
if(issuerid != INVALID_PLAYER_ID)
{
    if(weaponid == 34)
    {    
        new Float:health;    
        GetPlayerHealth(playerid, health); //We're saving it to our new Float:health variable.    
        SetPlayerHealth(playerid, (health)-50);
    }
    return 1;
}
or replace
SetPlayerHealth(playerid, (health)-50);
with
SetPlayerHealth(playerid, -50);
Reply


Messages In This Thread
Health set - by DaRk_RaiN - 24.09.2012, 21:38
Re: Health set - by clarencecuzz - 24.09.2012, 21:55
Re: Health set - by DaRk_RaiN - 25.09.2012, 21:45
Re: Health set - by clarencecuzz - 26.09.2012, 00:54
Re: Health set - by ikbenremco - 26.09.2012, 05:08
Re: Health set - by DaRk_RaiN - 26.09.2012, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)