Random 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 (
/showthread.php?tid=173704)
Random Spawns -
sekol - 03.09.2010
So i made few random spawns. For example it spawns player at RandomSpawn1, and after death instead of selecting new spawn it still spawns at RandomSpawn1. How to fix it?
Re: Random Spawns -
WillyP - 03.09.2010
script?
.
Re: Random Spawns -
sekol - 03.09.2010
Ahhh, I'm so stupid, i forgot to add random spawning in OnPlayerSpawn. Fixed
Re: Random Spawns -
RSX - 03.09.2010
After you "assign" the new spawn, for example Random returns 2, you change spawn by using this function:
SetSpawnInfo(playerid,team,skin,Float:X,Float:Y,Fl oat:Z,Float:Angle,weapon1,weapon1_ammo,weapon2,wea pon2_ammo,weapon3,weapon3_ammo)
Changing spawn could anyway be better

, so try it if you don't do it already.