choose random spawn location in san andreas - 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: choose random spawn location in san andreas (
/showthread.php?tid=162576)
choose random spawn location in san andreas -
Smokey619 - 23.07.2010
i want to know how to make a menu with an option to spawn in random locations in the city that you choose like las venturas, los santos, and san fiero. lets say i choose los santos the next time and everytime i log on i spawn in a random location in los santos until i chage my settings to spawn in any city randomly or in a specific city. hope you guys can make it or teach me how.
Re: choose random spawn location in san andreas -
Blt950 - 24.07.2010
You can make players spawn with a random function like this:
pawn Код:
new RandPos = random(14);
switch(RandPos)
{
case 0: { }
case 1: { }
case 2: { }
case 3: { }
case 4: { }
case 5: { }
case 6: { }
case 7: { }
case 8: { }
case 9: { }
case 10: { }
case 11: { }
case 12: { }
case 13: { }
}
Just fill into the script that sets the players spawn position in the brackets.
And of course, change the numbers of randomness after what you want
Good luck
Re: choose random spawn location in san andreas -
Admigo - 10.04.2011
I want it to lol;p
Re: choose random spawn location in san andreas -
Admigo - 10.04.2011
Is there sort of a vote system for vote were the team spawn?