14.10.2011, 17:43
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;
}