13.11.2016, 01:39
ja fiz essa forma de abrir desse modelo, mas assim q eu entro ao jogo ele ja me bani por dizer q estou de speedhack sem eu ao menos ter logado
Quote:
// Velocimetro stock GetVehicleSpeed(playerid) { if(!IsPlayerInAnyVehicle(playerid)) return 1; new Float:vPos[3]; GetVehicleVelocity(GetPlayerVehicleID(playerid), vPos[0], vPos[1], vPos[2]); return floatround((floatmul(floatsqroot(floatpower(vPos[0], 2.0) + floatpower(vPos[1], 2.0) + floatpower(vPos[2], 2.0)), 100.0) / 0.4463), floatround_floor); } stock GetSpeedKM(playerid) { new Float:PosXv,Float:PosYv,Float:PosZv,Float:PlayerSp eedDistance; GetVehicleVelocity(GetPlayerVehicleID(playerid), PosXv, PosYv, PosZv); PlayerSpeedDistance = floatmul(floatsqroot(floatadd(floatadd(floatpower( PosXv, 2), floatpower(PosYv, 2)), floatpower(PosZv, 2))), 170.0); new spe = floatround(PlayerSpeedDistance * 1); return spe; } |