12.11.2011, 14:53
Here's the fixed indented, neat looking code. Amazing how much better it looks huh ?
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid, 0);
switch (Map)
{
case 0:
{
SendRconCommand("mapname cs_italy");
Loading(playerid);
if (gTeam[playerid] = TEAM_COUNTER)
{
SetPlayerPos(playerid, 716.8705,-2308.6211,107.9117);
}
if (gTeam[playerid] = TEAM_TERRO)
{
SetPlayerPos(playerid,684.1284,-2409.9363,107.1745);
}
}
case 1:
{
SendRconCommand("mapname de_dust2");
Loading(playerid);
if (gTeam[playerid] = TEAM_COUNTER)
{
SetPlayerPos(playerid,4427.6431,-1640.7981,22.3554);
}
if (gTeam[playerid] = TEAM_TERRO)
{
SetPlayerPos(playerid, 4354.7001, -1682.3000, 25.5);
}
}
}
return 1;
}