Anti-Armour System [HELP] - 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: Anti-Armour System [HELP] (
/showthread.php?tid=306372)
Anti-Armour System [HELP] -
jack3 - 26.12.2011
Код:
GetPlayerArmour(playerid, armour[playerid]);
if(armour[playerid] > oldarmour[playerid])
{
if(ArmourBuyed[playerid] == 1) return 0;
BanEx(playerid, "Armour Hack" );
return 0;
}
else
{
GetPlayerArmour(playerid, oldarmour[playerid]);
}
if(armour[playerid] < 100.0)
{
ArmourBuyed[playerid] = 0;
}
I can compile the code without any errors, and this code works most the time well. But sometimes, when a Player buys armour, he will get banned.
I set the timer, to check if a player is armour hacking, to 1 second.
My problem is, that the script bans innocent players.
I need a solution that fixes this, or do i need a complete different script?