12.02.2013, 15:46
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:
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:
Will this work or not? And if not, is there any other way to do it?
I've been thinking about making global variables, like so:
pawn Код:
new Map1;
new Map2;
Then Under OnGameModeInit:
pawn Код:
if(Map1 == 1)
{
AddPlayerClass(/* the rest here */)
}
else if(Map2 == 1)
{
AddPlayerClass(/* the rest here */)
}