PHP код:
public OnGameModeInit()
{
RemoveOriginalFarrisWheel();
return 1;
}
public OnPlayerEnterFarrisWheel(playerid)
{
PayTicket(playerid);
PutPlayerInFerrisCabine(playerid, freeid);
MakePlayerNotControllable(playerid);
StartCabin(playerid, current, 30);
RotateFarrisWheel(currrent, 360);
SetPlayerSitAnimation(playerid);
return 1;
}
public OnFarrisWheelSpin(playerid, degres)
{
if(degres == 360)
{
ForcePlayerToLeave(playerid);
}
return 1;
}
I didn't have time to work with dialogs / checkpoints.
P.S : Contact me if you find any bugs.