Multiple SetVehicleVelocity?
#7

Is this a speed limiter you are trying to code?

You need a variable that specifies whether the speed limiter is on.

Код:
limiton[MAX_PLAYERS];
Then under your "/test" command
Код:
limiton[playerid]=1;
You can use a timer but I'll show it to you
Under OnPlayerUpdate(playerid)
Код:
if(limiton[playerid]==1)
{
        if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.2, 0.0);
}
Reply


Messages In This Thread
Multiple SetVehicleVelocity? - by WillyP - 26.07.2010, 22:21
Re: Multiple SetVehicleVelocity? - by Carlton - 26.07.2010, 23:40
Re: Multiple SetVehicleVelocity? - by WillyP - 26.07.2010, 23:46
Re: Multiple SetVehicleVelocity? - by mastasquizy - 27.07.2010, 00:29
Re: Multiple SetVehicleVelocity? - by WillyP - 27.07.2010, 00:50
Re: Multiple SetVehicleVelocity? - by mastasquizy - 27.07.2010, 01:00
Re: Multiple SetVehicleVelocity? - by DJDhan - 27.07.2010, 02:54
Re: Multiple SetVehicleVelocity? - by Kar - 27.07.2010, 03:09
Re: Multiple SetVehicleVelocity? - by mastasquizy - 27.07.2010, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)