My Elevators
#1

hi giuys

well i created a series of elevators for my GM called Elevator Land. But when i goto the elevators i am team 0 but still when i enter the pickup elevator i get put to the top but then it says Stay within the World Boundries and i get put miles and miles and miles away from Sa.

please help
Код:
ublic OnGameModeInit()
{
SetGameModeText("Elevator World");
Griffins = CreatePickup(1318,23,2621.3857,2831.6211,10.8203); // this is the griffins 1st elevator at the ground
Griffins2 = CreatePickup(1318,23,2633.4036,2829.8538,122.9219); // this is the griffins 2nd elevaor which is in the chimney
Griffins3 = CreatePickup(1318,23,2632.4592,2832.2922,127.5781); // this is the griffins 3rd elevator which is at the ground
Griffins4 = CreatePickup(1318,23,2653.6824,2843.9744,10.8203); // this is the griffins 4th elevator which is in the 2nd chimney

AddPlayerClass(254,1371.4879,-1652.2054,13.3828,29,29,29,29,29,29); // elevator land pos
AddPlayerClass(247,2648.1504,2773.2324,19.3222,29,29,29,29,29,29);
AddPlayerClass(254,-2334.792480,4063.763875,10.769835,29,29,29,29,29,29);

CreateVehicle(425,1431.2719,-1637.5399,13.3828,34.6530,52,52);
CreateObject(8417, -2334.792480,4063.763875, 10.769835,0.0000, 0.0000,  0.0000);

	return 1;
}


public OnGameModeExit()
{
	return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 232633.4036,2829.8538,122.9219);
	SetPlayerCameraPos(playerid, 232633.4036,2829.8538,122.9219);
	SetPlayerCameraLookAt(playerid, 232633.4036,2829.8538,122.9219);
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if (pickupid == Griffins)
  if(gTeam[playerid] == 0)

        SetPlayerPos(playerid,232633.4036,2829.8538,122.9219);


{
	if (pickupid == Griffins2)
	if(gTeam[playerid] == 0)

	SetPlayerPos(playerid,2633.4036,2829.8538,122.9219);
{
  if (pickupid == Griffins3)
  if(gTeam[playerid] == 0)

  SetPlayerPos(playerid,2653.6824,2843.9744,10.8203);
{
  if (pickupid == Griffins4)
  if(gTeam[playerid] == 0)
  
  SetPlayerPos(playerid,2632.4592,2832.2922,127.5781);
  
{
return 1;
}
}
}
}
}
Reply


Messages In This Thread
My Elevators - by Criss_Angel - 01.07.2009, 13:16
Re: My Elevators - by refshal - 01.07.2009, 13:19
Re: My Elevators - by Criss_Angel - 01.07.2009, 13:21
Re: My Elevators - by refshal - 01.07.2009, 13:23
Re: My Elevators - by Criss_Angel - 01.07.2009, 13:31
Re: My Elevators - by refshal - 01.07.2009, 13:35
Re: My Elevators - by Criss_Angel - 01.07.2009, 13:42
Re: My Elevators - by Criss_Angel - 01.07.2009, 13:44
Re: My Elevators - by refshal - 01.07.2009, 13:45
Re: My Elevators - by Criss_Angel - 01.07.2009, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)