[Duda] Como Detectar MPH... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (
https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Duda] Como Detectar MPH... (
/showthread.php?tid=335623)
[Duda] Como Detectar MPH... -
OTACON - 19.04.2012
Buenas a Todos, Quiera Saber como puedo Detectar MPH (Millas Por Hora) ke no es lo mismo ke KM/H (Kilometro por hora), No se si Se puede detectar En Samp, pero he visto algunos comentarios ke dicen ke si se puede, podeso pregunto como lo hago?.
Yo Utilizo Este Codigo Para El KM/H Capaz puede Servirles para Ayudarme con esto:
Код:
stock GetPlayerVehicleSpeed(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(!vehicleid) return -1;
new Float:speed_x, Float:speed_y, Float:speed_z;
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
return floatround(floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*200.000000,floatround_round);
}
Desde Ya Muchas Gracias.
Respuesta: [Duda] Como Detectar MPH... -
OTACON - 19.04.2012
ya Solucione, Saludos