Pickup help - 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)
+--- Thread: Pickup help (
/showthread.php?tid=603735)
Pickup help -
MRM - 27.03.2016
Hi guys.
how to using one location multiple exit pickup?
When come out of the pickup, a place to spawn.It is bug.
How to fix ?
Re: Pickup help -
pLamenT - 27.03.2016
Quote:
Originally Posted by MRM
Hi guys.
how to using one location multiple exit pickup?
When come out of the pickup, a place to spawn.It is bug.
How to fix ?
|
I understand that you want the input-output pickup
Код:
new example;
new example2;
OnGameModeInit;
Код:
example = CreatePickup(pickupid, 2, x,y,z, -1);
example2 = CreatePickup(pickupid, 2, x,y,z, -1);
OnPlayerPickUpPickup
Код:
if(pickupid == example){
SetPlayerPos(playerid,x,y,z); // inside pos
SetPlayerInterior(playerid,interiorid); // For shops
}
if(pickupid == example2){
SetPlayerPos(playerid,x,y,z); // out pos
SetPlayerInterior(playerid,0);
}
Re: Pickup help -
MRM - 27.03.2016
No I mean the two outputs from one location.
Example:
Код:
CreateDynamicPickup(1559,1,435,567,678,-1,-1,-1,100);
CreateDynamicPickup(1559,1,435,567,678,-1,-1,-1,100);
Re: Pickup help -
MRM - 27.03.2016
Any idea?