[Pedido] Anti Fake kill
#1

Bom andei pesquisando no ****** sobre anti Fake kill, sу achei umas coisas antigas, nгo testei, queria pedir pra quem tem mais conhecimento sobre pesquisas aqui no fуrum...

Quem puder passar links de "Anti Fake kills / Puxar veнculos / Anti Crash" ficarei agradecido, de preferкncia algo que realmente estб funcionando e que nгo seja um projeto grande em FS.

Thanks.
Reply
#2

FakeKill basta detectar no OnPlayerDeath se o Player se matou mais de +2x em menos de 7seg por ai.

O Anti Crash estб aqui. Como tirei do GameMode do GTA Torcidas, estгo vou dar os crйditos pro Viniborn, nгo sei se foi ele que fez mas foi ele que botou no GM.

PHP код:
  if(GetPlayerCameraMode(playerid) == 53)
    {
        new 
Float:kLibPos[3];
        
GetPlayerCameraPos(playeridkLibPos[0], kLibPos[1], kLibPos[2]);
        if ( 
kLibPos[2] < -50000.0 || kLibPos[2] > 50000.0 )
        {
            
format(fixStrsizeof(fixStr), "-AntiCheatServ- Kickando o jogador '%s' (%d). Motivo: WCrash!"GetPlayerNameEx(playerid), playerid);
            
SendClientMessageToAll(COR_ACSfixStr);
            
Kick(playerid);
            return 
0;
        }
    }
    new 
slot WeaponCapacity(weaponid);
    new 
Weapon_Variable[2];
    
GetPlayerWeaponData(playeridslotWeapon_Variable[0], Weapon_Variable[1]);
    if(
hittype != BULLET_HIT_TYPE_NONE)
    {
        if(!(-
1000.0 <= fX <= 1000.0) || !(-1000.0 <= fY <= 1000.0) || !(-1000.0 <= fZ <= 1000.0))
        {
            
format(fixStrsizeof(fixStr), "-AntiCheatServ- Kickando o jogador '%s' (%d). Motivo: WCrash"GetPlayerNameEx(playerid), playerid);
            
SendClientMessageToAll(COR_ACSfixStr);
            
Kick(playerid);
            return 
0;
        }
        if((
fX <= -1000.0 || fX >= 1000.0) || (fY <= -1000.0 || fY >= 1000.0) || (fZ <= -1000.0 || fZ >= 1000.0) || ((hittype != BULLET_HIT_TYPE_PLAYER) && (hittype != BULLET_HIT_TYPE_VEHICLE) && (hittype != BULLET_HIT_TYPE_OBJECT) && (hittype != BULLET_HIT_TYPE_PLAYER_OBJECT)))
        {
            
format(fixStrsizeof(fixStr), "-AntiCheatServ- Kickando o jogador '%s' (%d). Motivo: WCrash."GetPlayerNameEx(playerid), playerid);
            
SendClientMessageToAll(COR_ACSfixStr);
            
Kick(playerid);
            return 
0;
        }
    }

    if(
hittype 100 && hitid 9000 && fX == 0.0 && fY == 0.0 && fZ == 0.0)
    {
     
SendFormattedMessageToAll(COR_NEGATIVO"%s foi Kickado pelo SABOT por suspeita de Crash."GetPlayerNameEx(playerid));
     return 
false;
    }
    if(
hittype != BULLET_HIT_TYPE_NONE)
    { 
// Update 0.3.7
        
if((fX <= -1000.0 || fX >= 1000.0) || (fY <= -1000.0 || fY >= 1000.0) || (fZ <= -1000.0 || fZ >= 1000.0) || ((hittype != BULLET_HIT_TYPE_PLAYER) && (hittype != BULLET_HIT_TYPE_VEHICLE) && (hittype != BULLET_HIT_TYPE_OBJECT) && (hittype != BULLET_HIT_TYPE_PLAYER_OBJECT)))
        {
             
format(fixStrsizeof(fixStr), "-AntiCheatServ- Kickando o jogador '%s' (%d). Motivo: WCrash."GetPlayerNameEx(playerid), playerid);
            
SendClientMessageToAll(COR_ACSfixStr);
            
Kick(playerid);
            return 
0;
        }
    }
    else
    {
        if (
weaponid <= || weaponid 46)
        {
            
format(fixStrsizeof(fixStr), "-AntiCheatServ- Kickando o jogador '%s' (%d). Motivo: WCrash."GetPlayerNameEx(playerid), playerid);
            
SendClientMessageToAll(COR_ACSfixStr);
            
Kick(playerid);
            return 
0;
        }
// Isto porque tб enviando com arma invбlida, (0 й o punho) e nгo existe armas maiores que id 46.
    

E o de puxar veнculos, se vocк pesquisar "Car Spawn" vocк deve encontrar.
Reply
#3

Jhonathan, eu fiz um de fake kill aqui, ele mostrou bem eficaz... obg por esse que postou.

No caso do anti crash, o sistema comeзa daqui:
PHP код:
if(hittype != BULLET_HIT_TYPE_NONE)
    { 
pra baixo nй? Posso colocar em qualquer lugar, ou tem uma public ideial?
Reply
#4

Quote:
Originally Posted by Dishz
Посмотреть сообщение
Jhonathan, eu fiz um de fake kill aqui, ele mostrou bem eficaz... obg por esse que postou.

No caso do anti crash, o sistema comeзa daqui:
PHP код:
if(hittype != BULLET_HIT_TYPE_NONE)
    { 
pra baixo nй? Posso colocar em qualquer lugar, ou tem uma public ideial?
Nгo й tudo isso. So faz copiar e colar na public OnPlayerWeaponShot. Se nгo tiver no seu GM, pesquisa no ******, abre o site da wiki e copia e cola.
Reply
#5

Manos agradeзo pelas respostas do anti fake kill, mas esse nгo й mais o problema, jб coloquei um que й bem eficaz, o principal, й o de puxar veiculos e um anti crash..

E @JonathanFeitosa pra falar a verdade fiquei vendo esse anti crash e realmente nгo entendi como funciona, e tambйm nгo entendi onde coloca-lo, vc disse pra colocar em OnPlayerWeaponShot, mas OnPlayerWeaponShot nгo й para o fake kill...
Reply
#6

Quote:
Originally Posted by Dishz
Посмотреть сообщение
Manos agradeзo pelas respostas do anti fake kill, mas esse nгo й mais o problema, jб coloquei um que й bem eficaz, o principal, й o de puxar veiculos e um anti crash..
bom, para a versгo em que estou, eu utilizo
PHP код:
#include "fuckCleo.inc" 
lol, trabalha...

thread que talvez possa lhe ajudar...

https://sampforum.blast.hk/showthread.php?pid=3412401#pid3412401

https://sampforum.blast.hk/showthread.php?tid=359567 - se nгo perceber, i translate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)