Vehicle Speed
#1

How do I make if the vehicle speed raise it will change the color of the speedo?

Like green until 50 then yellow until 80 then red?
Reply
#2

set a timer to call to check for the vehicle's speed and then set it to the desired colour if the required speed is match
PHP код:
#define MPH_KMH 1.609344 
stock GetVehicleSpeedvehicleid 

    new 
        
Float:x
        
Float:y
        
Float:z
        
vel
    
GetVehicleVelocityvehicleidxy); 
    
vel floatroundfloatsqrootx*y*z*) * 180 );           // KM/H 
//  vel = floatround( floatsqroot( x*x + y*y + z*z ) * 180 / MPH_KMH ); // Mph 
    
return vel

Reply
#3

Show us how you're getting vehicle speed and how showing it, then we will be able to realase code match with it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)