30.03.2010, 08:09
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; } |