little pickup spawns 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: little pickup spawns problem (
/showthread.php?tid=87193)
little pickup spawns problem -
Khelif - 18.07.2009
hello again
when player picks up a pickup, it will respawn to other location. if I use random spawn location, it might spawn to same location again which I dont want. my question is: how to make pickup to spawn always to next location.
Код:
new Float:Locations[3][3] = {
{1239.6410,3581.0327,4.6139}, //first time it spawn here, after picking up..
{1926.5193,2568.5424,2.1797}, //here..
{2100.1697,1315.0695,5.2578} //and third time here.
}
is that possible?
Re: little pickup spawns problem -
SiJ - 18.07.2009
Add something like this OnPlayerPickUpPickup
if(pickupid == pickup#1)
{
pickup#2 = CreatePickup(.....); //new location
}
if(pickupid == pickup#2
{
pickup#3 = CreatePickup(.....); //new loc..
}