21.02.2013, 16:01
pawn Код:
if (PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x0000E8AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 1462.2394,-1543.5297,13.5469);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//POLICIA MILITAR
if (PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x0000E8AA);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
//POLICIA FEDERAL
if (PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pLeader] == 2)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x2F18FFAA);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 257.0127,190.2985,1008.1719);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//FORЗAS ARMADAS
if (PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x28FF3DAA);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 310.6609,-164.7110,999.5938);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
//Spawn medicos
if (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 2032.9209,-1405.9281,17.2215);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//BALLAS
if (PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x980079AA);
SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid, 5);
return 1;
}
//GROVE STREET
if (PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x007812AA);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//MENDIGOS
if (PlayerInfo[playerid][pMember] == 25 && PlayerInfo[playerid][pLeader] == 25)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xB86E00AA);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, 2063.3792,-1589.7528,17.7891);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//TALIBANS
if (PlayerInfo[playerid][pMember] == 26 && PlayerInfo[playerid][pLeader] == 26)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x003958AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, -89.1879,-1564.4606,3.0043);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//MADEIREIROS
if (PlayerInfo[playerid][pMember] == 27 && PlayerInfo[playerid][pLeader] == 27)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x785400AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, -562.8926,-188.0238,78.4063);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//SkinHeads
if (PlayerInfo[playerid][pMember] == 28 && PlayerInfo[playerid][pLeader] == 28)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x785400AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 855.6458,-822.0485,89.2322);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//CowBoys
if (PlayerInfo[playerid][pMember] == 29 && PlayerInfo[playerid][pLeader] == 29)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x785400AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 2803.7913,-1105.8456,94.6219);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//Al-Capones
if (PlayerInfo[playerid][pMember] == 30 && PlayerInfo[playerid][pLeader] == 30)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x785400AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, -562.8926,-188.0238,78.4063);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//Presidente
if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[playerid][pMember] == 7)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xFFFF90AA);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1130.1013,-2037.5076,69.0078);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 24, 300);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//HITMANS
if (PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pLeader] == 8)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x000000AA);
SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
SetPlayerFacingAngle(playerid, 244.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,4);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 22, 100);
SafeGivePlayerWeapon(playerid, 34, 50);
PlayerInfo[playerid][pInt] = 4;
return 1;
}
//SAN NEWS
if (PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x77B800AA);
SetPlayerPos(playerid, 356.6006,209.0214,1008.3828);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//LOWRIDERS
if (PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pLeader] == 10)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xFFB938AA);
SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
//SAN FIERRO RIFFAS
if (PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x4A4C4CAA);
SetPlayerPos(playerid, 2178.6990,-2255.3501,14.7734);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerFacingAngle(playerid, 225.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//LOS SANTOS VAGOS
if(PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xF8F800AA);
SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//ASPHALT KING'S
if (PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pLeader] == 13)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x380024AA);
SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid,11);
PlayerInfo[playerid][pInt] = 11;
return 1;
}
//POLICIA RODOVIARIA FEDERAL
if (PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x88BDFFAA);
SetPlayerPos(playerid, 322.1213,315.1004,999.1484);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 30);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,5);
PlayerInfo[playerid][pInt] = 5;
return 1;
}
//AZTECAS
if (PlayerInfo[playerid][pMember] == 15 && PlayerInfo[playerid][pLeader] == 15)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x00F0F0AA);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
PlayerInfo[playerid][pInt] = 8;
return 1;
}
//TRIADS
if (PlayerInfo[playerid][pMember] == 16 && PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x625E5EAA);
SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 8, 1);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//YAKUZA
if (PlayerInfo[playerid][pMember] == 17 && PlayerInfo[playerid][pLeader] == 17)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x343131AA);
SetPlayerPos(playerid, -2164.5222,645.5374,1057.5938);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 8, 1);
SetPlayerInterior(playerid,1);
return 1;
}
//DRIFTERS
if (PlayerInfo[playerid][pMember] == 18 && PlayerInfo[playerid][pLeader] == 18)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xFFF318AA);
SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid,18);
return 1;
}
//COMANDO VERMELHO
if (PlayerInfo[playerid][pMember] == 19 && PlayerInfo[playerid][pLeader] == 19)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xF80001AA);
SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid,10);
return 1;
}
//PCC
if (PlayerInfo[playerid][pMember] == 20 && PlayerInfo[playerid][pLeader] == 20)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x0001F8AA);
SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid,2);
PlayerInfo[playerid][pInt] = 2;
return 1;
}
//Policia Civil
if (PlayerInfo[playerid][pMember] == 23 && PlayerInfo[playerid][pLeader] == 23)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x109FFFAA);
SetPlayerArmour(playerid, 80);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 1518.8245,-1452.7969,14.2031);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 10);
PlayerInfo[playerid][pInt] = 10;
return 1;
}
//AS FARC
if (PlayerInfo[playerid][pMember] == 22 && PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x003238AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 425.1764,2531.2666,16.6157);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//ROTA
if (PlayerInfo[playerid][pMember] == 21 && PlayerInfo[playerid][pLeader] == 21)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x0000A0AA);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//bombeiros
if (PlayerInfo[playerid][pMember] == 24 && PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xD82B00AA);
SetPlayerArmour(playerid, 80);
SetPlayerHealth(playerid, 100);
GivePlayerWeapon(playerid,42,50000);
SetPlayerPos(playerid, 1285.1731,-1349.7958,13.5657);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//spawn admins
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 99999);
SetPlayerHealth(playerid, 99999);
SetPlayerPos(playerid, -2885.7073,472.6922,4.9141);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
GivePlayerWeapon(playerid,38,50000);
SetPlayerSkin(playerid, 217);
return 1;
}
if ((gTeam[playerid]) == 1)
{
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1462.2394,-1543.5297,13.5469);
SetPlayerFacingAngle(playerid, 46.8583);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
return 1;
}