Speed hack (Anti)
#2

Prueba asi.

pawn Код:
stock GetPlayerSpeed(playerid)
{
    new Float:ST[4];
    if(IsPlayerInAnyVehicle(playerid))
    GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
    else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
    ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625;
    return floatround(ST[3]);
}

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerSpeed > 1000) return Kick(playerid);
    return 1;
}
no estoy seguro, recien estoy entendiendo esto del pawno :3.
Reply


Messages In This Thread
Speed hack (Anti) - by Metzone - 30.09.2014, 09:33
Respuesta: Speed hack (Anti) - by Zodiaco - 30.09.2014, 13:39
Respuesta: Speed hack (Anti) - by Glimma - 30.09.2014, 14:03
Respuesta: Speed hack (Anti) - by Swedky - 30.09.2014, 23:22
Respuesta: Speed hack (Anti) - by Glimma - 30.09.2014, 23:34

Forum Jump:


Users browsing this thread: 1 Guest(s)