Me Again Needing Help with Pickups teleporting
#4

Quote:
Originally Posted by [___
PotH3Ad ]
Alright, here it is... (You just gotta edit the coords...)

Код:
new OutSideBin;
new InSideBin;

public OnGameModeInit()
{
	//Create outside pickup
	OutSideBin = CreatePickup(1337, 23, 1972.9859619141, -1559.9599609375, 13.288646697998);
	//Create inside pickup
	InSideBin = CreatePickup(1337, 23, 1971.3880615234, -1558.5076904297, 13.459463119507);
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
 	if(pickupid == OutSideBin) { //If player picks up outside marker...
 	  //Set position inside.
		SetPlayerPos(playerid, 1971.3880615234, -1558.5076904297, 13.45946311950);
	}
	else if(pickupid == InSideBin) {//if pick up inside marker...
 	  //Set position outside.
		SetPlayerPos(playerid, 1972.9859619141, -1559.9599609375, 13.288646697998);
	}
	return 1;
}
Is pickup 1337 a marker?
Reply


Messages In This Thread
Me Again Needing Help with Pickups teleporting - by XxJoexX - 30.03.2010, 00:55
Re: Me Again Needing Help with Pickups teleporting - by cozza123456 - 30.03.2010, 00:58
Re: Me Again Needing Help with Pickups teleporting - by PotH3Ad - 30.03.2010, 02:07
Re: Me Again Needing Help with Pickups teleporting - by cozza123456 - 30.03.2010, 08:09
Re: Me Again Needing Help with Pickups teleporting - by PotH3Ad - 30.03.2010, 20:31

Forum Jump:


Users browsing this thread: 1 Guest(s)