Anti Armor
#1

Hello,I want to make that if player has got armour he get automaticly ban.

I tried JunkBuster but script to big.

I was trying some think like this:
Код:
public AntiArmour( playerid );
{
  if((playerid)armour == 100);
  {
  banning[i] =1;
  }
}
but not works XD
Reply
#2

Just put this somewhere in your OnPlayerUpdate, or in any timer you have running:

pawn Код:
new Float:armour;
GetPlayerArmour(playerid, armour);    // Gets the armour value
if(armour > 0.0) Ban(playerid);    // Checks if the armour is bigger than 0
Reply
#3

A good way I found around armour hacks is to set their armour to 99 and never 100, and if they ever have 100 armour they're cheating.
Reply
#4

Where should I put it,on game mod init,or on player spawn ?
Reply
#5

The check for armour? On a timer.
Reply
#6

sorry I am not at scripting but I need every think add liek this ?

Код:
// On the top
forward timer( playerid );
// then public timer ( playerid );
{
new Float:armour;
GetPlayerArmour(playerid, armour);    // Gets the armour value
if(armour > 0.0) Ban(playerid);    // Checks if the armour is bigger than 0

}
Like this ?
Reply
#7

pawn Код:
forward ArmourCheck();

public ArmourCheck()
{
    new Float:pArmour;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        GetPlayerArmour(i, pArmour);
        if(pArmour > 99.0) Ban(i);
    }
}
Reply
#8

Ok thanks
Reply
#9

no works,I downloaded cheats for test,putted armor and not bans.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)