SetPlayerHealth/Armour GetplayerHealth/Armour fails?
#1

Hello,

My anticheat is working like:
SetPlayerArmour(playerid,75);
pS[Armour] = 75;

And my one second timer detect:

GetPlayerArmour(playerid,pS[ClientArmour);
pS[ClientArmour] == 0.00000
pS[Armour] == 75.0000

Not a problem but then:

pS[Armour = pS[ClientArmour];

And then:

GetPlayerArmour(playerid,pS[ClientArmour);
pS[ClientArmour] == 75.0000
pS[Armour] == 0.0000

And kicked...

So the problem is that sa-mp doesn't really see immediately that a player has get health or armour, but it takes like
0.5 seconds.... And thats a kind of fail...
Question is, is this true or is it me that is doing something wrong?
Reply


Messages In This Thread
SetPlayerHealth/Armour GetplayerHealth/Armour fails? - by KaleOtter - 23.03.2011, 22:10
Re: SetPlayerHealth/Armour GetplayerHealth/Armour fails? - by [L3th4l] - 23.03.2011, 22:15
Re: SetPlayerHealth/Armour GetplayerHealth/Armour fails? - by KaleOtter - 23.03.2011, 22:28

Forum Jump:


Users browsing this thread: 2 Guest(s)