Help Find map change system
#10

I done a mistake
Where the switch is
Change I to this
switch(Cmaps)
Becouse it will not rotate the map

And for the teams do a check if player is in team = 1
The. If he is jus set his pos
there you go
pawn Код:
forward NextMap(maps);
public NextMap(maps)
{
Cmaps++;
if(Cmaps>= maps) Cmaps=0;
switch(Cmaps)
{
     case 0:{
          for(new playerid; playerid<GetMaxPlayers(); playerid++)
          {
               if(GetPlayerTeam(playerid) == 1) SetPlayerPos(playerid,2533.8667,2753.3320,10.8203);
               if(GetPlayerTeam(playerid) == 1) SetPlayerFacingAngle(playerid,90.5278);
               if(GetPlayerTeam(playerid) == 2) SetPlayerPos(playerid,x,y,z);//change to the team2 pos
               if(GetPlayerTeam(playerid) == 2) SetPlayerFacingAngle(playerid,90.5278);
          }
     }
     case 1:{
          for(new playerid; playerid<GetMaxPlayers(); playerid++)
          {
               if(GetPlayerTeam(playerid) == 1) SetPlayerPos(playerid,2666.7036,2797.8311,17.6896);
               if(GetPlayerTeam(playerid) == 2) SetPlayerPos(playerid,x,y,z);//change to the team2 pos
          }
     }
}
}
Reply


Messages In This Thread
Help Find map change system - by ServerScripter - 16.02.2012, 13:55
Re: Help Find map change system - by park4bmx - 16.02.2012, 14:19
Re: Help Find map change system - by ServerScripter - 16.02.2012, 14:23
Re: Help Find map change system - by park4bmx - 16.02.2012, 14:26
Re: Help Find map change system - by ServerScripter - 16.02.2012, 14:29
Re: Help Find map change system - by park4bmx - 16.02.2012, 14:36
Re: Help Find map change system - by Vince - 16.02.2012, 14:44
Re: Help Find map change system - by ServerScripter - 16.02.2012, 16:44
Re: Help Find map change system - by ServerScripter - 16.02.2012, 16:49
Re: Help Find map change system - by park4bmx - 16.02.2012, 16:54

Forum Jump:


Users browsing this thread: 7 Guest(s)