Me Again Needing Help with Pickups teleporting - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Me Again Needing Help with Pickups teleporting (
/showthread.php?tid=137758)
Me Again Needing Help with Pickups teleporting -
XxJoexX - 30.03.2010
I am embarrassing myself again.... But i tell you what i need in this video
If you use IE (web browser) Click the icon with the hot-air balloon and open it, other wise you will have to download it only 10mb i dont whant to get banned from samp so its definitely not a virus its just quicker than Fucking "*******"
Video
Thank's for any help you can give XxJoexX
Bin locations
CreateStreamObject(1337, 1972.9859619141, -1559.9599609375, 13.288646697998, 0.000000, 0.000000, 45.880004882813, 250.0); //out-side bin
CreateStreamObject(1337, 1971.3880615234, -1558.5076904297, 13.459463119507, 0.000000, 0.000000, 228.40417480469, 250.0); //in-side bin
Re: Me Again Needing Help with Pickups teleporting -
cozza123456 - 30.03.2010
looks... different...
Re: Me Again Needing Help with Pickups teleporting -
PotH3Ad - 30.03.2010
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;
}
Re: Me Again Needing Help with Pickups teleporting -
cozza123456 - 30.03.2010
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?
Re: Me Again Needing Help with Pickups teleporting -
PotH3Ad - 30.03.2010
No, but try ID 1559, its a yellow marker.