[Ajuda] Anti-teleport hack
#5

PHP код:

new Float:AntigaPos[MAX_PLAYERS][2];
public 
OnGameModeInit() {
    
SetTimer("AntiTeleporte"500true);
    return 
1;
}
forward AntiTeleporte();
public 
AntiTeleporte() {
    new 
Float:pos[3];
    for(new 
playerid 0playerid MAX_PLAYERS; ++playerid) {
        if(
IsPlayerConnected(playerid)) {
            
GetPlayerPos(playeridpos[0], pos[1], pos[2]);
            if(
GetPlayerDistanceFromPoint(playeridAntigaPos[playerid][0], AntigaPos[playerid][1], pos[2]) > /* Tamanho do Hipotйtico Circulo */) {
                
// Й hacker
            
}
            else {
                
AntigaPos[playerid][0] = pos[0];
                
AntigaPos[playerid][1] = pos[1];
            }
        }
    }
    return 
1;
}
stock SetPlayerPosEx(playeridFloat:xFloat:yFloat:z) {
    
AntigaPos[playerid][0] = x;
    
AntigaPos[playerid][1] = y;
    return 
SetPlayerPos(playeridxyz);

Reply


Messages In This Thread
Anti-teleport hack - by Electrifying - 23.11.2018, 14:48
Re: Anti-teleport hack - by RiqueP - 23.11.2018, 15:22
Re: Anti-teleport hack - by Electrifying - 23.11.2018, 15:38
Re: Anti-teleport hack - by NelsonC - 23.11.2018, 15:44
Re: Anti-teleport hack - by RiqueP - 23.11.2018, 15:53
Re: Anti-teleport hack - by Electrifying - 23.11.2018, 16:08
Re: Anti-teleport hack - by RiqueP - 23.11.2018, 16:14
Re: Anti-teleport hack - by Electrifying - 23.11.2018, 16:33
Re: Anti-teleport hack - by Malandrin - 23.11.2018, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)