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