10.03.2012, 12:17
pawn Код:
if(gTeam[playerid] == TEAM_GROVE)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2499.0283,-1684.7625,13.4259);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,COLOR_GREEN);
SetPlayerTeam(playerid, 1);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
else if(gTeam[playerid] == TEAM_LSPD)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1564.4957,-1694.2915,5.8906);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,COLOR_BLUE);
SetPlayerTeam(playerid, 2);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
else if(gTeam[playerid] == TEAM_BW)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1264.8127,-815.3492,84.1406);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,red);
SetPlayerTeam(playerid, 3);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
else if(gTeam[playerid] == TEAM_ENE)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1715.3190,-2124.8247,14.0566);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,LIGHTBLUE);
SetPlayerTeam(playerid, 4);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
else if(gTeam[playerid] == TEAM_MAFIA)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1125.7402,-2037.2114,69.8802);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,COLOR_BLACK);
SetPlayerTeam(playerid, 5);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
if(gTeam[playerid] == TEAM_BEACH)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 315.2589,-1770.7323,4.6646);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,yellow);
SetPlayerTeam(playerid, 6);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
if(gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2650.0366,-2021.7588,14.1766);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,COLOR_PURPLE);
SetPlayerTeam(playerid, 7);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
else if(gTeam[playerid] == TEAM_GSK)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2006.4850,-1121.4561,26.5097);
SetPlayerFacingAngle(playerid, 182.3732);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,COLOR_GSK);
SetPlayerTeam(playerid, 7);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
else if(gTeam[playerid] == TEAM_3SS)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1154.0458,-1180.5831,32.8187);
SetPlayerFacingAngle(playerid, 95.1772);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerColor(playerid,COLOR_3SS);
SetPlayerTeam(playerid, 8);
if (AccInfo[playerid][Kills] >= 50) // Shotgun
{
GivePlayerWeapon(playerid, 25, 50);
}
if (AccInfo[playerid][Kills] >= 100) // Tec9
{
GivePlayerWeapon(playerid, 29, 300);
SetPlayerArmour(playerid, 25);
}
if (AccInfo[playerid][Kills] >= 150) // AK-47
{
GivePlayerWeapon(playerid, 30, 300);
SetPlayerArmour(playerid, 50);
}
if (AccInfo[playerid][Kills] >= 200) // 75 Armor
{
SetPlayerArmour(playerid, 75);
}
if (AccInfo[playerid][Kills] >= 300) // 100 Armor
{
SetPlayerArmour(playerid, 100);
}
if (AccInfo[playerid][Kills] >= 500) // Sniper
{
GivePlayerWeapon(playerid, 33, 50);
}
return 1;
}
if(AccInfo[playerid][pVip] == 1)
{
SetPlayerArmour(playerid,25);
}
else if(AccInfo[playerid][pVip] == 2)
{
SetPlayerArmour(playerid,50);
}
else if(AccInfo[playerid][pVip] == 3)
{
SetPlayerArmour(playerid,100);
}