23.11.2017, 07:32
So at the top it's
?
I would rather not use static as to be honest I'm not sure what it is, I'm still in learning pawn. But i'm sure it would work.
edit: I have edited that post
Or we could do it with pVars something like
then on off godmode something like
right?
but last time i used pvars in a filterscript i got the response
PHP Code:
new Float:oldHealth[MAX_PLAYERS];
I would rather not use static as to be honest I'm not sure what it is, I'm still in learning pawn. But i'm sure it would work.
edit: I have edited that post
Or we could do it with pVars something like
PHP Code:
new Float:health;
PHP Code:
GetPlayerHealth(playerid, health);
SetPVarFloat(playerid, "oldHealth", health);
PHP Code:
SetPlayerHealth(playerid, GetPVarFloat(playerid, "oldHealth"));
but last time i used pvars in a filterscript i got the response