pawn Код:
public SetPlayerSpawn(playerid)
{
/*if(Player[playerid][pAdmin] == 0)
{
SendClientMessage(playerid, COLOR_RED, "Atualizando GameMod, aguarde ...");
Kick(playerid);
return 1;
}*/
glitchfez[playerid] = false;
nowh[playerid] = 0;
noab2[playerid] = false;
noab[playerid][3] = 0;
Congelado[playerid] = 0;
PedidoAceito[playerid] = 900;
for(new i=0;i<4;i++)
AFK[playerid][i] = i;
if(IsPlayerConnected(playerid))
{
Congelar(playerid);
SetTimerEx("Descongelar", 1000, 0, "i", playerid);
LoadFightStyle(playerid);
noteste[playerid] = false;
noevento[playerid] = false;
if(Player[playerid][pTut] == 0)
{
gNews[playerid] = 1; gFam[playerid] = 1;
Congelar(playerid);
ShowPlayerDialog(playerid,14, DIALOG_STYLE_MSGBOX, "Atencгo", "Qual й o seu sexo?", "Masculino", "Feminino");
}
Player[playerid][Spawned] = true;
new rand;
new house = Player[playerid][pPhousekey];
new ahouse = Player[playerid][pPaluguelkey];
if(PlayerPaintballing[playerid] != 0)
{
ResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 29, 999);
SafeGivePlayerWeapon(playerid, 24, 999);
rand = random(sizeof(PaintballSpawns));
SafeSetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
return 1;
}
if(Player[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SafeSetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_RED, "Vocк nгo cumpriu com sua pena, dados: LSPD HQ");
return 1;
}
if(Player[playerid][pJailed] == 3)
{
SetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid,197.7218,175.0082,1003.0234);
SendClientMessage(playerid, COLOR_RED, "Vocк ainda nгo cumpriu com sua pena, dados: FBI HQ");
return 1;
}
if(Player[playerid][pJailed] == 4)
{
SetPlayerInterior(playerid, 10);
SafeSetPlayerPos(playerid,223.2259,109.8377,999.0156);
SendClientMessage(playerid, COLOR_RED, "Vocк ainda nгo cumpriu com sua pena, dados: BOPE HQ");
return 1;
}
if(Player[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453);
return 1;
}
if(Player[playerid][pMorto] == 1 && SpawnTime[playerid] <= 0 && Player[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
//SetPVarInt(playerid, "Hospital", 1);
SetTimerEx("SetMorto",1000,false, "i", playerid);
return 1;
}
SpawnTime[playerid] = 10;
if(Player[playerid][pCrimes2] == 0)
{
if(Player[playerid][pLeader] == TEAM_PM || Player[playerid][pMember] == TEAM_PM)
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(Player[playerid][pLeader] == TEAM_PF || Player[playerid][pMember] == TEAM_PF)
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(Player[playerid][pLeader] == TEAM_FA || Player[playerid][pMember] == TEAM_FA)
{
SetPlayerArmour(playerid, 90);
SafeGivePlayerWeapon(playerid, 46, 1);
SafeGivePlayerWeapon(playerid, 34, 100);
SafeGivePlayerWeapon(playerid, 31, 5000);
SafeGivePlayerWeapon(playerid, 29, 5000);
SafeGivePlayerWeapon(playerid, 25, 300);
SafeGivePlayerWeapon(playerid, 24, 300);
SafeGivePlayerWeapon(playerid, 4, 1);
}
else if(Player[playerid][pLeader] == TEAM_BALLAS || Player[playerid][pMember] == TEAM_BALLAS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_GROOVE || Player[playerid][pMember] == TEAM_GROOVE)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_PREF || Player[playerid][pMember] == TEAM_PREF)
{
SetPlayerArmour(playerid, 85);
SafeGivePlayerWeapon(playerid, 24, 250);
SafeGivePlayerWeapon(playerid, 29, 700);
}
else if(Player[playerid][pLeader] == TEAM_HITMAN || Player[playerid][pMember] == TEAM_HITMAN)
{
SafeGivePlayerWeapon(playerid, 4, 1);
}
else if(Player[playerid][pLeader] == TEAM_LOWRIDERS || Player[playerid][pMember] == TEAM_LOWRIDERS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_VAGOS || Player[playerid][pMember] == TEAM_VAGOS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_BIKERS || Player[playerid][pMember] == TEAM_BIKERS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_MUNICIPAL || Player[playerid][pMember] == TEAM_MUNICIPAL)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(Player[playerid][pLeader] == TEAM_AZTECAS || Player[playerid][pMember] == TEAM_AZTECAS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_RUSSA || Player[playerid][pMember] == TEAM_RUSSA)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(Player[playerid][pLeader] == TEAM_YAKUZA || Player[playerid][pMember] == TEAM_YAKUZA)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(Player[playerid][pLeader] == TEAM_DRIFTERS || Player[playerid][pMember] == TEAM_DRIFTERS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_BLOODS || Player[playerid][pMember] == TEAM_BLOODS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_CREEPS || Player[playerid][pMember] == TEAM_CREEPS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(Player[playerid][pLeader] == TEAM_BOPE || Player[playerid][pMember] == TEAM_BOPE)
{
SafeGivePlayerWeapon(playerid, 24, 30);
}
else if(Player[playerid][pLeader] == TEAM_ALQAEDA || Player[playerid][pMember] == TEAM_ALQAEDA)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
}
else if(Player[playerid][pLeader] == TEAM_KINGS || Player[playerid][pMember] == TEAM_KINGS)
{
SetPlayerArmour(playerid, 25);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 24, 150);
SafeGivePlayerWeapon(playerid, 29, 150);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
}
else
SafeSetPlayerPos(playerid,Player[playerid][pLocalX],Player[playerid][pLocalY],Player[playerid][pLocalZ]);
if(Player[playerid][pDonateRank] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
SetPlayerArmour(playerid, 60);
}
if(Player[playerid][pDonateRank] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 999);
SafeGivePlayerWeapon(playerid, 29, 999);
SafeGivePlayerWeapon(playerid, 31, 999);
SetPlayerArmour(playerid, 90);
}
if(Player[playerid][pLocalSpawn] == 1 && (house != 255 || ahouse != 255))
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SafeSetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]);
Player[playerid][pLocal] = house;
Player[playerid][pInt] = HouseInfo[house][hInt];
Player[playerid][pVirWorld] = HouseInfo[house][hWorld];
return 1;
}
//MECANICOS
if(Player[playerid][pJob] == MECANICO && Player[playerid][pRank] == 0)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 2520.1360,-1476.3246,23.9898);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//TAXISTAS
if(Player[playerid][pJob] == TAXISTA && Player[playerid][pRank] == 0)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1284.4120,-1350.1644,13.5634);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//CAMIONEIROS
if(Player[playerid][pJob] == CAMINHONEIRO && Player[playerid][pRank] == 0)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, -40.0272,-232.3873,5.7161);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//POLICIA MILITAR
if(Player[playerid][pMember] == TEAM_PM || Player[playerid][pLeader] == TEAM_PM)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SafeSetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,6);
Player[playerid][pInt] = 6;
return 1;
}
//POLICIA FEDERAL
if(Player[playerid][pMember] == TEAM_PF || Player[playerid][pLeader] == TEAM_PF)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SafeSetPlayerPos(playerid, 257.0127,190.2985,1008.1719);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,3);
Player[playerid][pInt] = 3;
return 1;
}
// FORЗAS ARMADAS
if(Player[playerid][pMember] == TEAM_FA || Player[playerid][pLeader] == TEAM_FA)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SafeSetPlayerPos(playerid, 310.6609,-164.7110,999.5938);
SetPlayerFacingAngle(playerid, 280.0);
SetPlayerInterior(playerid, 6);
Player[playerid][pInt] = 6;
return 1;
}
//BOMBEIROS
if(Player[playerid][pMember] == TEAM_BOMBE || Player[playerid][pLeader] == TEAM_BOMBE)
{
SetPlayerVirtualWorld(playerid,1);
detranexit[playerid] = 2;
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 322.1213,315.1004,999.1484);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 30);
SafeGivePlayerWeapon(playerid, 42, 5000);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,5);
Player[playerid][pInt] = 5;
return 1;
}
//BALLAS
if(Player[playerid][pMember] == TEAM_BALLAS || Player[playerid][pLeader] == TEAM_BALLAS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid, 5);
return 1;
}
//GROVE STREET
if(Player[playerid][pMember] == TEAM_GROOVE || Player[playerid][pLeader] == TEAM_GROOVE)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerArmour(playerid, 25);
SetCameraBehindPlayer(playerid);
SafeSetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
Player[playerid][pInt] = 0;
return 1;
}
//PREFEITO
if(Player[playerid][pLeader] == TEAM_PREF || Player[playerid][pMember] == TEAM_PREF)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerArmour(playerid, 90);
SafeSetPlayerPos(playerid, 1130.1013,-2037.5076,69.0078);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 250);
SafeGivePlayerWeapon(playerid, 29, 700);
Player[playerid][pInt] = 0;
return 1;
}
//HITMANS
if(Player[playerid][pMember] == TEAM_HITMAN || Player[playerid][pLeader] == TEAM_HITMAN)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 2333.9575,-1215.7780,22.8841);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 34, 50);
Player[playerid][pInt] = 4;
return 1;
}
//SAN NEWS
if(Player[playerid][pMember] == TEAM_SANEWS || Player[playerid][pLeader] == TEAM_SANEWS)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 356.6006,209.0214,1008.3828);
SetPlayerInterior(playerid,3);
Player[playerid][pInt] = 3;
return 1;
}
//LOWRIDERS
if(Player[playerid][pMember] == TEAM_LOWRIDERS || Player[playerid][pLeader] == TEAM_LOWRIDERS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
Player[playerid][pInt] = 12;
return 1;
}
//VAGOS
if(Player[playerid][pMember] == TEAM_VAGOS || Player[playerid][pLeader] == TEAM_VAGOS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid,0);
Player[playerid][pInt] = 0;
return 1;
}
//MOTOQUEIROS
if(Player[playerid][pMember] == TEAM_BIKERS || Player[playerid][pLeader] == TEAM_BIKERS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,11);
Player[playerid][pInt] = 11;
return 1;
}
//DETRAN
if(Player[playerid][pMember] == TEAM_MUNICIPAL || Player[playerid][pLeader] == TEAM_MUNICIPAL)
{
detranexit[playerid] = 1;
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 322.1213,315.1004,999.1484);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 30);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,5);
Player[playerid][pInt] = 5;
return 1;
}
//AZTECAS
if(Player[playerid][pMember] == TEAM_AZTECAS || Player[playerid][pLeader] == TEAM_AZTECAS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SetPlayerInterior(playerid,8);
SafeSetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
Player[playerid][pInt] = 8;
return 1;
}
//Russa
if(Player[playerid][pMember] == TEAM_RUSSA || Player[playerid][pLeader] == TEAM_RUSSA)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 8, 1);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
Player[playerid][pInt] = 0;
return 1;
}
//YAKUZA
if(Player[playerid][pMember] == TEAM_YAKUZA || Player[playerid][pLeader] == TEAM_YAKUZA)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, -2164.5222,645.5374,1057.5938);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 8, 1);
SetPlayerInterior(playerid,1);
return 1;
}
//DRIFTERS
if(Player[playerid][pMember] == TEAM_DRIFTERS || Player[playerid][pLeader] == TEAM_DRIFTERS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,18);
return 1;
}
//BLOODS
if(Player[playerid][pMember] == TEAM_BLOODS || Player[playerid][pLeader] == TEAM_BLOODS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,10);
return 1;
}
//CREEPS
if(Player[playerid][pMember] == TEAM_CREEPS || Player[playerid][pLeader] == TEAM_CREEPS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,2);
Player[playerid][pInt] = 2;
return 1;
}
//BOPE
if(Player[playerid][pMember] == TEAM_BOPE || Player[playerid][pLeader] == TEAM_BOPE)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 50);
SafeSetPlayerPos(playerid, 246.6615,124.7375,1003.2188);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//ALQAEDA
if(Player[playerid][pMember] == TEAM_ALQAEDA || Player[playerid][pLeader] == TEAM_ALQAEDA)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 151.3921,2546.1300,18.0000);
SafeGivePlayerWeapon(playerid, 30, 600);
SafeGivePlayerWeapon(playerid, 24, 150);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//KING'S
if(Player[playerid][pMember] == TEAM_KINGS || Player[playerid][pLeader] == TEAM_KINGS)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 25);
SafeSetPlayerPos(playerid, 446.0672,-9.3721,1000.7343);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 41, 800);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetPlayerInterior(playerid,1);
return 1;
}
}
return 1;
}
public OnPlayerSpawn(playerid)
{
if(Player[playerid][FirstSpawn] == true)
{
Player[playerid][FirstSpawn] = false;
if(gPlayerLogged[playerid])
{
new lol[256];
format(lol,256,"/RPG/bans/%s.ini", Player[playerid][pName]);
if(strcmp(Player[playerid][pName],"Black_Br",true)==0)
goto Join;
if(strcmp(Player[playerid][pName],"Danilo_Br",true)==0)
goto Join;
if(dini_Exists(lol))
{
new string[225], banfile[256];
new admin[52], data[52], tempban[128];
format(admin,52,"%s", dini_Get(lol,"AdminName"));
format(data,52,"%s", dini_Get(lol,"Data"));
new tick = dini_Int(lol,"BanTime");
if(tick > 0)
{
if(tick < GetTickCount())
format(tempban,128,"|| Ban temporбrio - Acaba em %s", Convert(tick-GetTickCount()));
else
{
SendClientMessage(playerid, COLOR_RED,"[ADMIN BOT] Seu ban temporбrio acabou.");
dini_Remove(lol);
goto Join;
}
}
SendClientMessage(playerid, COLOR_BARRAS,"=============================================================");
format(string,128,"- Esse nick '%s' foi banido pelo '%s' em '%s'", Player[playerid][pName], admin, data);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string,128,"- Motivo: '%s' %s", dini_Get(lol, "Motivo"), tempban);
SendClientMessage(playerid, COLOR_WHITE, string);
SendClientMessage(playerid, COLOR_ORANGE,"Visite a pбgina 'http://brasilplaygold.forumeiros.com/', leia as regras e crie seu tуpico com esta imagem. (F8 para capturб-la)");
SendClientMessage(playerid, COLOR_BARRAS,"=============================================================");
banfile = GetBannedFile(playerid);
if(!dini_Exists(banfile) && tick == 0)
{
new hour, minute, second, day, month, year;
gettime(hour, minute, second);
getdate(year, month, day);
dini_Create(banfile);
dini_Set(banfile,"PlayerName", Player[playerid][pName]);
dini_Set(banfile,"AdminName", "Admin Bot");
dini_Set(banfile,"Motivo", "Evasгo de Ban (Old)");
format(string, sizeof(string), "%02d/%02d аs %02d:%02d", day, month, hour, minute);
dini_Set(banfile,"Data", string);
}
return Kick(playerid);
}
}
Join:
TextDrawShowForPlayer(playerid, MoneyTD);
TextDrawShowForPlayer(playerid, ServerLogo2);
TextDrawShowForPlayer(playerid, ServerLogo1);
}
PlaySoundForPlayer(playerid, 1057);
StopMusic(playerid);
if(IsPlayerNPC(playerid)) //Checa se o jogador й um NPC.
{
SetPlayerSkin(playerid, 181);
return 1;
}
nowh[playerid] = 0;
Incasa[playerid] = Player[playerid][pPhousekey];
SetTimerEx("TurfsDebug",3000, false, "i", playerid);
InitLockDoors(playerid);
SetPlayerHealth(playerid, 100);
STDPlayer[playerid] = 0;
gTeam[playerid] = Player[playerid][pTeam]; //Set the Team
if(Player[playerid][pAdmin] > 0)
SetPlayerChatBubble(playerid, AccountName(playerid), COLOR_YELLOW, 50.0, 14400000);
if(gTeam[playerid] == 4) //medic / criminal reset team
gTeam[playerid] = 3;
if(gTeam[playerid] == 11 && Player[playerid][pLeader] < 1)
{
new rand = random(sizeof(CIV));
Player[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
Player[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 5)
{
if(Player[playerid][pMember] < 1)
{
new rand = random(sizeof(CIV));
Player[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
Player[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 10)
{
if(Player[playerid][pMember] != 8)
{
new rand = random(sizeof(CIV));
Player[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
Player[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 2 && Player[playerid][pMember] > 3)
{
new rand = random(sizeof(CIV));
Player[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
Player[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 3)
{
if(Player[playerid][pMember] > 0 || Player[playerid][pLeader] > 0)
{
new model = Player[playerid][pChar];
if(Player[playerid][pMember] == TEAM_PM) { SetSpawnInfo(playerid, 6, model,232.7498,73.7373,1005.0391,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 1; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_PF) { SetSpawnInfo(playerid, 2, model,257.0127,190.2985,1008.1719,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 2; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_FA) { SetSpawnInfo(playerid, 2, model,310.6609,-164.7110,999.5938,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 2; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BOMBE) { SetSpawnInfo(playerid, 2, model,322.1213,315.1004,999.1484,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 12; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BALLAS) { SetSpawnInfo(playerid, 5, model,324.0143,1122.2839,1083.8828,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_GROOVE) { SetSpawnInfo(playerid, 5, model,2519.1958,-1678.1322,14.6467,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_PREF) { SetSpawnInfo(playerid, 2, model,1130.1013,-2037.5076,69.0078,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_HITMAN) { SetSpawnInfo(playerid, 11, model,2333.9575,-1215.7780,22.8841,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 10; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_SANEWS) { SetSpawnInfo(playerid, 12, model,356.6006,209.0214,1008.3828,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 12; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_LOWRIDERS) { SetSpawnInfo(playerid, 12, model,1121.4432,7.9393,1002.0859,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_VAGOS) { SetSpawnInfo(playerid, 12, model,2354.4053,-1167.3206,27.6563,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BIKERS) { SetSpawnInfo(playerid, 12, model,508.3417,-80.1715,998.9609,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_MUNICIPAL) { SetSpawnInfo(playerid, 12, model,322.1213,315.1004,999.1484,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 14; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_AZTECAS) { SetSpawnInfo(playerid, 11, model,2817.9792,-1169.5975,1025.5778,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_RUSSA) { SetSpawnInfo(playerid, 12, model,1254.4261,-790.6013,92.0302,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_YAKUZA) { SetSpawnInfo(playerid, 12, model,-2164.5222,645.5374,1057.5938,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_DRIFTERS) { SetSpawnInfo(playerid, 12, model,-226.2575,1409.8733,27.7734,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BLOODS) { SetSpawnInfo(playerid, 12, model,416.1714,2537.2358,10.0000,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_CREEPS) { SetSpawnInfo(playerid, 12, model,2554.1692,-1285.9547,1060.9844,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_BOPE) { SetSpawnInfo(playerid, 2, model,246.6615,124.7375,1003.2188,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 21; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_ALQAEDA) { SetSpawnInfo(playerid, 12, model,151.3921,2546.1300,18.0000,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 22; Player[playerid][pModel] = model; }
else if(Player[playerid][pMember] == TEAM_KINGS) { SetSpawnInfo(playerid, 12, model,446.0672,-9.3721,1000.7343,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_PM) { SetSpawnInfo(playerid, 11, model,232.7498,73.7373,1005.0391,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_PF) { SetSpawnInfo(playerid, 11, model,257.0127,190.2985,1008.1719,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_FA) { SetSpawnInfo(playerid, 11, model,310.6609,-164.7110,999.5938,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_BOMBE) { SetSpawnInfo(playerid, 2, model,322.1213,315.1004,999.1484,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 12; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_BALLAS) { SetSpawnInfo(playerid, 11, model,324.0143,1122.2839,1083.8828,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_GROOVE) { SetSpawnInfo(playerid, 11, model,2519.1958,-1678.1322,14.6467,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_PREF) { SetSpawnInfo(playerid, 11, model,1130.1013,-2037.5076,69.0078,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_HITMAN) { SetSpawnInfo(playerid, 11, model,2333.9575,-1215.7780,22.8841,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_SANEWS) { SetSpawnInfo(playerid, 11, model,356.6006,209.0214,1008.3828,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_LOWRIDERS) { SetSpawnInfo(playerid, 11, model,1121.4432,7.9393,1002.0859,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_VAGOS) { SetSpawnInfo(playerid, 11, model,2354.4053,-1167.3206,27.6563,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 7; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_BIKERS) { SetSpawnInfo(playerid, 12, model,508.3417,-80.1715,998.9609,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_MUNICIPAL) { SetSpawnInfo(playerid, 11, model,322.1213,315.1004,999.1484,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_AZTECAS) { SetSpawnInfo(playerid, 11, model,2817.9792,-1169.5975,1025.5778,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_RUSSA) { SetSpawnInfo(playerid, 11, model,1254.4261,-790.6013,92.0302,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_YAKUZA) { SetSpawnInfo(playerid, 12, model,-2164.5222,645.5374,1057.5938,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 16; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_DRIFTERS) { SetSpawnInfo(playerid, 11, model,-226.2575,1409.8733,27.7734,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_BLOODS) { SetSpawnInfo(playerid, 11, model,416.1714,2537.2358,10.0000,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_CREEPS) { SetSpawnInfo(playerid, 11, model,2554.1692,-1285.9547,1060.9844,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_BOPE) { SetSpawnInfo(playerid, 11, model,246.6615,124.7375,1003.2188,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_ALQAEDA) { SetSpawnInfo(playerid, 11, model,151.3921,2546.1300,18.0000,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
else if(Player[playerid][pLeader] == TEAM_KINGS) { SetSpawnInfo(playerid, 11, model,446.0672,-9.3721,1000.7343,0,0,0,0,0,0,0); Player[playerid][pTeam] = 11; gTeam[playerid] = 11; Player[playerid][pModel] = model; }
SpawnPlayer(playerid);
}
}
if(Player[playerid][pChar] > 0){ SetPlayerSkin(playerid, Player[playerid][pModel]); }
else { SetPlayerSkin(playerid, Player[playerid][pModel]); }
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
return 1;
}