#5

pawn Код:
public OnPlayerSpawn(playerid)
{
    switch ( MapChange  )
    {
        case 0: // this is map 1 (or 0, dunno how you defined it)
        {
            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: // this is map 2 (or 1, dunno how you defined it)
        {
            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: // this is map 3 (or 2, dunno how you defined it)
        {
            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;
}
Hope this will makes it clear up what the code does
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)