18.02.2012, 10:51
Try this:
pawn Код:
forward NextMap( );
public NextMap( )
{
for( new slots = GetMaxPlayers( ), i; i < slots; i++ )
{
if ( !IsPlayerConnected( i ) ) continue;
if( Cmaps > 1 ) Cmaps = 0;
switch( Cmaps )
{
case 0:
{
if( gTeam[ i ] == TEAM_CT )
{
SetPlayerPos( i, 2533.8667, 2753.3320, 10.8203 );
SetPlayerFacingAngle( i, 90.5278 );
}
else if( gTeam[ i ] == TEAM_T )
{
SetPlayerPos( i, 2667.8340, 2717.2986, 10.8203 );
SetPlayerFacingAngle( i, 31.6018 );
}
CurrentMap = 0;
}
case 1:
{
if( gTeam[ i ] == TEAM_CT )
{
SetPlayerPos( i, 1801.1047, -2991.1992, 6.1988 );
SetPlayerFacingAngle( i, 183.9618 );
}
else if( gTeam[ i ] == TEAM_T )
{
SetPlayerPos( i, 1846.0448, -3083.0525, 6.6550 );
SetPlayerFacingAngle( i, 44.1783 );
}
CurrentMap = 1;
}
}
Cmaps ++;
}
}