17.02.2012, 18:28
pawn Код:
new CurrentMap;
forward NextMap(playerid, maps);
public NextMap(playerid, maps) {
Cmaps++;
if(Cmaps >= maps) Cmaps = 0;
switch(Cmaps) {
case 0: {
if(gTeam[playerid] == TEAM_CT) {
SetPlayerPos(playerid,2533.8667,2753.3320,10.8203);
SetPlayerFacingAngle(playerid,90.5278);
} else if(gTeam[playerid] == TEAM_T) {
SetPlayerPos(playerid,2667.8340,2717.2986,10.8203);
SetPlayerFacingAngle(playerid,31.6018);
}
CurrentMap = 0;
} case 1: {
if(gTeam[playerid] == TEAM_CT) {
SetPlayerPos(playerid,1801.1047,-2991.1992,6.1988);
SetPlayerFacingAngle(playerid,183.9618);
} else if(gTeam[playerid] == TEAM_T) {
SetPlayerPos(playerid,1846.0448,-3083.0525,6.6550);
SetPlayerFacingAngle(playerid,44.1783);
}
CurrentMap = 1;
}
}
}