SA-MP Forums Archive
Random Spawns + Previous Spawns - 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: Random Spawns + Previous Spawns (/showthread.php?tid=94675)



Random Spawns + Previous Spawns - XtremeChio - 31.08.2009

Hello,

So I have added random spawns to my server. No errors with it, it works perfectly [I've read the wiki to do it]

But after that I realized that at AddPlayerClass(playerid,x,y,z,angle,0,0,0,0,0,0); I have coordinates for skins.
So I tried it out and when I connected, I first spawned at the previous spawn, then it teleported me to a random spawn.

An example:

Code:
AddPlayerClass(102,2000.0933,1565.3741,15.3672,186.3705,24,150,29,50,0,0);
How could I do to remove those coordinates somehow, since I spawn 2x now, first for 0.5 second then I teleport to a random place.

Thanks, Chio.


Re: Random Spawns + Previous Spawns - XtremeChio - 31.08.2009

Please, does anyone know ? I know it's possible, I've seen many servers with random spawns.

The problem is that.

I have xyz for each skin at AddPlayerClass.
I have xyz for 19 random spawns, but then a player spawns twice !

How to remove that


Re: Random Spawns + Previous Spawns - XtremeChio - 01.09.2009

Nevermind, I put in all the skins. Lock this