SA-MP Forums Archive
Insane amounts of armor from GetPlayerArmor - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Insane amounts of armor from GetPlayerArmor (/showthread.php?tid=407380)



Insane amounts of armor from GetPlayerArmor - iTorran - 13.01.2013

Hi,

The server I script for has an armor anti-cheat, works pretty well.
Every so often though, it will kick almost everyone from the server (Admins included) for having insane amounts of armor..

Example:
[05:12:2012 - 17:17:20] ANTICHEAT -- ADMIN ** found with 1120403456 armour
[30:12:2012 - 15:57:21] ANTICHEAT -- ADMIN ** found with 1120403456 armour
[13:01:2013 - 18:03:53] ANTICHEAT -- ADMIN ** found with 1120403456 armour

There is always a "suspicious" person online the server when this happens.
Could it be a hack, or a script bug?

I see it is an easy script fix, but would be nice to know whether or not it's caused by a hack.


Re: Insane amounts of armor from GetPlayerArmor - nmader - 13.01.2013

If nearly everyone is being kicked from the server I'm going to say it's a script bug as a player cannot have the ability to kick everyone by armour. So it's most likely a script issue.


Re: Insane amounts of armor from GetPlayerArmor - zJordioz - 13.01.2013

Would you mind showing your code for detecting armour?


Re: Insane amounts of armor from GetPlayerArmor - Konstantinos - 13.01.2013

What it makes me believe that it's a scripting bug is the amount. Armour is a float, but the amount of the messages are 1120403456.


Re: Insane amounts of armor from GetPlayerArmor - iTorran - 13.01.2013

Quote:
Originally Posted by Dwane
Посмотреть сообщение
What it makes me believe that it's a scripting bug is the amount. Armour is a float, but the amount of the messages are 1120403456.
Thanks for pointing that out, I just noticed the script isn't printing them as floats