SA-MP Forums Archive
[Help] Map Change System! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Map Change System! (/showthread.php?tid=445654)



[Help] Map Change System! - Champ - 22.06.2013

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.


Re: [Help] Map Change System! - Sulps - 22.06.2013

Change
pawn Код:
return 1;
To
pawn Код:
return 0;



Re: [Help] Map Change System! - Champ - 22.06.2013

I have tried that but nothing happening


Re: [Help] Map Change System! - Champ - 22.06.2013

can anyone help? plzzz !!


Re: [Help] Map Change System! - ReVo_ - 22.06.2013

More code.