Health set
#1

Hi samp i have a question with SetPlayerHealth
I need the player to lose 50hp with each sniper shot and yes i did use OnPlayerTakeDamage before the following code
//================================================== ========
if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
{
new Float:health;
SetPlayerHealth(playerid,GetPlayerHealth(playerid, health-50));//wouldn't compile and even if it did it ouldn't work proparly
}

return 1;
}
//================================================== =====================
Thanks for reading!
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)