16.06.2016, 20:01
does anyone know, people keep jumping off from Chiliad and anti speed detects them .. and if I jump with car from chiliad I get about 352km/h .. and with nrg 252km..
PHP Code:
stock GetVehicleSpeed(vehicleid)
{
new Float:V[3];
GetVehicleVelocity(vehicleid, V[0], V[1], V[2]);
return floatround(floatsqroot(V[0] * V[0] + V[1] * V[1] + V[2] * V[2]) * 180.00);
}
PHP Code:
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
new veh = GetPlayerVehicleID(playerid);
if(GetVehicleSpeed(veh) >= 350 && (GetPlayerState(playerid)== PLAYER_STATE_DRIVER))
{
format(string, sizeof(string), "%s got kicked for Speed Hack",sendername);
SendClientMessageToAll(COLOR_RED, string);
Kick(playerid);
}
}