26.07.2017, 07:09
I would do something like:
Then on method were mini game starts set:
And check if he's in car. Or if when event starts player is automatically in car set:
Finally OnPlayerExitVehicle check:
Код:
new inCar = 0; new playingMiniGame= 0;
Код:
playingMiniGame = 1;
Код:
inCar = 1;
Код:
if(playingMiniGame == 1 && inCar == 1){ SendClientMessage(playerid, 0x00FF00FF, "You can't exit vehicle while on event."); return 1; }