SA-MP Forums Archive
[Ajuda] Anti speed ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Anti speed ! (/showthread.php?tid=394167)



Anti speed ! - WINDOWNS7 - 21.11.2012

Olб galera, bem venho procurando soluзхes sobre o famoso speed hack, jб vi vбrios tуpicos falando sobre prevenзхes, jб testei todos os filterscript's de anti hack como: JunkBuster, bProteзгo e etc.. Mas eles nгo funcionam corretamente, eles basicamente, como posso dizer, nгo detecta os verdadeiros hack's.

> Queria ajuda para conseguir um anti-speed hack ! Jб tentei fazer, nгo consegui completamente, so consegui por limite de velocidade, e este limite de velocidade atrapalha, pois meu servidor possui DROP e vбrios outros mapas que possui 'W*lide'

Desde jб, agradeзo.



Re: Anti speed ! - Zona_Sky - 21.11.2012

Quote:

so consegui por limite de velocidade, e este limite de velocidade atrapalha, pois meu servidor possui DROP e vбrios outros mapas que possui 'W*lide'

ai fica dificil nй .


Re: Anti speed ! - Maklister - 21.11.2012

EDITED:

Simples

so estudar e configurar a seu gosto

pawn Код:
stock GetPlayerSpeed(playerid,bool:kmh)
{
    new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
    if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
    rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
    return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
public OnPlayerUpdate(playerid)
 {
    if(GetPlayerSpeed(playerid, true) > 250)
    {
        for(new f; f<MAX_PLAYERS; f++)
        {
            SpeedA[playerid]++;
            if(IsPlayerAdmin(f))
            {
                if(SpeedA[playerid] < 5)
                {
                    new name[MAX_PLAYER_NAME+1];
                    GetPlayerName(playerid, name, sizeof(name));

                    new amsg[80];
                    format(amsg, sizeof(amsg), "Velocidade do jogador %s foi de %d Km/h, Suspeita: Speed Hacker",  name ,GetPlayerSpeed(playerid, true));
                    SendClientMessage(f, -1, amsg);
                }
            }
            if(SpeedA[playerid] >= 5)
            {
                SendClientMessage(playerid,-1, "Vocк foi kickado por suspeita de speed hacker.");
                Kick(playerid);
            }
        }
    }
    return 1;
}
Caso nгo queira uma uma settimer global, pois OnPlayerUpdate й muito rбpido podendo causar lag

Espero ter ajudado.


Respuesta: Re: Anti speed ! - WINDOWNS7 - 21.11.2012

Quote:
Originally Posted by Zona_Sky
Посмотреть сообщение
ai fica difнcil nй .
Mas quem disse que para criar um bom Filterscript de anti speed й fбcil ?
Й difнcil achar um bom, sem bug's e que nгo de kick/ban em pessoas inocentes.


Respuesta: Re: Anti speed ! - aldair8 - 21.11.2012

Quote:
Originally Posted by Murilo_sousa
Посмотреть сообщение
EDITED:

Simples

so estudar e configurar a seu gosto

pawn Код:
stock GetPlayerSpeed(playerid,bool:kmh)
{
    new Float:Vx,Float:Vy,Float:Vz,Float:rtn;
    if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz);
    rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2)));
    return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100);
}
public OnPlayerUpdate(playerid)
 {
    if(GetPlayerSpeed(playerid, true) > 250)
    {
        for(new f; f<MAX_PLAYERS; f++)
        {
            SpeedA[playerid]++;
            if(IsPlayerAdmin(f))
            {
                if(SpeedA[playerid] < 5)
                {
                    new name[MAX_PLAYER_NAME+1];
                    GetPlayerName(playerid, name, sizeof(name));

                    new amsg[80];
                    format(amsg, sizeof(amsg), "Velocidade do jogador %s foi de %d Km/h, Suspeita: Speed Hacker",  name ,GetPlayerSpeed(playerid, true));
                    SendClientMessage(f, -1, amsg);
                }
            }
            if(SpeedA[playerid] >= 5)
            {
                SendClientMessage(playerid,-1, "Vocк foi kickado por suspeita de speed hacker.");
                Kick(playerid);
            }
        }
    }
    return 1;
}
Caso nгo queira uma uma settimer global, pois OnPlayerUpdate й muito rбpido podendo causar lag

Espero ter ajudado.
onde no gm eu coloco isso?


Re: Anti speed ! - UzT - 21.11.2012

Procura o primeiro stock e cria uma chave quando ele acabar, й amocando que a bagaзa anda '--