Anti-Armour System [HELP]
#1

Код:
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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)