SA-MP Forums Archive
AddStaticPickup in 24-7 - 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: AddStaticPickup in 24-7 (/showthread.php?tid=22541)



AddStaticPickup in 24-7 - WhoAmI - 16.01.2008

I'm remaking my script and replacing checkpoints with pickups so don't need to use isplayerinarea.

It all works perfect except when adding static pickup in 24-7's. The pickup will show up fine first time go into any of the 24-7's but next time go into same or any other 24-7 there is no pickup and won't be till I restart gamemode again.

i simply AddStaticPickup(1318,23,-23.3804,-54.9093,1003.5469); // 24-7 under OnGameModeInit

All other pickups works. I have them in other interiors too with no problem.

Anyone have a clue? I'm scratching my head.....





Re: AddStaticPickup in 24-7 - WhoAmI - 16.01.2008

forgot to mention only got 18 pickups at moment so can't be it exceeds the limit whatever limit is


Re: AddStaticPickup in 24-7 - WhoAmI - 16.01.2008

the type are all the same.

need to have isplayerinarea to set new checkpoints as I can only have 1 checkpoint at the time. but that's not the issue.






Re: AddStaticPickup in 24-7 - loechner - 30.04.2009

Use CreatePickup... in OnPlayerInteriorChange .... DestroyPickup... (re)CreatePickup