Assigning multiple locations to AddPlayerClass?
#1

Is there a way to assign multiple spawn locations to an AddPlayerClass? I want to make multiple maps, so whenever 1 round ends, and the other rounds start, I want them to spawn on another location.
I've been thinking about making global variables, like so:

pawn Код:
new Map1;
new Map2;
And then, when Map1 is playing, set Map1 to 1 and Map2 to 0. Then whenever the timer stops, so the round ends, it sets Map1 to 0 and Map2 to 1.

Then Under OnGameModeInit:

pawn Код:
if(Map1 == 1)
{
AddPlayerClass(/* the rest here */)
}
else if(Map2 == 1)
{
AddPlayerClass(/* the rest here */)
}
Will this work or not? And if not, is there any other way to do it?
Reply


Messages In This Thread
Assigning multiple locations to AddPlayerClass? - by Da_Noob - 12.02.2013, 15:46
Re: Assigning multiple locations to AddPlayerClass? - by DaRk_RaiN - 12.02.2013, 15:51
Re: Assigning multiple locations to AddPlayerClass? - by Da_Noob - 12.02.2013, 15:53
Re: Assigning multiple locations to AddPlayerClass? - by DaRk_RaiN - 12.02.2013, 15:57
Re: Assigning multiple locations to AddPlayerClass? - by Da_Noob - 12.02.2013, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)