16.02.2012, 16:54
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
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
}
}
}
}