According to this..
#9

BTW On case1 you forget to add a loop !
So many mistakes here ...

If thats not gonna fix this then I dont know what will...
pawn Код:
public Restart(playerid,classid)
{
 //GameTextForPlayer(playerid, "if you been teleported,its working",5000,5);
    switch (CurrentMap)
    {
        case 0:
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    switch (gTeam[i])
                    {
                        case 1:
                        {
                        SetPlayerPos(playerid, 716.8705,-2308.6211,107.9117);
                        }
                        case 2:
                        {
                            SetPlayerPos(playerid,684.1284,-2409.9363,107.1745);
                        }
                    }
                }
             }
            CurrentMap = 1;
            SendRconCommand("mapname cs_italy");
        }

        case 1:
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    switch (gTeam[i])
                    {
                        case 1:
                        {
                        SetPlayerPos(playerid, 716.8705,-2308.6211,107.9117);
                        }
                       
                        case 2:
                        {
                        SetPlayerPos(playerid,684.1284,-2409.9363,107.1745);
                        }
                    }
                }
            }
            CurrentMap = 2;
            SendRconCommand("mapname de_dust2");
        }
        return 1;
}
Reply


Messages In This Thread
Help please [PLEASE :D] [+rep] - by vassilis - 15.11.2011, 12:22
Re: According to this.. - by Elka_Blazer - 15.11.2011, 12:47
Re: According to this.. - by Kostas' - 15.11.2011, 12:52
Re: According to this.. - by vassilis - 15.11.2011, 12:56
Re: According to this.. - by Elka_Blazer - 15.11.2011, 12:59
Re: According to this.. - by vassilis - 15.11.2011, 13:00
Re: According to this.. - by Elka_Blazer - 15.11.2011, 13:04
Re: According to this.. - by Kostas' - 15.11.2011, 13:06
Re: According to this.. - by Elka_Blazer - 15.11.2011, 13:07
Re: According to this.. - by vassilis - 15.11.2011, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)