31.01.2014, 23:04
Whenever you use SetPlayerHealth, use this instead.
And add this stock to your script.
This way, your serverside health will equal the clientside health.
Don't forget to make your OnPlayerTakeDamage callbacks and everything use the new stock.
pawn Code:
SetPlayerHealthEx(playerid, 90.0); //example
pawn Code:
stock SetPlayerHealthEx(playerid,Float:health)
{
SetPlayerHealth(playerid,health);
PlayerInfo[playerid][pHealth] = health;
return 1;
}
Don't forget to make your OnPlayerTakeDamage callbacks and everything use the new stock.