[FilterScript] Anti Fast Auto-CBug
#1

Boa tarde a todos, venho aqui postar este FilterScript que detecta se o jogador estiver usando Auto-CBug.

A Lуgica й bem simples:
O jogador (Sem bugar a eagle) pode dar no mбximo 2 tiros por segundo.
Este FS detecta se o jogador atirou 5 vezes ou mais
com a Desert Eagle em menos de 1 segundo (sem ter apertado a tecla KEY_CROUCH)

Testei muitas vezes e nгo deu nenhuma acusaзгo falsa.

pawn Code:
/*---------------------------------------*\
    Agradecimentos a SA-MP Team
//-
   Anti Macro / Fast Auto-CBUG by: ForT
\*----------------------------------------*/


#include <a_samp>

new fAutoC[MAX_PLAYERS];

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && weaponid == 24){

        fAutoC[playerid] ++;
       
        if(gettime() > GetPVarInt(playerid, "UmSegundo")){
       
            SetPVarInt(playerid, "UmSegundo", gettime() + 1);
            fAutoC[playerid] = 0;

        }else{
            if(fAutoC[playerid] > 4){
           
                SendClientMessage(playerid, 0xFF0000FF, "Vocк estб usando Macro / Auto-CBUG.");
                fAutoC[playerid] = 0;
            }
        }
    }
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_CROUCH)
        fAutoC[playerid] = 0;

    return 1;
}
Espero que seja util
Reply


Messages In This Thread
Anti Fast Auto-CBug - by ForT - 07.06.2014, 18:53
Re: Anti Fast Auto-CBug - by lKoDlFuLLaNNo - 07.06.2014, 19:40
Re: Anti Fast Auto-CBug - by DoN_ReNaTo - 07.06.2014, 19:44
Re: Anti Fast Auto-CBug - by Thider - 07.06.2014, 20:00
Re: Anti Fast Auto-CBug - by PT - 07.06.2014, 20:04
Re: Anti Fast Auto-CBug - by ForT - 07.06.2014, 21:58
Re: Anti Fast Auto-CBug - by WendeLKILL - 07.06.2014, 23:58
Re: Anti Fast Auto-CBug - by Living - 08.06.2014, 15:05
Re: Anti Fast Auto-CBug - by Stronda xD - 08.06.2014, 15:13
Respuesta: Anti Fast Auto-CBug - by TR0J4N - 08.06.2014, 17:53
Re: Anti Fast Auto-CBug - by ForT - 08.06.2014, 17:57
Re: Anti Fast Auto-CBug - by Breno Da Silva Pereira - 12.06.2014, 22:51
Re: Anti Fast Auto-CBug - by WendeLKILL - 12.06.2014, 23:49
Re: Anti Fast Auto-CBug - by gR92 - 13.06.2014, 03:47

Forum Jump:


Users browsing this thread: 1 Guest(s)