How to use GetVehicleVelocity
#3

Here is a simple example of it!

PHP код:
//Floats - variables
new FloatxFloat:yFloat:z;
//Get the vehicle speed/velocity
GetVehicleVelocity(GetPlayerVehicleID(playerid), xyz);
//Now checking the speeds
if(>= 200
//Removing $200 from his money & notifying him!
{
    
GivePlayerMoney(playerid, -200);
    
SendClientMessage(playerid, -1"[Speed Limit]: You have crossed the speed limite, therefore, you have been fined $200!");

Reply


Messages In This Thread
How to use GetVehicleVelocity - by NealPeteros - 10.01.2016, 13:06
Re: How to use GetVehicleVelocity - by adithegman - 10.01.2016, 14:58
Re: How to use GetVehicleVelocity - by Karan007 - 10.01.2016, 15:17
Re: How to use GetVehicleVelocity - by CodeStyle175 - 10.01.2016, 15:25
Re: How to use GetVehicleVelocity - by OwlIT - 10.01.2016, 15:37
Re: How to use GetVehicleVelocity - by NealPeteros - 11.01.2016, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)