OnPlayerPickuppickup problem - 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: OnPlayerPickuppickup problem (
/showthread.php?tid=293842)
OnPlayerPickuppickup problem -
cs_waller - 30.10.2011
Hi a few days ago I learned to do all their work OnPlayerPickuppickup but when I go to the door and left the pickup disappears here's what I did.
Код:
new info1;
new info2;
info1 = CreatePickup(1318, 23, 1488.5765,-1771.6222,18.7958, -1);
info2 = CreatePickup(1318, 23, 387.3406,175.1888,1008.3828, -1);
if(pickupid == info1)
{
SetPlayerPos(playerid, 388.6500,173.9088,1008.3828);
SetPlayerInterior(playerid, 3);
}
if(pickupid == info2)
{
SetPlayerPos(playerid, 1488.6108,-1767.5939,18.7958);
SetPlayerInterior(playerid, 0);
}
}
return 1;
Re: OnPlayerPickuppickup problem -
Norn - 30.10.2011
PickupTypes.
Edit: Just noticed PickupType 23 isn't meant to vanish, this is a 0.3 bug which is fixed in 0.3d which should be out soon. (As from your post I assume the pickup inside the interior vanishes.)
Re: OnPlayerPickuppickup problem -
cs_waller - 30.10.2011
I tried with 1 and 23 and the effect is the same one.
Re: OnPlayerPickuppickup problem -
ivanVU - 30.10.2011
Код:
info1 = CreatePickup(1318, 2, 1488.5765,-1771.6222,18.7958, -1);
info2 = CreatePickup(1318, 2, 387.3406,175.1888,1008.3828, -1);
try to put it like this..
Re: OnPlayerPickuppickup problem -
cs_waller - 30.10.2011
the effect is again the same one
Re: OnPlayerPickuppickup problem -
cs_waller - 30.10.2011
I fixed the problem was there destroypickup thank everyone who tried to help me