28.05.2015, 16:17
Код:
stock GetVehicleSpeed(vehicleid) { new Float:speed_x, Float:speed_y, Float:speed_z, Float:FloatBrzine, FFinalnaBrzina; GetVehicleVelocity(vehicleid, speed_x, speed_y, speed_z); FloatBrzine = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*183.666667; FFinalnaBrzina = floatround(FloatBrzine, floatround_round); return FFinalnaBrzina; }
Код:
if(GetVehicleSpeed(GetPlayerVehicleID(i)) > 221) return KickAntiCheat(i,"Speed Hack");