Anti cheat 1.0
#5

PHP Code:

PlayerName
(playerid
{
     static 
Name[MAX_PLAYER_NAME];
     
GetPlayerName(playeridNameMAX_PLAYER_NAME);
     return 
Name;
}
new 
VerificarAC[MAX_PLAYERS];
public 
OnPlayerUpdate(playerid)
{
    static 
time;
    
time gettime();
    if(
VerificarAC[playerid] < time)//Intervalo de 1 seg
    
{
        
AntiXiter(playerid);
        
VerificarAC[playerid] = time;
    }
    return 
true;
}
forward AntiXiter(playerid);
public 
AntiXiter(playerid)
{
    static
        
string[100],
        
Float:x,
        
Float:y,
        
Float:z
    
;
    if(
GetPlayerWeapon(playerid) != WEAPON_PARACHUTE)
    {
        switch(
GetPlayerAnimationIndex(playerid))
        {
            case 
9749689749591539: {} //
            
default:
            {
                if(
kickado[playerid] == 0)
                {
                    
kickado[playerid]++;
                    
format(stringsizeof(string), "[ANTI-CHEAT]: %s foi kickado [Motivo: Skin Bug]"PlayerName(playerid));
                    
SendClientMessageToAll(-1string);
                    
SetTimerEx("rkick"500false"i"playerid);
                    print(string);
                }
                if(!
IsPlayerInWater(playerid)
                {
                      
GetPlayerPos(playeridxyz);
                    if(
14)
                    {
                        if(
kickado[playerid] == 0)
                        {
                            
kickado[playerid]++;
                            
format(stringsizeof(string), "[ANTI-CHEAT]: %s foi kickado [Motivo: Fly]"PlayerName(playerid));
                            
SendClientMessageToAll(-1string);
                            
SetTimerEx("rkick"500false"i"playerid);
                            print(string);
                        }
                    }
                }
            }
        }
    }

Reply


Messages In This Thread
[FilterScript] Anti cheat 1.0 - by RedMF - 14.09.2016, 19:32
Re: Anti cheat 1.0 - by Bruno13 - 14.09.2016, 19:53
Re: Anti cheat 1.0 - by Carlos001 - 14.09.2016, 21:14
Re: Anti cheat 1.0 - by ViDaLoKa1 - 14.09.2016, 21:42
Re: Anti cheat 1.0 - by XandyMello - 15.09.2016, 03:24
Re: Anti cheat 1.0 - by RiqueP - 15.09.2016, 04:19
Re: Anti cheat 1.0 - by RiqueP - 15.09.2016, 13:07
Re: Anti cheat 1.0 - by RedMF - 15.09.2016, 13:30
Re: Anti cheat 1.0 - by Carlos001 - 15.09.2016, 20:54
Re: Anti cheat 1.0 - by Bruno13 - 15.09.2016, 21:52

Forum Jump:


Users browsing this thread: 2 Guest(s)