#2

pawn Код:
public OnPlayerSpawn(playerid)
{
    switch ( MapChange  )
    {
        case 0:
        {
            if(gTeam[playerid] == TEAM_SWAT)
            {
                SetPlayerPos(playerid , -4198.6240,395.5814,26.1159,18.4021);
                SetPlayerFacingAngle(playerid,0.0); // Facing Angle of the first map
            }
            else if( gTeam[playerid] == TEAM_TERRORIST )
            {
                // SetPlayerPos(playerid, x,y,z);
                // etc etc
            }
        }

        case 1:
        {
            if(gTeam[playerid] == TEAM_SWAT)
            {
                SetPlayerPos(playerid , -4198.6240,395.5814,26.1159,18.4021);
                SetPlayerFacingAngle(playerid,0.0); // Facing Angle of the first map
            }
            else if( gTeam[playerid] == TEAM_TERRORIST )
            {
                // SetPlayerPos(playerid, x,y,z);
                // etc etc
            }
        }
        case 2:
        {
            if(gTeam[playerid] == TEAM_SWAT)
            {
                SetPlayerPos(playerid , -4198.6240,395.5814,26.1159,18.4021);
                SetPlayerFacingAngle(playerid,0.0); // Facing Angle of the first map
            }
            else if( gTeam[playerid] == TEAM_TERRORIST )
            {
                // SetPlayerPos(playerid, x,y,z);
                // etc etc
            }
        }
    }
    return 1;
}
That will do it. Change everything to your own needs
Reply


Messages In This Thread
HELP - by ServerScripter - 14.10.2011, 17:32
Re: HELP - by Wesley221 - 14.10.2011, 17:35
Re: HELP - by viosteaua98 - 14.10.2011, 17:37
Re: HELP - by ServerScripter - 14.10.2011, 17:40
Re: HELP - by Wesley221 - 14.10.2011, 17:43
Re: HELP - by ServerScripter - 14.10.2011, 17:46
Re: HELP - by Wesley221 - 14.10.2011, 17:47
Re: HELP - by ServerScripter - 14.10.2011, 17:49

Forum Jump:


Users browsing this thread: 2 Guest(s)