Код:
public OnPlayerSpawn(playerid)
{
if(logged[playerid] == 1)
{
if(Map == 1)
{
Spawn1(playerid);
}
else if(Map == 2)
{
Spawn2(playerid);
}
else if(Map == 3)
{
Spawn3(playerid);
}
else if(Map == 4)
{
Spawn4(playerid);
}
else if(Map == 5)
{
Spawn5(playerid);
}
else if(Map == 6)
{
Spawn6(playerid);
}
else if(Map == 7)
{
Spawn7(playerid);
}
else if(Map == 8)
{
Spawn8(playerid);
}
}
SaveStats(playerid);
updatec(playerid);
if(GetPlayerScore(playerid) > 199) SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
else SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);
return 1;
}
public Spawn1(playerid)
{
if(Map == 1)
{
//If the player haven't chosen a team
if(PlayerInfo[playerid][team] == 0) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Choose a team!", "Allied (USA)\nAxis (Japan)", "Choose", "Quit");
if(PlayerInfo[playerid][class] == 1) //Infantry
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 5);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287); //I'm using the same skins for all classes, there aren't many good skins for soldiers.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 567.9901,-3043.8813,2.6661);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 944.1415,-2638.9116,6.0555);
}
if(PlayerInfo[playerid][class] == 2) //Medic
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 4, 1);
SetPlayerArmour(playerid, 50);
SetPlayerSkin(playerid, 285);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 558.4556,-3038.5942,2.6661);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 906.4796,-2638.3469,7.1125);
}
if(PlayerInfo[playerid][class] == 3) //Pilot
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 150);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 3); //Pilots also gets a few molotovs
SetPlayerArmour(playerid, 25);
SetPlayerSkin(playerid, 284);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 499.1369,-3034.0288,10.0144);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 1018.1077,-2727.4609,6.0621);
}
if(PlayerInfo[playerid][class] == 4) //Engineer
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 35, 3);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 3);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 50); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 545.3071,-3030.7354,2.6661);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 967.7507,-2672.1064,6.0656);
}
if(PlayerInfo[playerid][class] == 5) //Rifleman
{
ResetPlayerWeapons(playerid);
if(GetPlayerScore(playerid) > 50) GivePlayerWeapon(playerid, 34, 50);
else GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 24, 150);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 277); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 536.4082,-3025.8557,2.6661);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 944.1415,-2638.9116,6.0555);
}
if(PlayerInfo[playerid][spawn] == 1)
{
if(Map == 1)
{
if(azone1C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, 547.5643,-2637.5525,6.0406);
}
}
}
if(PlayerInfo[playerid][spawn] == 2)
{
if(Map == 1)
{
if(azone2C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, 878.4090,-2852.0828,6.0088);
}
}
}
if(PlayerInfo[playerid][spawn] == 4)
{
new id = PlayerInfo[playerid][smember], Float:plx, Float:ply, Float:plz;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sleader] == id)
{
GetPlayerPos(i, plx, ply, plz);
}
}
SetPlayerPos(playerid, plx+2, ply, plz);
}
SetPlayerHealth(playerid, 100.0);
SetPlayerWorldBounds(playerid, 1354.634, 81.74512, -2078.662, -3304.839);
}
return 1;
}
public Spawn2(playerid)
{
if(Map == 2)
{
//If the player haven't chosen a team
if(PlayerInfo[playerid][team] == 0) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Choose a team!", "Allied (Soviet Union)\nAxis (Nazi Germany)", "Choose", "Quit");
if(PlayerInfo[playerid][class] == 1) //Infantry
{
ResetPlayerWeapons(playerid);
if(PlayerInfo[playerid][team] == 1) GivePlayerWeapon(playerid, 30, 300); // Soviet union gets the AK47
else GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 5);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287); //I'm using the same skins for all classes, there aren't many good skins for soldiers.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 2024.6462,69.0265,30.0781);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 2531.6221,89.7395,26.3359);
}
if(PlayerInfo[playerid][class] == 2) //Medic
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 4, 1);
SetPlayerArmour(playerid, 50);
SetPlayerSkin(playerid, 285);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 2005.6650,76.4765,30.8065);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 2507.4595,96.9445,26.5804);
}
if(PlayerInfo[playerid][class] == 4) //Engineer
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 35, 3);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 3);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 50); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 2009.1162,95.0455,30.1677);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 2538.2717,118.4468,26.4896);
}
if(PlayerInfo[playerid][class] == 5) //Rifleman
{
ResetPlayerWeapons(playerid);
if(GetPlayerScore(playerid) > 50) GivePlayerWeapon(playerid, 34, 50);
else GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 24, 150);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 277); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 2024.6462,69.0265,30.0781);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 2531.6221,89.7395,26.3359);
}
if(PlayerInfo[playerid][spawn] == 1)
{
if(Map == 2)
{
if(bzone1C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, 2337.4619,6.6869,26.4844);
}
}
}
if(PlayerInfo[playerid][spawn] == 2)
{
if(Map == 2)
{
if(bzone2C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, 2329.5305,147.4109,26.9540);
}
}
}
if(PlayerInfo[playerid][spawn] == 4)
{
new id = PlayerInfo[playerid][smember], Float:plx, Float:ply, Float:plz;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sleader] == id)
{
GetPlayerPos(i, plx, ply, plz);
}
}
SetPlayerPos(playerid, plx+2, ply, plz);
}
SetPlayerHealth(playerid, 100.0);
SetPlayerWorldBounds(playerid, 2615.844, 1903.494, 373.692, -175.1681);
}
return 1;
}
public Spawn3(playerid)
{
if(Map == 3)
{
//If the player haven't chosen a team
if(PlayerInfo[playerid][team] == 0) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Choose a team!", "Allied (Soviet Union)\nAxis (Nazi Germany)", "Choose", "Quit");
if(PlayerInfo[playerid][class] == 1) //Infantry
{
ResetPlayerWeapons(playerid);
if(PlayerInfo[playerid][team] == 1) GivePlayerWeapon(playerid, 30, 300); // Soviet union gets the AK47
else GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 24, 150);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287); //I'm using the same skins for all classes, there aren't many good skins for soldiers.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 612.5361,349.1039,18.9297);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 439.5653,593.9048,18.9220);
}
if(PlayerInfo[playerid][class] == 2) //Medic
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 4, 1);
SetPlayerArmour(playerid, 50);
SetPlayerSkin(playerid, 285);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 592.8596,363.9725,18.9297);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 430.1376,595.2750,18.9220);
}
if(PlayerInfo[playerid][class] == 5) //Rifleman
{
ResetPlayerWeapons(playerid);
if(GetPlayerScore(playerid) > 50) GivePlayerWeapon(playerid, 34, 50);
else GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 24, 150);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 277); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 599.9222,355.0168,18.9297);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 444.6711,576.5227,18.9220);
}
if(PlayerInfo[playerid][spawn] == 1)
{
if(Map == 3)
{
if(czone1C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, 517.5740,471.2696,18.9297);
}
}
}
if(PlayerInfo[playerid][spawn] == 4)
{
new id = PlayerInfo[playerid][smember], Float:plx, Float:ply, Float:plz;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sleader] == id)
{
GetPlayerPos(i, plx, ply, plz);
}
}
SetPlayerPos(playerid, plx+2, ply, plz);
}
SetPlayerHealth(playerid, 100.0);
SetPlayerWorldBounds(playerid, 747.384, 210.2018, 817.4513, 245.2354);
}
return 1;
}
public Spawn4(playerid)
{
if(Map == 4)
{
//If the player haven't chosen a team
if(PlayerInfo[playerid][team] == 0) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Choose a team!", "Allied (Soviet Union)\nAxis (Nazi Germany)", "Choose", "Quit");
if(PlayerInfo[playerid][class] == 1) //Infantry
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 5);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287); //I'm using the same skins for all classes, there aren't many good skins for soldiers.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 396.3280,2536.5591,16.5439);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 21.7170,2492.4028,16.4922);
}
if(PlayerInfo[playerid][class] == 2) //Medic
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 4, 1);
SetPlayerArmour(playerid, 50);
SetPlayerSkin(playerid, 285);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 365.3448,2537.4253,16.6648);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 3.7893,2492.1270,16.4844);
}
if(PlayerInfo[playerid][class] == 3) //Pilot
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 150);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 18, 3); //Pilots also gets a few molotovs
SetPlayerArmour(playerid, 25);
SetPlayerSkin(playerid, 284);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 343.2566,2531.3384,16.7727);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 5.1036,2504.7263,16.4844);
}
if(PlayerInfo[playerid][class] == 4) //Engineer
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 35, 3);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 3);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 50); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 373.0624,2541.7178,16.5391);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 16.9451,2480.1614,16.4844);
}
if(PlayerInfo[playerid][class] == 5) //Rifleman
{
ResetPlayerWeapons(playerid);
if(GetPlayerScore(playerid) > 50) GivePlayerWeapon(playerid, 34, 50);
else GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 24, 150);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 277); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 373.0624,2541.7178,16.5391);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 37.7203,2512.5286,16.4922);
}
if(PlayerInfo[playerid][spawn] == 1)
{
if(Map == 4)
{
if(dzone1C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, 156.8658,2444.9998,16.4727);
}
}
}
if(PlayerInfo[playerid][spawn] == 2)
{
if(Map == 4)
{
if(dzone2C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, 196.4838,2538.7935,16.6662);
}
}
}
if(PlayerInfo[playerid][spawn] == 4)
{
new id = PlayerInfo[playerid][smember], Float:plx, Float:ply, Float:plz;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sleader] == id)
{
GetPlayerPos(i, plx, ply, plz);
}
}
SetPlayerPos(playerid, plx+2, ply, plz);
}
SetPlayerHealth(playerid, 100.0);
SetPlayerWorldBounds(playerid, 537.1823, -186.846, 2755.979, 2253.83);
}
return 1;
}
public Spawn5(playerid)
{
if(Map == 5)
{
//If the player haven't chosen a team
if(PlayerInfo[playerid][team] == 0) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Choose a team!", "Allied (United Kingdom)\nAxis (Nazi Germany)", "Choose", "Quit");
if(PlayerInfo[playerid][class] == 1) //Infantry
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 5);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287); //I'm using the same skins for all classes, there aren't many good skins for soldiers.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -314.7336,1514.6888,75.3570);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -909.1224,2021.4003,60.9141);
}
if(PlayerInfo[playerid][class] == 2) //Medic
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 4, 1);
SetPlayerArmour(playerid, 50);
SetPlayerSkin(playerid, 285);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -272.8289,1550.4650,75.3594);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -930.6065,2014.8033,60.9141);
}
if(PlayerInfo[playerid][class] == 3) //Pilot
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 150);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 18, 3); //Pilots also gets a few molotovs
SetPlayerArmour(playerid, 25);
SetPlayerSkin(playerid, 284);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -267.4202,1440.1289,74.9430);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -876.7736,1981.2672,60.0687);
}
if(PlayerInfo[playerid][class] == 4) //Engineer
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 35, 3);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 3);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 50); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -287.6779,1565.2036,75.3594);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -898.8472,2007.4954,60.9141);
}
if(PlayerInfo[playerid][class] == 5) //Rifleman
{
ResetPlayerWeapons(playerid);
if(GetPlayerScore(playerid) > 50) GivePlayerWeapon(playerid, 34, 50);
else GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 24, 150);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 277); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -339.6404,1513.8839,75.3594);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -923.5039,2035.1733,60.9141);
}
if(PlayerInfo[playerid][spawn] == 1)
{
if(Map == 5)
{
if(ezone1C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, -539.7496,1874.0602,92.3734);
}
}
}
if(PlayerInfo[playerid][spawn] == 2)
{
if(Map == 5)
{
if(ezone2C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, -695.4422,1543.3325,82.7099);
}
}
}
if(PlayerInfo[playerid][spawn] == 4)
{
new id = PlayerInfo[playerid][smember], Float:plx, Float:ply, Float:plz;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sleader] == id)
{
GetPlayerPos(i, plx, ply, plz);
}
}
SetPlayerPos(playerid, plx+2, ply, plz);
}
SetPlayerHealth(playerid, 100.0);
SetPlayerWorldBounds(playerid, -81.74512, -969.2637, 2253.83, 1214.499);
}
return 1;
}
public Spawn6(playerid)
{
if(Map == 6)
{
//If the player haven't chosen a team
if(PlayerInfo[playerid][team] == 0) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Choose a team!", "Allied (United Kingdom)\nAxis (Nazi Germany)", "Choose", "Quit");
if(PlayerInfo[playerid][class] == 1) //Infantry
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 5);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287); //I'm using the same skins for all classes, there aren't many good skins for soldiers.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -1653.7600,-2250.9944,32.4754);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -1145.0389,-2302.7300,38.1963);
}
if(PlayerInfo[playerid][class] == 2) //Medic
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 4, 1);
SetPlayerArmour(playerid, 50);
SetPlayerSkin(playerid, 285);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -1670.1768,-2241.7224,34.6485);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -1114.2112,-2291.1819,39.6359);
}
if(PlayerInfo[playerid][class] == 3) //Pilot
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 150);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 18, 3); //Pilots also gets a few molotovs
SetPlayerArmour(playerid, 25);
SetPlayerSkin(playerid, 284);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -1640.9791,-2252.3577,31.5828);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -1114.2112,-2291.1819,39.6359);
}
if(PlayerInfo[playerid][class] == 4) //Engineer
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 35, 3);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 3);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 50); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -1653.3781,-2236.8896,30.6522);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -1130.9709,-2299.1201,38.1246);
}
if(PlayerInfo[playerid][class] == 5) //Rifleman
{
ResetPlayerWeapons(playerid);
if(GetPlayerScore(playerid) > 50) GivePlayerWeapon(playerid, 34, 50);
else GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 24, 150);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 277); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, -1668.5361,-2256.2129,35.3715);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -1145.0389,-2302.7300,38.1963);
}
if(PlayerInfo[playerid][spawn] == 1)
{
if(Map == 6)
{
if(fzone1C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, -1319.8260,-2188.3174,22.2050);
}
}
}
if(PlayerInfo[playerid][spawn] == 2)
{
if(Map == 6)
{
if(fzone2C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, -1386.2992,-2392.7446,33.4524);
}
}
}
if(PlayerInfo[playerid][spawn] == 4)
{
new id = PlayerInfo[playerid][smember], Float:plx, Float:ply, Float:plz;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sleader] == id)
{
GetPlayerPos(i, plx, ply, plz);
}
}
SetPlayerPos(playerid, plx+2, ply, plz);
}
SetPlayerHealth(playerid, 100.0);
SetPlayerWorldBounds(playerid, -724.0283, -1880.138, -1599.869, -2709.267);
}
return 1;
}
public Spawn7(playerid)
{
if(Map == 7)
{
//If the player haven't chosen a team
if(PlayerInfo[playerid][team] == 0) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Choose a team!", "Allied (Soviet Union)\nAxis (Nazi Germany)", "Choose", "Quit");
if(PlayerInfo[playerid][class] == 1) //Infantry
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 5);
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287); //I'm using the same skins for all classes, there aren't many good skins for soldiers.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 65.5206,1162.8989,18.6641);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -313.0628,1198.0687,19.7422);
}
if(PlayerInfo[playerid][class] == 2) //Medic
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 4, 1);
SetPlayerArmour(playerid, 50);
SetPlayerSkin(playerid, 285);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 44.2830,1155.3615,18.6641);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -344.7778,1188.0525,19.7922);
}
if(PlayerInfo[playerid][class] == 4) //Engineer
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 35, 3);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 3);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 50); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 44.0792,1170.9497,18.6641);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -330.9240,1196.4091,19.7922);
}
if(PlayerInfo[playerid][class] == 5) //Rifleman
{
ResetPlayerWeapons(playerid);
if(GetPlayerScore(playerid) > 50) GivePlayerWeapon(playerid, 34, 50);
else GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 24, 150);
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 277); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 88.8891,1181.8210,18.6641);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, -296.2697,1187.9478,19.7422);
}
if(PlayerInfo[playerid][spawn] == 1)
{
if(Map == 7)
{
if(gzone1C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, -145.7810,1172.8536,19.7422);
}
}
}
if(PlayerInfo[playerid][spawn] == 2)
{
if(Map == 7)
{
if(gzone2C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, -78.8137,1128.2664,19.7422);
}
}
}
if(PlayerInfo[playerid][spawn] == 4)
{
new id = PlayerInfo[playerid][smember], Float:plx, Float:ply, Float:plz;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sleader] == id)
{
GetPlayerPos(i, plx, ply, plz);
}
}
SetPlayerPos(playerid, plx+2, ply, plz);
}
SetPlayerHealth(playerid, 100.0);
SetPlayerWorldBounds(playerid, 163.4902, -420.4035, 1261.211, 922.5522);
}
return 1;
}
public Spawn8(playerid)
{
if(Map == 8)
{
//If the player haven't chosen a team
if(PlayerInfo[playerid][team] == 0) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Choose a team!", "Allied (United Kingdom)\nAxis (Nazi Germany)", "Choose", "Quit");
if(PlayerInfo[playerid][class] == 1) //Infantry
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 5);
if(PlayerInfo[playerid][team] == 1) { GivePlayerWeapon(playerid, 46, 1); }
SetPlayerArmour(playerid, 100);
SetPlayerSkin(playerid, 287); //I'm using the same skins for all classes, there aren't many good skins for soldiers.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 440.6790,-435.6421,248.3948);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 1055.4047,-342.4056,73.9922);
}
if(PlayerInfo[playerid][class] == 2) //Medic
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 4, 1);
if(PlayerInfo[playerid][team] == 1) { GivePlayerWeapon(playerid, 46, 1); }
SetPlayerArmour(playerid, 50);
SetPlayerSkin(playerid, 285);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 442.9852,-429.7196,247.7513);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 1080.2562,-295.0578,73.9922);
}
if(PlayerInfo[playerid][class] == 3) //Pilot
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 150);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 18, 3); //Pilots also gets a few molotovs
if(PlayerInfo[playerid][team] == 1) { GivePlayerWeapon(playerid, 46, 1); }
SetPlayerArmour(playerid, 25);
SetPlayerSkin(playerid, 284);
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 451.2893,-434.6649,245.9360);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 1062.3361,-296.5963,73.9851);
}
if(PlayerInfo[playerid][class] == 4) //Engineer
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 35, 3);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 3);
if(PlayerInfo[playerid][team] == 1) { GivePlayerWeapon(playerid, 46, 1); }
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 50); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 456.3609,-428.6091,244.6540);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 1032.6265,-312.0645,73.9922);
}
if(PlayerInfo[playerid][class] == 5) //Rifleman
{
ResetPlayerWeapons(playerid);
if(GetPlayerScore(playerid) > 50) GivePlayerWeapon(playerid, 34, 50);
else GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 24, 150);
if(PlayerInfo[playerid][team] == 1) { GivePlayerWeapon(playerid, 46, 1); }
SetPlayerArmour(playerid, 75);
SetPlayerSkin(playerid, 277); //The engineer skin is less realistic, but i lack good skins.
//And for the spawns
if(PlayerInfo[playerid][team] == 1) SetPlayerPos(playerid, 465.5190,-433.7281,242.6456);
if(PlayerInfo[playerid][team] == 2) SetPlayerPos(playerid, 1075.1080,-342.9151,73.9922);
}
if(PlayerInfo[playerid][spawn] == 1)
{
if(Map == 8)
{
if(hzone1C == PlayerInfo[playerid][team])
{
SetPlayerPos(playerid, 746.1295,-455.6233,16.3382);
}
}
}
if(PlayerInfo[playerid][spawn] == 4)
{
new id = PlayerInfo[playerid][smember], Float:plx, Float:ply, Float:plz;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][sleader] == id)
{
GetPlayerPos(i, plx, ply, plz);
}
}
SetPlayerPos(playerid, plx+2, ply, plz);
}
SetPlayerHealth(playerid, 100.0);
SetPlayerWorldBounds(playerid, 1424.701, 420.4035, -81.74512, -630.6053);
}
return 1;
}