03.02.2018, 19:47
PHP Code:
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;
}
P.S : Contact me if you find any bugs.