GetPlayerSpeed
#4

pawn Код:
new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
    vehicleid = GetPlayerVehicleID(playerid);
    if(vehicleid != 0)
    {
        GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
        final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*143.666667;
        final_speed_int = floatround(final_speed,floatround_round);
        format(speed_string,256,"Speed: %i Km/h",final_speed_int);
        TextDrawSetString(SPEEDOS[playerid], speed_string);
    }
}
Reply


Messages In This Thread
GetPlayerSpeed - by Dripac - 01.03.2012, 15:10
Re: GetPlayerSpeed - by iTorran - 01.03.2012, 15:25
Re: GetPlayerSpeed - by Dripac - 01.03.2012, 15:47
Re: GetPlayerSpeed - by milanosie - 01.03.2012, 15:50
Re: GetPlayerSpeed - by Dripac - 01.03.2012, 15:57
Re: GetPlayerSpeed - by Ballu Miaa - 01.03.2012, 16:04
Re: GetPlayerSpeed - by milanosie - 01.03.2012, 16:21
Re: GetPlayerSpeed - by Ballu Miaa - 01.03.2012, 16:24
Re: GetPlayerSpeed - by milanosie - 01.03.2012, 17:34
Re: GetPlayerSpeed - by iPLEOMAX - 01.03.2012, 19:21

Forum Jump:


Users browsing this thread: 3 Guest(s)