public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
TextDrawShowForPlayer(playerid, Textdraw01);
TextDrawShowForPlayer(playerid, Textdraw02);
TextDrawShowForPlayer(playerid, Textdraw03);
TextDrawShowForPlayer(playerid, Textdraw04);
spawnado[playerid] = 1;
LoadFightStyle(playerid);
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid,14, DIALOG_STYLE_MSGBOX, "Atencгo", "Qual й o seu sexo?", "Masculino", "Feminino");
}
if(ProvocoMorro[playerid] == 1)
{
GangZoneStopFlashForAll(GZMorro);
GangZoneShowForAll(GZMorro, 0xFFFFFF96);
GuerranoMorro = 0;
ProvocoMorro[playerid] = 0;
DonoMorro = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraMorro);
}
if(ProvocoFarol[playerid] == 1)
{
GangZoneStopFlashForAll(GZFarol);
GangZoneShowForAll(GZFarol, 0xFFFFFF96);
GuerranoFarol = 0;
ProvocoFarol[playerid] = 0;
DonoFarol = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFarol);
}
if(ProvocoCemiterio[playerid] == 1)
{
GangZoneStopFlashForAll(GZCemiterio);
GangZoneShowForAll(GZCemiterio, 0xFFFFFF96);
GuerranoCemiterio = 0;
ProvocoCemiterio[playerid] = 0;
DonoCemiterio = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraCemiterio);
}
if(ProvocoPraia[playerid] == 1)
{
GangZoneStopFlashForAll(GZPraia);
GangZoneShowForAll(GZPraia, 0xFFFFFF96);
GuerranoPraia = 0;
ProvocoPraia[playerid] = 0;
DonoPraia = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPraia);
}
if(ProvocoAero[playerid] == 1)
{
GangZoneStopFlashForAll(GZAero);
GangZoneShowForAll(GZAero, 0xFFFFFF96);
GuerranoAero = 0;
ProvocoAero[playerid] = 0;
DonoAero = 0;
Dominando[playerid] = 0;
KillTimer(TempoGueraAero);
}
if(ProvocoPier[playerid] == 1)
{
GangZoneStopFlashForAll(GZPier);
GangZoneShowForAll(GZPier, 0xFFFFFF96);
GuerranoPier = 0;
ProvocoPier[playerid] = 0;
DonoPier = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPier);
}
if(ProvocoShop[playerid] == 1)
{
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
GuerranoShop = 0;
ProvocoShop[playerid] = 0;
DonoShop = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraShop);
}
if(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
DonoSkate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(ProvocoGzMafia1[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia1);
GangZoneShowForAll(GZMafia1, 0xFFFFFF96);
GuerranoGzMafia1 = 0;
ProvocoGzMafia1[playerid] = 0;
DonoGzMafia1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia1);
}
if(ProvocoGzMafia2[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia2);
GangZoneShowForAll(GZMafia2, 0xFFFFFF96);
GuerranoGzMafia2 = 0;
ProvocoGzMafia2[playerid] = 0;
DonoGzMafia2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia2);
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerPaintballing[playerid] != 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 24, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк nгo cumpriu com sua pena, dados: LSPD HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,197.7218,175.0082,1003.0234);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: FBI HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,223.2259,109.8377,999.0156);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: Bope HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid, 0);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, BanguSpawns[rand][0], BanguSpawns[rand][1], BanguSpawns[rand][2]);
Carregar1(playerid);
return 1;
}
if(FixBug[playerid] == 0 && Hospital[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerInfo[playerid][pDonateRank] != 2)
{
Hospital[playerid] = 0;
Irhosp = SetTimerEx("Ambu", 1000, 0, "i", playerid);
return 1;
}
if(house != 255 && LocalSpawn[playerid] == 1)
{
if(SpawnChange[playerid])
{
if(PlayerInfo[playerid][pDonateRank] == 1)
{
SetPlayerArmour(playerid, 50);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
}
if(PlayerInfo[playerid][pDonateRank] == 2)
{
SetPlayerArmour(playerid, 70);
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
}
if(PlayerInfo[playerid][pDonateRank] == 3)
{
SetPlayerArmour(playerid, 100);
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
}
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
{
SafeGivePlayerWeapon(playerid, 4, 1);
}
else if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 28 || PlayerInfo[playerid][pMember] == 28)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else
{
SetPlayerToTeamColor(playerid);
//SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
PlayerInfo[playerid][pLocal] = house;
//PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
}
return 1;
}
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 300);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
SetPlayerArmour(playerid, 40);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
SetPlayerArmour(playerid, 70);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
SetPlayerArmour(playerid, 100);
}
//MECANICOS
if (PlayerInfo[playerid][pJob] == 7 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 2520.1360,-1476.3246,23.9898);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//TAXISTAS
if (PlayerInfo[playerid][pJob] == 13 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1518.6538,-1466.5354,9.5000);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//CAMIONEIROS
if (PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -40.0272,-232.3873,5.7161);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//POLICIA MILITAR
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
SetPlayerFacingAngle(playerid, 270.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);
SetPlayerArmour(playerid, 50);
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);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1350.8427,498.5581,18.2344);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
// MЙDICOS
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2033.1431,-1405.6340,17.2290);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//Ballas
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,5);
return 1;
}
//GROVE STREET
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
return 1;
}
//PREFEITO
if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerArmour(playerid, 90);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
SetPlayerFacingAngle(playerid, 244.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,4);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 34, 50);
PlayerInfo[playerid][pInt] = 4;
return 1;
}
//SAN NEWS
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
//SAN FIERRO RIFFA'S
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerToTeamColor(playerid);
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;
}
//VAGOS
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,11);
PlayerInfo[playerid][pInt] = 11;
return 1;
}
//Detran
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
PlayerInfo[playerid][pInt] = 8;
return 1;
}
//TRIADS
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
SafeGivePlayerWeapon(playerid, 24, 100);
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);
SetPlayerPos(playerid, -2162.7759,645.1091,1057.5861);
SetPlayerFacingAngle(playerid, 114.0);
SetCameraBehindPlayer(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,18);
return 1;
}
//COMANDO
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,10);
return 1;
}
//PCC
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,2);
PlayerInfo[playerid][pInt] = 2;
return 1;
}
//Bope
if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//ALQAEDA
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 410.5698,2538.9133,16.5474);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
// Amigos dos Amigos
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 767.0450,-68.6931,1001.5692);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,7);
PlayerInfo[playerid][pInt] = 7;
return 1;
}
// Aryan Brotherhood
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 611.5771,2.1374,1000.9219);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
return 1;
}
// Bloodz
if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 733.2858,1436.5341,1102.7031);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
// Crips
if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 412.4734,-48.3636,1001.8967);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
// Texas
if (PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 418.6468,-79.7895,1001.8047);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//Forзa Delta
if (PlayerInfo[playerid][pMember] == 28 || PlayerInfo[playerid][pLeader] == 28)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1614.6556,686.8087,7.1875);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Farc
if (PlayerInfo[playerid][pMember] == 29 || PlayerInfo[playerid][pLeader] == 29)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -435.3261,-60.1171,58.8750);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Hamas
if (PlayerInfo[playerid][pMember] == 30 || PlayerInfo[playerid][pLeader] == 30)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -2818.6052,-1529.5737,140.8438);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
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;
}
if(PlayerInfo[playerid][pFMember] != 255)
{
new family = PlayerInfo[playerid][pFMember];
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
SetPlayerFacingAngle(playerid, 46.8583);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
return 1;
}
if(strcmp(cmd, "/localspawn", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "|________________________________________|");
SendClientMessage(playerid, COLOR_WHITE, "/localspawn [nome]");
SendClientMessage(playerid, COLOR_WHITE, "Nomes Disponнveis: hq, casa");
SendClientMessage(playerid, COLOR_GREY, "|________________________________________|");
return 1;
}
if(strcmp(tmp, "hq", true) == 0)
{
if(PlayerInfo[playerid][pPhousekey] != 255)
{
LocalSpawn[playerid] = 0;
SendClientMessage(playerid, COLOR_GREY, "Agora vocк irб spawnar na HQ.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк precisa ter casa para usar esse comando");
return 1;
}
}
else if(strcmp(tmp, "casa", true) == 0)
{
if(PlayerInfo[playerid][pPhousekey] != 255)
{
LocalSpawn[playerid] = 1;
SendClientMessage(playerid, COLOR_GREY, "Agora vocк irб spawnar em casa.");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк precisa ter casa para usar esse comando");
return 1;
}
}
else {
SendClientMessage(playerid, COLOR_GREY, "/localspawn [nome]");
return 1;
}
}
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
TextDrawShowForPlayer(playerid, Textdraw01);
TextDrawShowForPlayer(playerid, Textdraw02);
TextDrawShowForPlayer(playerid, Textdraw03);
TextDrawShowForPlayer(playerid, Textdraw04);
spawnado[playerid] = 1;
LoadFightStyle(playerid);
if(LocalSpawn[playerid] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid,14, DIALOG_STYLE_MSGBOX, "Atencгo", "Qual й o seu sexo?", "Masculino", "Feminino");
}
if(ProvocoMorro[playerid] == 1)
{
GangZoneStopFlashForAll(GZMorro);
GangZoneShowForAll(GZMorro, 0xFFFFFF96);
GuerranoMorro = 0;
ProvocoMorro[playerid] = 0;
DonoMorro = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraMorro);
}
if(ProvocoFarol[playerid] == 1)
{
GangZoneStopFlashForAll(GZFarol);
GangZoneShowForAll(GZFarol, 0xFFFFFF96);
GuerranoFarol = 0;
ProvocoFarol[playerid] = 0;
DonoFarol = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFarol);
}
if(ProvocoCemiterio[playerid] == 1)
{
GangZoneStopFlashForAll(GZCemiterio);
GangZoneShowForAll(GZCemiterio, 0xFFFFFF96);
GuerranoCemiterio = 0;
ProvocoCemiterio[playerid] = 0;
DonoCemiterio = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraCemiterio);
}
if(ProvocoPraia[playerid] == 1)
{
GangZoneStopFlashForAll(GZPraia);
GangZoneShowForAll(GZPraia, 0xFFFFFF96);
GuerranoPraia = 0;
ProvocoPraia[playerid] = 0;
DonoPraia = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPraia);
}
if(ProvocoAero[playerid] == 1)
{
GangZoneStopFlashForAll(GZAero);
GangZoneShowForAll(GZAero, 0xFFFFFF96);
GuerranoAero = 0;
ProvocoAero[playerid] = 0;
DonoAero = 0;
Dominando[playerid] = 0;
KillTimer(TempoGueraAero);
}
if(ProvocoPier[playerid] == 1)
{
GangZoneStopFlashForAll(GZPier);
GangZoneShowForAll(GZPier, 0xFFFFFF96);
GuerranoPier = 0;
ProvocoPier[playerid] = 0;
DonoPier = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPier);
}
if(ProvocoShop[playerid] == 1)
{
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
GuerranoShop = 0;
ProvocoShop[playerid] = 0;
DonoShop = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraShop);
}
if(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
DonoSkate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(ProvocoGzMafia1[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia1);
GangZoneShowForAll(GZMafia1, 0xFFFFFF96);
GuerranoGzMafia1 = 0;
ProvocoGzMafia1[playerid] = 0;
DonoGzMafia1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia1);
}
if(ProvocoGzMafia2[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia2);
GangZoneShowForAll(GZMafia2, 0xFFFFFF96);
GuerranoGzMafia2 = 0;
ProvocoGzMafia2[playerid] = 0;
DonoGzMafia2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia2);
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerPaintballing[playerid] != 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 24, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк nгo cumpriu com sua pena, dados: LSPD HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,197.7218,175.0082,1003.0234);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: FBI HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,223.2259,109.8377,999.0156);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: Bope HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid, 0);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, BanguSpawns[rand][0], BanguSpawns[rand][1], BanguSpawns[rand][2]);
Carregar1(playerid);
return 1;
}
if(FixBug[playerid] == 0 && Hospital[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerInfo[playerid][pDonateRank] != 2)
{
Hospital[playerid] = 0;
Irhosp = SetTimerEx("Ambu", 1000, 0, "i", playerid);
return 1;
}
if(house != 255 && LocalSpawn[playerid] == 1)
{
if(SpawnChange[playerid])
{
if(PlayerInfo[playerid][pDonateRank] == 1)
{
SetPlayerArmour(playerid, 50);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
}
if(PlayerInfo[playerid][pDonateRank] == 2)
{
SetPlayerArmour(playerid, 70);
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
}
if(PlayerInfo[playerid][pDonateRank] == 3)
{
SetPlayerArmour(playerid, 100);
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
}
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
{
SafeGivePlayerWeapon(playerid, 4, 1);
}
else if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 28 || PlayerInfo[playerid][pMember] == 28)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
return 1;
}
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 300);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
SetPlayerArmour(playerid, 40);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
SetPlayerArmour(playerid, 70);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
SetPlayerArmour(playerid, 100);
}
//MECANICOS
if (PlayerInfo[playerid][pJob] == 7 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 2520.1360,-1476.3246,23.9898);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//TAXISTAS
if (PlayerInfo[playerid][pJob] == 13 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1518.6538,-1466.5354,9.5000);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//CAMIONEIROS
if (PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -40.0272,-232.3873,5.7161);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//POLICIA MILITAR
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
SetPlayerFacingAngle(playerid, 270.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);
SetPlayerArmour(playerid, 50);
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);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1350.8427,498.5581,18.2344);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
// MЙDICOS
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2033.1431,-1405.6340,17.2290);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//Ballas
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,5);
return 1;
}
//GROVE STREET
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
return 1;
}
//PREFEITO
if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerArmour(playerid, 90);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
SetPlayerFacingAngle(playerid, 244.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,4);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 34, 50);
PlayerInfo[playerid][pInt] = 4;
return 1;
}
//SAN NEWS
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
//SAN FIERRO RIFFA'S
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerToTeamColor(playerid);
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;
}
//VAGOS
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,11);
PlayerInfo[playerid][pInt] = 11;
return 1;
}
//Detran
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
PlayerInfo[playerid][pInt] = 8;
return 1;
}
//TRIADS
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
SafeGivePlayerWeapon(playerid, 24, 100);
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);
SetPlayerPos(playerid, -2162.7759,645.1091,1057.5861);
SetPlayerFacingAngle(playerid, 114.0);
SetCameraBehindPlayer(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,18);
return 1;
}
//COMANDO
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,10);
return 1;
}
//PCC
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,2);
PlayerInfo[playerid][pInt] = 2;
return 1;
}
//Bope
if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//ALQAEDA
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 410.5698,2538.9133,16.5474);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
// Amigos dos Amigos
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 767.0450,-68.6931,1001.5692);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,7);
PlayerInfo[playerid][pInt] = 7;
return 1;
}
// Aryan Brotherhood
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 611.5771,2.1374,1000.9219);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
return 1;
}
// Bloodz
if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 733.2858,1436.5341,1102.7031);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
// Crips
if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 412.4734,-48.3636,1001.8967);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
// Texas
if (PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 418.6468,-79.7895,1001.8047);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//Forзa Delta
if (PlayerInfo[playerid][pMember] == 28 || PlayerInfo[playerid][pLeader] == 28)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1614.6556,686.8087,7.1875);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Farc
if (PlayerInfo[playerid][pMember] == 29 || PlayerInfo[playerid][pLeader] == 29)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -435.3261,-60.1171,58.8750);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Hamas
if (PlayerInfo[playerid][pMember] == 30 || PlayerInfo[playerid][pLeader] == 30)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -2818.6052,-1529.5737,140.8438);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
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;
}
if(PlayerInfo[playerid][pFMember] != 255)
{
new family = PlayerInfo[playerid][pFMember];
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
SetPlayerFacingAngle(playerid, 46.8583);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
return 1;
}
C:\Users\PEDRO\Desktop\BPP GM\BPP GM\gamemodes\BPP.pwn(14365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\PEDRO\Desktop\BPP GM\BPP GM\gamemodes\BPP.pwn(14493) : error 017: undefined symbol "house"
C:\Users\PEDRO\Desktop\BPP GM\BPP GM\gamemodes\BPP.pwn(14494) : error 017: undefined symbol "house"
C:\Users\PEDRO\Desktop\BPP GM\BPP GM\gamemodes\BPP.pwn(14495) : error 017: undefined symbol "house"
C:\Users\PEDRO\Desktop\BPP GM\BPP GM\gamemodes\BPP.pwn(14496) : error 017: undefined symbol "house"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
pawn Код:
pawn Код:
pawn Код:
14495 pawn Код:
pawn Код:
|
public SetPlayerSpawn(playerid)
{
new house = PlayerInfo[playerid][pPhousekey];
if(IsPlayerConnected(playerid))
{
TextDrawShowForPlayer(playerid, Textdraw01);
TextDrawShowForPlayer(playerid, Textdraw02);
TextDrawShowForPlayer(playerid, Textdraw03);
TextDrawShowForPlayer(playerid, Textdraw04);
spawnado[playerid] = 1;
LoadFightStyle(playerid);
if(LocalSpawn[playerid] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid,14, DIALOG_STYLE_MSGBOX, "Atencгo", "Qual й o seu sexo?", "Masculino", "Feminino");
}
if(ProvocoMorro[playerid] == 1)
{
GangZoneStopFlashForAll(GZMorro);
GangZoneShowForAll(GZMorro, 0xFFFFFF96);
GuerranoMorro = 0;
ProvocoMorro[playerid] = 0;
DonoMorro = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraMorro);
}
if(ProvocoFarol[playerid] == 1)
{
GangZoneStopFlashForAll(GZFarol);
GangZoneShowForAll(GZFarol, 0xFFFFFF96);
GuerranoFarol = 0;
ProvocoFarol[playerid] = 0;
DonoFarol = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFarol);
}
if(ProvocoCemiterio[playerid] == 1)
{
GangZoneStopFlashForAll(GZCemiterio);
GangZoneShowForAll(GZCemiterio, 0xFFFFFF96);
GuerranoCemiterio = 0;
ProvocoCemiterio[playerid] = 0;
DonoCemiterio = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraCemiterio);
}
if(ProvocoPraia[playerid] == 1)
{
GangZoneStopFlashForAll(GZPraia);
GangZoneShowForAll(GZPraia, 0xFFFFFF96);
GuerranoPraia = 0;
ProvocoPraia[playerid] = 0;
DonoPraia = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPraia);
}
if(ProvocoAero[playerid] == 1)
{
GangZoneStopFlashForAll(GZAero);
GangZoneShowForAll(GZAero, 0xFFFFFF96);
GuerranoAero = 0;
ProvocoAero[playerid] = 0;
DonoAero = 0;
Dominando[playerid] = 0;
KillTimer(TempoGueraAero);
}
if(ProvocoPier[playerid] == 1)
{
GangZoneStopFlashForAll(GZPier);
GangZoneShowForAll(GZPier, 0xFFFFFF96);
GuerranoPier = 0;
ProvocoPier[playerid] = 0;
DonoPier = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPier);
}
if(ProvocoShop[playerid] == 1)
{
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
GuerranoShop = 0;
ProvocoShop[playerid] = 0;
DonoShop = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraShop);
}
if(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
DonoSkate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(ProvocoGzMafia1[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia1);
GangZoneShowForAll(GZMafia1, 0xFFFFFF96);
GuerranoGzMafia1 = 0;
ProvocoGzMafia1[playerid] = 0;
DonoGzMafia1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia1);
}
if(ProvocoGzMafia2[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia2);
GangZoneShowForAll(GZMafia2, 0xFFFFFF96);
GuerranoGzMafia2 = 0;
ProvocoGzMafia2[playerid] = 0;
DonoGzMafia2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia2);
}
new rand;
if(PlayerPaintballing[playerid] != 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 24, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк nгo cumpriu com sua pena, dados: LSPD HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,197.7218,175.0082,1003.0234);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: FBI HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,223.2259,109.8377,999.0156);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: Bope HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid, 0);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, BanguSpawns[rand][0], BanguSpawns[rand][1], BanguSpawns[rand][2]);
Carregar1(playerid);
return 1;
}
if(FixBug[playerid] == 0 && Hospital[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerInfo[playerid][pDonateRank] != 2)
{
Hospital[playerid] = 0;
Irhosp = SetTimerEx("Ambu", 1000, 0, "i", playerid);
return 1;
}
if(house != 255 && LocalSpawn[playerid] == 1)
{
if(SpawnChange[playerid])
{
if(PlayerInfo[playerid][pDonateRank] == 1)
{
SetPlayerArmour(playerid, 50);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
}
if(PlayerInfo[playerid][pDonateRank] == 2)
{
SetPlayerArmour(playerid, 70);
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
}
if(PlayerInfo[playerid][pDonateRank] == 3)
{
SetPlayerArmour(playerid, 100);
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
}
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
{
SafeGivePlayerWeapon(playerid, 4, 1);
}
else if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 28 || PlayerInfo[playerid][pMember] == 28)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
return 1;
}
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 300);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
SetPlayerArmour(playerid, 40);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
SetPlayerArmour(playerid, 70);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
SetPlayerArmour(playerid, 100);
}
//MECANICOS
if (PlayerInfo[playerid][pJob] == 7 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 2520.1360,-1476.3246,23.9898);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//TAXISTAS
if (PlayerInfo[playerid][pJob] == 13 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1518.6538,-1466.5354,9.5000);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//CAMIONEIROS
if (PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -40.0272,-232.3873,5.7161);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//POLICIA MILITAR
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
SetPlayerFacingAngle(playerid, 270.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);
SetPlayerArmour(playerid, 50);
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);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1350.8427,498.5581,18.2344);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
// MЙDICOS
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2033.1431,-1405.6340,17.2290);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//Ballas
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,5);
return 1;
}
//GROVE STREET
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
return 1;
}
//PREFEITO
if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerArmour(playerid, 90);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
SetPlayerFacingAngle(playerid, 244.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,4);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 34, 50);
PlayerInfo[playerid][pInt] = 4;
return 1;
}
//SAN NEWS
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
//SAN FIERRO RIFFA'S
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerToTeamColor(playerid);
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;
}
//VAGOS
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,11);
PlayerInfo[playerid][pInt] = 11;
return 1;
}
//Detran
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
PlayerInfo[playerid][pInt] = 8;
return 1;
}
//TRIADS
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
SafeGivePlayerWeapon(playerid, 24, 100);
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);
SetPlayerPos(playerid, -2162.7759,645.1091,1057.5861);
SetPlayerFacingAngle(playerid, 114.0);
SetCameraBehindPlayer(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,18);
return 1;
}
//COMANDO
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,10);
return 1;
}
//PCC
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,2);
PlayerInfo[playerid][pInt] = 2;
return 1;
}
//Bope
if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//ALQAEDA
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 410.5698,2538.9133,16.5474);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
// Amigos dos Amigos
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 767.0450,-68.6931,1001.5692);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,7);
PlayerInfo[playerid][pInt] = 7;
return 1;
}
// Aryan Brotherhood
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 611.5771,2.1374,1000.9219);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
return 1;
}
// Bloodz
if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 733.2858,1436.5341,1102.7031);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
// Crips
if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 412.4734,-48.3636,1001.8967);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
// Texas
if (PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 418.6468,-79.7895,1001.8047);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//Forзa Delta
if (PlayerInfo[playerid][pMember] == 28 || PlayerInfo[playerid][pLeader] == 28)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1614.6556,686.8087,7.1875);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Farc
if (PlayerInfo[playerid][pMember] == 29 || PlayerInfo[playerid][pLeader] == 29)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -435.3261,-60.1171,58.8750);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Hamas
if (PlayerInfo[playerid][pMember] == 30 || PlayerInfo[playerid][pLeader] == 30)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -2818.6052,-1529.5737,140.8438);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
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;
}
if(PlayerInfo[playerid][pFMember] != 255)
{
new family = PlayerInfo[playerid][pFMember];
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
SetPlayerFacingAngle(playerid, 46.8583);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
return 1;
}
public SetPlayerSpawn(playerid)
{
new house = PlayerInfo[playerid][pPhousekey];
if(IsPlayerConnected(playerid))
{
TextDrawShowForPlayer(playerid, Textdraw01);
TextDrawShowForPlayer(playerid, Textdraw02);
TextDrawShowForPlayer(playerid, Textdraw03);
TextDrawShowForPlayer(playerid, Textdraw04);
spawnado[playerid] = 1;
LoadFightStyle(playerid);
if(LocalSpawn[playerid] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid,14, DIALOG_STYLE_MSGBOX, "Atencгo", "Qual й o seu sexo?", "Masculino", "Feminino");
}
if(ProvocoMorro[playerid] == 1)
{
GangZoneStopFlashForAll(GZMorro);
GangZoneShowForAll(GZMorro, 0xFFFFFF96);
GuerranoMorro = 0;
ProvocoMorro[playerid] = 0;
DonoMorro = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraMorro);
}
if(ProvocoFarol[playerid] == 1)
{
GangZoneStopFlashForAll(GZFarol);
GangZoneShowForAll(GZFarol, 0xFFFFFF96);
GuerranoFarol = 0;
ProvocoFarol[playerid] = 0;
DonoFarol = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFarol);
}
if(ProvocoCemiterio[playerid] == 1)
{
GangZoneStopFlashForAll(GZCemiterio);
GangZoneShowForAll(GZCemiterio, 0xFFFFFF96);
GuerranoCemiterio = 0;
ProvocoCemiterio[playerid] = 0;
DonoCemiterio = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraCemiterio);
}
if(ProvocoPraia[playerid] == 1)
{
GangZoneStopFlashForAll(GZPraia);
GangZoneShowForAll(GZPraia, 0xFFFFFF96);
GuerranoPraia = 0;
ProvocoPraia[playerid] = 0;
DonoPraia = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPraia);
}
if(ProvocoAero[playerid] == 1)
{
GangZoneStopFlashForAll(GZAero);
GangZoneShowForAll(GZAero, 0xFFFFFF96);
GuerranoAero = 0;
ProvocoAero[playerid] = 0;
DonoAero = 0;
Dominando[playerid] = 0;
KillTimer(TempoGueraAero);
}
if(ProvocoPier[playerid] == 1)
{
GangZoneStopFlashForAll(GZPier);
GangZoneShowForAll(GZPier, 0xFFFFFF96);
GuerranoPier = 0;
ProvocoPier[playerid] = 0;
DonoPier = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPier);
}
if(ProvocoShop[playerid] == 1)
{
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
GuerranoShop = 0;
ProvocoShop[playerid] = 0;
DonoShop = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraShop);
}
if(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
DonoSkate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(ProvocoGzMafia1[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia1);
GangZoneShowForAll(GZMafia1, 0xFFFFFF96);
GuerranoGzMafia1 = 0;
ProvocoGzMafia1[playerid] = 0;
DonoGzMafia1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia1);
}
if(ProvocoGzMafia2[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia2);
GangZoneShowForAll(GZMafia2, 0xFFFFFF96);
GuerranoGzMafia2 = 0;
ProvocoGzMafia2[playerid] = 0;
DonoGzMafia2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia2);
}
new rand;
if(PlayerPaintballing[playerid] != 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 24, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк nгo cumpriu com sua pena, dados: LSPD HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,197.7218,175.0082,1003.0234);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: FBI HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,223.2259,109.8377,999.0156);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: Bope HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid, 0);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, BanguSpawns[rand][0], BanguSpawns[rand][1], BanguSpawns[rand][2]);
Carregar1(playerid);
return 1;
}
if(FixBug[playerid] == 0 && Hospital[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerInfo[playerid][pDonateRank] != 2)
{
Hospital[playerid] = 0;
Irhosp = SetTimerEx("Ambu", 1000, 0, "i", playerid);
return 1;
}
if(house != 255 && LocalSpawn[playerid] == 1)
{
if(SpawnChange[playerid])
{
if(PlayerInfo[playerid][pDonateRank] == 1)
{
SetPlayerArmour(playerid, 50);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
}
if(PlayerInfo[playerid][pDonateRank] == 2)
{
SetPlayerArmour(playerid, 70);
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
}
if(PlayerInfo[playerid][pDonateRank] == 3)
{
SetPlayerArmour(playerid, 100);
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
}
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
{
SafeGivePlayerWeapon(playerid, 4, 1);
}
else if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 28 || PlayerInfo[playerid][pMember] == 28)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
}
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 300);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
SetPlayerArmour(playerid, 40);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
SetPlayerArmour(playerid, 70);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
SetPlayerArmour(playerid, 100);
}
//MECANICOS
if (PlayerInfo[playerid][pJob] == 7 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 2520.1360,-1476.3246,23.9898);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//TAXISTAS
if (PlayerInfo[playerid][pJob] == 13 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1518.6538,-1466.5354,9.5000);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//CAMIONEIROS
if (PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -40.0272,-232.3873,5.7161);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//POLICIA MILITAR
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
SetPlayerFacingAngle(playerid, 270.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);
SetPlayerArmour(playerid, 50);
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);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1350.8427,498.5581,18.2344);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
// MЙDICOS
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2033.1431,-1405.6340,17.2290);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//Ballas
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,5);
return 1;
}
//GROVE STREET
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
return 1;
}
//PREFEITO
if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerArmour(playerid, 90);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
SetPlayerFacingAngle(playerid, 244.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,4);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 34, 50);
PlayerInfo[playerid][pInt] = 4;
return 1;
}
//SAN NEWS
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
//SAN FIERRO RIFFA'S
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerToTeamColor(playerid);
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;
}
//VAGOS
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,11);
PlayerInfo[playerid][pInt] = 11;
return 1;
}
//Detran
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
PlayerInfo[playerid][pInt] = 8;
return 1;
}
//TRIADS
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
SafeGivePlayerWeapon(playerid, 24, 100);
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);
SetPlayerPos(playerid, -2162.7759,645.1091,1057.5861);
SetPlayerFacingAngle(playerid, 114.0);
SetCameraBehindPlayer(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,18);
return 1;
}
//COMANDO
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,10);
return 1;
}
//PCC
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,2);
PlayerInfo[playerid][pInt] = 2;
return 1;
}
//Bope
if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//ALQAEDA
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 410.5698,2538.9133,16.5474);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
// Amigos dos Amigos
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 767.0450,-68.6931,1001.5692);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,7);
PlayerInfo[playerid][pInt] = 7;
return 1;
}
// Aryan Brotherhood
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 611.5771,2.1374,1000.9219);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
return 1;
}
// Bloodz
if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 733.2858,1436.5341,1102.7031);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
// Crips
if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 412.4734,-48.3636,1001.8967);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
// Texas
if (PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 418.6468,-79.7895,1001.8047);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//Forзa Delta
if (PlayerInfo[playerid][pMember] == 28 || PlayerInfo[playerid][pLeader] == 28)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1614.6556,686.8087,7.1875);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Farc
if (PlayerInfo[playerid][pMember] == 29 || PlayerInfo[playerid][pLeader] == 29)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -435.3261,-60.1171,58.8750);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Hamas
if (PlayerInfo[playerid][pMember] == 30 || PlayerInfo[playerid][pLeader] == 30)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -2818.6052,-1529.5737,140.8438);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
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;
}
if(PlayerInfo[playerid][pFMember] != 255)
{
new family = PlayerInfo[playerid][pFMember];
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
SetPlayerFacingAngle(playerid, 46.8583);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
return 1;
}
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
new rand;
new house = PlayerInfo[playerid][pPhousekey];
TextDrawShowForPlayer(playerid, Textdraw01);
TextDrawShowForPlayer(playerid, Textdraw02);
TextDrawShowForPlayer(playerid, Textdraw03);
TextDrawShowForPlayer(playerid, Textdraw04);
spawnado[playerid] = 1;
LoadFightStyle(playerid);
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid,14, DIALOG_STYLE_MSGBOX, "Atencгo", "Qual й o seu sexo?", "Masculino", "Feminino");
}
if(ProvocoMorro[playerid] == 1)
{
GangZoneStopFlashForAll(GZMorro);
GangZoneShowForAll(GZMorro, 0xFFFFFF96);
GuerranoMorro = 0;
ProvocoMorro[playerid] = 0;
DonoMorro = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraMorro);
}
if(ProvocoFarol[playerid] == 1)
{
GangZoneStopFlashForAll(GZFarol);
GangZoneShowForAll(GZFarol, 0xFFFFFF96);
GuerranoFarol = 0;
ProvocoFarol[playerid] = 0;
DonoFarol = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFarol);
}
if(ProvocoCemiterio[playerid] == 1)
{
GangZoneStopFlashForAll(GZCemiterio);
GangZoneShowForAll(GZCemiterio, 0xFFFFFF96);
GuerranoCemiterio = 0;
ProvocoCemiterio[playerid] = 0;
DonoCemiterio = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraCemiterio);
}
if(ProvocoPraia[playerid] == 1)
{
GangZoneStopFlashForAll(GZPraia);
GangZoneShowForAll(GZPraia, 0xFFFFFF96);
GuerranoPraia = 0;
ProvocoPraia[playerid] = 0;
DonoPraia = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPraia);
}
if(ProvocoAero[playerid] == 1)
{
GangZoneStopFlashForAll(GZAero);
GangZoneShowForAll(GZAero, 0xFFFFFF96);
GuerranoAero = 0;
ProvocoAero[playerid] = 0;
DonoAero = 0;
Dominando[playerid] = 0;
KillTimer(TempoGueraAero);
}
if(ProvocoPier[playerid] == 1)
{
GangZoneStopFlashForAll(GZPier);
GangZoneShowForAll(GZPier, 0xFFFFFF96);
GuerranoPier = 0;
ProvocoPier[playerid] = 0;
DonoPier = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPier);
}
if(ProvocoShop[playerid] == 1)
{
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
GuerranoShop = 0;
ProvocoShop[playerid] = 0;
DonoShop = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraShop);
}
if(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
DonoSkate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(ProvocoGzMafia1[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia1);
GangZoneShowForAll(GZMafia1, 0xFFFFFF96);
GuerranoGzMafia1 = 0;
ProvocoGzMafia1[playerid] = 0;
DonoGzMafia1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia1);
}
if(ProvocoGzMafia2[playerid] == 1)
{
GangZoneStopFlashForAll(GZMafia2);
GangZoneShowForAll(GZMafia2, 0xFFFFFF96);
GuerranoGzMafia2 = 0;
ProvocoGzMafia2[playerid] = 0;
DonoGzMafia2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraGzMafia2);
}
if(PlayerPaintballing[playerid] != 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 24, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк nгo cumpriu com sua pena, dados: LSPD HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,197.7218,175.0082,1003.0234);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: FBI HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,223.2259,109.8377,999.0156);
SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: Bope HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid, 0);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, BanguSpawns[rand][0], BanguSpawns[rand][1], BanguSpawns[rand][2]);
Carregar1(playerid);
return 1;
}
if(FixBug[playerid] == 0 && Hospital[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerInfo[playerid][pDonateRank] != 2)
{
Hospital[playerid] = 0;
Irhosp = SetTimerEx("Ambu", 1000, 0, "i", playerid);
return 1;
}
if(house != 255 && LocalSpawn[playerid] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
PlayerInfo[playerid][pLocal] = house;
if(SpawnChange[playerid])
{
if(PlayerInfo[playerid][pDonateRank] == 1)
{
SetPlayerArmour(playerid, 50);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
}
if(PlayerInfo[playerid][pDonateRank] == 2)
{
SetPlayerArmour(playerid, 70);
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
}
if(PlayerInfo[playerid][pDonateRank] == 3)
{
SetPlayerArmour(playerid, 100);
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
}
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
{
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
{
SafeGivePlayerWeapon(playerid, 4, 1);
}
else if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 28 || PlayerInfo[playerid][pMember] == 28)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
}
return 1;
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 300);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
SetPlayerArmour(playerid, 40);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 1000);
SafeGivePlayerWeapon(playerid, 29, 1000);
SafeGivePlayerWeapon(playerid, 31, 1000);
SetPlayerArmour(playerid, 70);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
SetPlayerArmour(playerid, 100);
}
//MECANICOS
if (PlayerInfo[playerid][pJob] == 7 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 2520.1360,-1476.3246,23.9898);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//TAXISTAS
if (PlayerInfo[playerid][pJob] == 13 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 1518.6538,-1466.5354,9.5000);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//CAMIONEIROS
if (PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pMember] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -40.0272,-232.3873,5.7161);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//POLICIA MILITAR
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
SetPlayerFacingAngle(playerid, 270.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);
SetPlayerArmour(playerid, 50);
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);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1350.8427,498.5581,18.2344);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
// MЙDICOS
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2033.1431,-1405.6340,17.2290);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//Ballas
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,5);
return 1;
}
//GROVE STREET
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
return 1;
}
//PREFEITO
if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerArmour(playerid, 90);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
SetPlayerFacingAngle(playerid, 244.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,4);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 34, 50);
PlayerInfo[playerid][pInt] = 4;
return 1;
}
//SAN NEWS
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
//SAN FIERRO RIFFA'S
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerToTeamColor(playerid);
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;
}
//VAGOS
if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,11);
PlayerInfo[playerid][pInt] = 11;
return 1;
}
//Detran
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerToTeamColor(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
PlayerInfo[playerid][pInt] = 8;
return 1;
}
//TRIADS
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
SafeGivePlayerWeapon(playerid, 24, 100);
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);
SetPlayerPos(playerid, -2162.7759,645.1091,1057.5861);
SetPlayerFacingAngle(playerid, 114.0);
SetCameraBehindPlayer(playerid);
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);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,18);
return 1;
}
//COMANDO
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,10);
return 1;
}
//PCC
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,2);
PlayerInfo[playerid][pInt] = 2;
return 1;
}
//Bope
if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//ALQAEDA
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 410.5698,2538.9133,16.5474);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
// Amigos dos Amigos
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 767.0450,-68.6931,1001.5692);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,7);
PlayerInfo[playerid][pInt] = 7;
return 1;
}
// Aryan Brotherhood
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 611.5771,2.1374,1000.9219);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,1);
PlayerInfo[playerid][pInt] = 1;
return 1;
}
// Bloodz
if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 733.2858,1436.5341,1102.7031);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
// Crips
if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 412.4734,-48.3636,1001.8967);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
// Texas
if (PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, 418.6468,-79.7895,1001.8047);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//Forзa Delta
if (PlayerInfo[playerid][pMember] == 28 || PlayerInfo[playerid][pLeader] == 28)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SetPlayerPos(playerid, -1614.6556,686.8087,7.1875);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Farc
if (PlayerInfo[playerid][pMember] == 29 || PlayerInfo[playerid][pLeader] == 29)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -435.3261,-60.1171,58.8750);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
return 1;
}
//Hamas
if (PlayerInfo[playerid][pMember] == 30 || PlayerInfo[playerid][pLeader] == 30)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerPos(playerid, -2818.6052,-1529.5737,140.8438);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,0);
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;
}
if(PlayerInfo[playerid][pFMember] != 255)
{
new family = PlayerInfo[playerid][pFMember];
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
SetPlayerFacingAngle(playerid, 46.8583);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
return 1;
}