[no.1] Scripting challange [Ferris Wheel] !
#10

PHP Code:
public OnGameModeInit()
{
 
RemoveOriginalFarrisWheel();
 return 
1;
}
public 
OnPlayerEnterFarrisWheel(playerid)
{
 
PayTicket(playerid);
 
PutPlayerInFerrisCabine(playeridfreeid);
 
MakePlayerNotControllable(playerid);
 
StartCabin(playeridcurrent30);
 
RotateFarrisWheel(currrent360);
 
SetPlayerSitAnimation(playerid);
 return 
1;
}
public 
OnFarrisWheelSpin(playeriddegres)
{
 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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)