22.06.2013, 11:25
i was using a map changing system. i am facing a problem.
when the last map ends(case 1), it returns to gamemodeinit(callback), instead of returning to first map(case 1) and the player spawns on the location of ongameinit(callback). Please help me to return case 1 to case 0.
Thank You.
pawn Код:
public StartedNewRound()
{
for(new i = 0; i < MAX_PLAYERS; i++) {
SpawnPlayer ( i ) ;
switch ( MapChange ) {
case 0:
{
SendClientMessage(i, 0xFF5500FF,"New MapChangeLoad");
SetPlayerInterior(i, 0);
}
case 1:
{
SendClientMessage(i, 0xFF5500FF,"New MapChangeLoad");
SetPlayerInterior(i, 15);
}
}
}
return 1;
}
Thank You.