choose random spawn location in san andreas
#1

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.
Reply
#2

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
Reply
#3

I want it to lol;p
Reply
#4

Is there sort of a vote system for vote were the team spawn?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)