[Help] Map Change System!
#1

i was using a map changing system. i am facing a problem.

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

Change
pawn Код:
return 1;
To
pawn Код:
return 0;
Reply
#3

I have tried that but nothing happening
Reply
#4

can anyone help? plzzz !!
Reply
#5

More code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)