Advertisement
Jasit_Legandary

Speed

Oct 1st, 2021
624
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:parames30_10,speed_string[256],parames30_10_int,Nameveh[256];
  2. vehicleid = GetPlayerVehicleID(playerid);//parames 3010
  3. if(vehicleid != 0)
  4. {
  5.    
  6.     GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
  7.     parames30_10 = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*100;
  8.     parames30_10_int = floatround(parames30_10,floatround_round);
  9.     format(speed_string, sizeof (speed_string), "%iKM/H", parames30_10_int);
  10.  
  11. }
Advertisement
RAW Paste Data Copied
Advertisement