09.11.2012, 15:46
hi i dont know the max for hacks cause if i jump off the chiliad i get speed hack and i dont want to.only if i have speed hack.
PHP код:
if(GetPlayerSpeed(playerid) >= 300 && (GetPlayerState(playerid)== PLAYER_STATE_DRIVER))
PHP код:
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)) * 155.0;
return floatround(ST[3]);
}