23.03.2011, 22:10
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?
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?