[AJUDA] Anti-Teleport-Cheat
#6

Colgate abaixa a bola ai, ele tentou lhe ajudar!


pawn Код:
enum asd
{
    Float:x,
    Float:y,
    Float:z
};

new
    Carol[MAX_PLAYERS][asd]
;

#define SetPlayerPos  CarolSetPos

public OnGameModeInit()
{
    SetTimer("Why", 1000, true);
    return 1;
}

Why(p);
public Why(p)
{
    if(IsHack(p)) return Ban(p);
    OnSpawnPlayer(p);
    return 1;
}

stock OnSpawnPlayer(p)
{
    static
        Float:e, Float:p, Float:q;
    GetPlayerPos(p, z, p, q);
    Carol[p][x] = e;
    Carol[p][y] = p;
    Carol[p][z] = q;
    return 1;
}


stock CarolSetPos(p, Float:xis, Float:ips, Float:zee)
{
    Carol[p][x] = xis;
    Carol[p][y] = ips;
    Carol[p][z] = zee;
    SetPlayerPos(p, Float:xis, Float:ips, Float:zee);
    return 1;
}


stock IsHack(p)
{
    if(IsPlayerInRangeOfPoint(playerid, 500.0, Carol[p][x],Carol[p][y],Carol[p][z]) && !IsPlayerInAnyVehicle(p))
        return true;
    return false;
}
Reply


Messages In This Thread
[AJUDA] Anti-Teleport-Cheat - by Colgate - 30.10.2011, 21:32
Re: [AJUDA] Anti-Teleport-Cheat - by Lуs - 30.10.2011, 21:39
Re: [AJUDA] Anti-Teleport-Cheat - by Cristhian - 30.10.2011, 21:57
Re: [AJUDA] Anti-Teleport-Cheat - by Colgate - 30.10.2011, 21:57
Re: [AJUDA] Anti-Teleport-Cheat - by Lуs - 30.10.2011, 22:03
Re: [AJUDA] Anti-Teleport-Cheat - by [O.z]Caroline - 30.10.2011, 22:11

Forum Jump:


Users browsing this thread: 1 Guest(s)