#1

I have this race system that is in FS. I can't put it in gamemode for some reasons. So i have one problem. When someone joins race his engine is turned off so if he wants to race he need to press "2" after countdown ends to turn it on. How can i make that engine is turned on as soon as he join race
Reply
#2

Well are you freezing player when he join race?

or u doing Setvehicleparams?

if setvehicleparams use that his engine will be turn on.
Code:
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
Reply
#3

I use freeze player. any ideas?
Reply
#4

unfreeze him when he join
Code:
TogglePlayerControllable(playerid, 1);
Reply
#5

Freeze the player when he joins the race.

Code:
TogglePlayerControllable(playerid, false);
Turn the engine on.

Code:
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
When the timer runs out, unfreeze the player.

Code:
TogglePlayerControllable(playerid, true);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)