27.07.2010, 02:54
Is this a speed limiter you are trying to code?
You need a variable that specifies whether the speed limiter is on.
Then under your "/test" command
You can use a timer but I'll show it to you
Under OnPlayerUpdate(playerid)
You need a variable that specifies whether the speed limiter is on.
Код:
limiton[MAX_PLAYERS];
Код:
limiton[playerid]=1;
Under OnPlayerUpdate(playerid)
Код:
if(limiton[playerid]==1) { if(IsPlayerInAnyVehicle(playerid)) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.2, 0.0); }