Making it so players can't exit vehicles?
#4

I would do something like:

Код:
new inCar = 0;
new playingMiniGame= 0;
Then on method were mini game starts set:

Код:
playingMiniGame = 1;
And check if he's in car. Or if when event starts player is automatically in car set:

Код:
inCar = 1;
Finally OnPlayerExitVehicle check:

Код:
if(playingMiniGame == 1 && inCar == 1){
	SendClientMessage(playerid, 0x00FF00FF, "You can't exit vehicle while on event.");
        return 1;
}
Reply


Messages In This Thread
Making it so players can't exit vehicles? - by TheLeech - 25.07.2017, 13:43
Re: Making it so players can't exit vehicles? - by TonyII - 25.07.2017, 13:53
Re: Making it so players can't exit vehicles? - by DonaldDuck - 25.07.2017, 13:54
Re: Making it so players can't exit vehicles? - by Kenny164 - 26.07.2017, 07:09
Re: Making it so players can't exit vehicles? - by Xtra - 26.07.2017, 07:30
Re: Making it so players can't exit vehicles? - by Sew_Sumi - 26.07.2017, 08:40
Re: Making it so players can't exit vehicles? - by Xtra - 26.07.2017, 08:43
Re: Making it so players can't exit vehicles? - by R4nd4ll - 26.07.2017, 11:27

Forum Jump:


Users browsing this thread: 5 Guest(s)