24.09.2012, 21:38
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!
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!