public OnPlayerSpawn(playerid)
{
StopAudioStreamForPlayer(playerid);
if(IsPlayerNPC(playerid)) //Checa se o jogador й um NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
if(!strcmp(npcname, "Tio_Xico", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
{
SetPlayerSkin(playerid, 94);
return 1;
}
if(!strcmp(npcname, "Policial_Dp", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
{
PutPlayerInVehicle(playerid, Random, 0);
SetPlayerSkin(playerid, 281);
GivePlayerWeapon(playerid, 30, 200);
return 1;
}
}
TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
TextDrawShowForPlayer(playerid, TextdrawB);
TextDrawShowForPlayer(playerid, tGP2[playerid]);
TextDrawHideForPlayer(playerid, Inicial0);
TextDrawHideForPlayer(playerid, Inicial1);
TextDrawHideForPlayer(playerid, Inicial2);
TextDrawHideForPlayer(playerid, Inicial3);
InitLockDoors(playerid);
SetPlayerHealth(playerid, 100);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
gGas[playerid] = 1;
for(new i=0;i<sizeof(Turfs);i++)
{
for(new gangid; gangid < MAX_PLAYERS; gangid++)
{
if(TurfInfo[i][zMemberDie] == playerid)
{
if(PlayerInfo[gangid][pMember] == PlayerInfo[playerid][pMember])
{
if(i == 0){GangZoneFlashForPlayer(gangid, i, TEAM_GROVE_COLOR);}
if(i == 1){GangZoneFlashForPlayer(gangid, i, COLOR_YELLOW);}
if(i == 2){GangZoneFlashForPlayer(gangid, i, TEAM_BALLAS_COLOR);}
if(i == 3){GangZoneFlashForPlayer(gangid, i, TEAM_AZTECAS_COLOR);}
if(i == 4){GangZoneFlashForPlayer(gangid, i, TEAM_COMANDO_COLOR);}
if(i == 5){GangZoneFlashForPlayer(gangid, i, TEAM_PCC_COLOR);}
}
if(i == 0){GangZoneFlashForPlayer(gangid, i, TEAM_GROVE_COLOR);}
if(i == 1){GangZoneFlashForPlayer(gangid, i, COLOR_YELLOW);}
if(i == 2){GangZoneFlashForPlayer(gangid, i, TEAM_BALLAS_COLOR);}
if(i == 3){GangZoneFlashForPlayer(gangid, i, TEAM_AZTECAS_COLOR);}
if(i == 4){GangZoneFlashForPlayer(gangid, i, TEAM_COMANDO_COLOR);}
if(i == 5){GangZoneFlashForPlayer(gangid, i, TEAM_PCC_COLOR);}
TurfInfo[i][zMemberDie] = -1;
}
}
}
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
{
Hospital[playerid] = 0;
new rand = random(sizeof(CIV));
PlayerInfo[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);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 5)
{
if(PlayerInfo[playerid][pMember] < 1)
{
Hospital[playerid] = 0;
new rand = random(sizeof(CIV));
PlayerInfo[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);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 10)
{
if(PlayerInfo[playerid][pMember] != 8)
{
Hospital[playerid] = 0;
new rand = random(sizeof(CIV));
PlayerInfo[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);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
{
Hospital[playerid] = 0;
new rand = random(sizeof(CIV));
PlayerInfo[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);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 3)
{
if(PlayerInfo[playerid][pMember] > 0 && PlayerInfo[playerid][pLeader] > 0)
{
Hospital[playerid] = 0;
new model = PlayerInfo[playerid][pChar];
if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pJob]==17) { SetSpawnInfo(playerid, 1, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 14; gTeam[playerid] = 14; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 18) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 19) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 20) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 21) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 21; gTeam[playerid] = 21; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 22) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 22; gTeam[playerid] = 22; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 26) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 22; gTeam[playerid] = 22; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 27) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 28) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 29) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 30) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pJob]==17) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 18) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 19) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 20) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 21) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 22) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 27) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 28) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 29) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 30) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
//SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
SpawnPlayer(playerid);
}
}
if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
PlayerFixRadio(playerid);
for(new i = 0; i < sizeof(Turfs); i++)
{
GangZoneShowForAll(i, TurfInfo[i][zColor]);
}
return 1;
}
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
spawnado[playerid] = 1;
if(PlayerInfo[playerid][pTut] == 0)
{
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
ShowPlayerDialog(playerid, 44, DIALOG_STYLE_MSGBOX, "Atenзг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(ProvocoSkate[playerid] == 1)
{
GangZoneStopFlashForAll(GZSkate);
GangZoneShowForAll(GZSkate, 0xFFFFFF96);
GuerranoSkate = 0;
ProvocoSkate[playerid] = 0;
donoskate = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraSkate);
}
if(ProvocoShop[playerid] == 1)
{
GangZoneStopFlashForAll(GZShop);
GangZoneShowForAll(GZShop, 0xFFFFFF96);
GuerranoShop = 0;
ProvocoShop[playerid] = 0;
donoshop = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraShop);
}
if(ProvocoPier[playerid] == 1)
{
GangZoneStopFlashForAll(GZPier);
GangZoneShowForAll(GZPier, 0xFFFFFF96);
GuerranoPier = 0;
ProvocoPier[playerid] = 0;
donopier = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraPier);
}
if(ProvocoMateriala[playerid] == 1)
{
GangZoneStopFlashForAll(GZMateriala);
GangZoneShowForAll(GZMateriala, 0xFFFFFF96);
GuerranoMateriala = 0;
ProvocoMateriala[playerid] = 0;
donomateriala = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraMateriala);
}
if(ProvocoFa1[playerid] == 1)
{
GangZoneStopFlashForAll(GZFa1);
GangZoneShowForAll(GZFa1, 0xFFFFFF96);
GuerranoFa1 = 0;
ProvocoFa1[playerid] = 0;
donoFa1 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFa1);
}
if(ProvocoFa2[playerid] == 1)
{
GangZoneStopFlashForAll(GZFa2);
GangZoneShowForAll(GZFa2, 0xFFFFFF96);
GuerranoFa2 = 0;
ProvocoFa2[playerid] = 0;
donoFa2 = 0;
Dominando[playerid] = 0;
KillTimer(TempoGuerraFa2);
}
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: ROTA HQ");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453);
return 1;
}
if(PlayerInfo[playerid][pJailed] == 5)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк foi preso por sair com nнvel de procurado.");
PlayerInfo[playerid][pJailed] = 1;
return 1;
}
if(PlayerInfo[playerid][pJailed] == 6)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк foi preso por sair sequestrado.");
PlayerInfo[playerid][pJailed] = 1;
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("HospitalCountdown", 1000, 0, "i", playerid);
return 1;
}
if(FixBug[playerid] == 0 && PlayerIsDead[playerid] == 1 && Hospital[playerid] == 1)
{
MorreDeita = SetTimerEx("MorreDeitaTimer", 100, 0, "i", playerid);
return 1;
}
if(house != 255 && LocalSpawn[playerid] == 1)
{
if(SpawnChange[playerid])
{
SetPlayerToTeamColor(playerid);
if(PlayerInfo[playerid][pDonateRank] == 1)
{
SetPlayerArmour(playerid, 60);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
}
else if(PlayerInfo[playerid][pDonateRank] == 2)
{
SetPlayerArmour(playerid, 90);
SafeGivePlayerWeapon(playerid, 24, 999);
SafeGivePlayerWeapon(playerid, 29, 999);
SafeGivePlayerWeapon(playerid, 31, 999);
}
else if(PlayerInfo[playerid][pDonateRank] == 3)
{
SetPlayerArmour(playerid, 90);
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
}
if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
{
SafeGivePlayerWeapon(playerid, 4, 1);
}
else if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
{
SafeGivePlayerWeapon(playerid, 24, 50);
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] == 16 || PlayerInfo[playerid][pMember] == 16)
{
SafeGivePlayerWeapon(playerid, 22, 100);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
{
SafeGivePlayerWeapon(playerid, 22, 100);
SafeGivePlayerWeapon(playerid, 8, 1);
}
else if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20)
{
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
}
else if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
{
SafeGivePlayerWeapon(playerid, 24, 50);
}
else if(PlayerInfo[playerid][pLeader] == 23 || PlayerInfo[playerid][pMember] == 23)
{
SafeGivePlayerWeapon(playerid, 24, 300);
}
else if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
{
SafeGivePlayerWeapon(playerid, 24, 50);
}
else if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
SafeGivePlayerWeapon(playerid, 24, 50);
}
else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
SafeGivePlayerWeapon(playerid, 24, 50);
}
else
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]);
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
return 1;
}
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 1)
{
SetPlayerToTeamColor(playerid);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 31, 300);
SetPlayerArmour(playerid, 60);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 2)
{
SetPlayerToTeamColor(playerid);
SafeGivePlayerWeapon(playerid, 24, 999);
SafeGivePlayerWeapon(playerid, 29, 999);
SafeGivePlayerWeapon(playerid, 31, 999);
SetPlayerArmour(playerid, 60);
}
if(house == 255 && PlayerInfo[playerid][pDonateRank] == 3)
{
SetPlayerToTeamColor(playerid);
SafeGivePlayerWeapon(playerid, 24, 9999);
SafeGivePlayerWeapon(playerid, 29, 9999);
SafeGivePlayerWeapon(playerid, 31, 9999);
SetPlayerArmour(playerid, 90);
}
//CIVIL if (PlayerInfo[playerid][pAdmin] >= 1)
if (PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x0000E8AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 1462.2394,-1543.5297,13.5469);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//POLICIA MILITAR
if (PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x0000E8AA);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
//POLICIA FEDERAL
if (PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pLeader] == 2)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x2F18FFAA);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 257.0127,190.2985,1008.1719);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//FORЗAS ARMADAS
if (PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pLeader] == 3)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x28FF3DAA);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 310.6609,-164.7110,999.5938);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 6);
PlayerInfo[playerid][pInt] = 6;
return 1;
}
//Spawn medicos
if (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pLeader] == 4)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 2032.9209,-1405.9281,17.2215);
SetPlayerFacingAngle(playerid, 280.0);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//BALLAS
if (PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pLeader] == 5)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x980079AA);
SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid, 5);
return 1;
}
//GROVE STREET
if (PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pLeader] == 6)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x007812AA);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//MENDIGOS
if (PlayerInfo[playerid][pMember] == 25 && PlayerInfo[playerid][pLeader] == 25)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xB86E00AA);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, 2063.3792,-1589.7528,17.7891);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//TALIBANS
if (PlayerInfo[playerid][pMember] == 26 && PlayerInfo[playerid][pLeader] == 26)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x003958AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, -89.1879,-1564.4606,3.0043);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//MADEIREIROS
if (PlayerInfo[playerid][pMember] == 27 && PlayerInfo[playerid][pLeader] == 27)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x785400AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, -562.8926,-188.0238,78.4063);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//SkinHeads
if (PlayerInfo[playerid][pMember] == 28 && PlayerInfo[playerid][pLeader] == 28)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x785400AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 855.6458,-822.0485,89.2322);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//CowBoys
if (PlayerInfo[playerid][pMember] == 29 && PlayerInfo[playerid][pLeader] == 29)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x785400AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 2803.7913,-1105.8456,94.6219);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//Al-Capones
if (PlayerInfo[playerid][pMember] == 30 && PlayerInfo[playerid][pLeader] == 30)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x785400AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, -562.8926,-188.0238,78.4063);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//Presidente
if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[playerid][pMember] == 7)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xFFFF90AA);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1130.1013,-2037.5076,69.0078);
SetPlayerFacingAngle(playerid, 270.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 29, 300);
SafeGivePlayerWeapon(playerid, 24, 300);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//HITMANS
if (PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pLeader] == 8)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x000000AA);
SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
SetPlayerFacingAngle(playerid, 244.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,4);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 22, 100);
SafeGivePlayerWeapon(playerid, 34, 50);
PlayerInfo[playerid][pInt] = 4;
return 1;
}
//SAN NEWS
if (PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pLeader] == 9)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x77B800AA);
SetPlayerPos(playerid, 356.6006,209.0214,1008.3828);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
return 1;
}
//LOWRIDERS
if (PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pLeader] == 10)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xFFB938AA);
SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,12);
PlayerInfo[playerid][pInt] = 12;
return 1;
}
//SAN FIERRO RIFFAS
if (PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pLeader] == 11)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x4A4C4CAA);
SetPlayerPos(playerid, 2178.6990,-2255.3501,14.7734);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerFacingAngle(playerid, 225.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//LOS SANTOS VAGOS
if(PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pLeader] == 12)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xF8F800AA);
SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerFacingAngle(playerid, 0.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//ASPHALT KING'S
if (PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pLeader] == 13)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x380024AA);
SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
SetPlayerFacingAngle(playerid, 0.0);
SetCameraBehindPlayer(playerid);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid,11);
PlayerInfo[playerid][pInt] = 11;
return 1;
}
//POLICIA RODOVIARIA FEDERAL
if (PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pLeader] == 14)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x88BDFFAA);
SetPlayerPos(playerid, 322.1213,315.1004,999.1484);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 30);
SetPlayerFacingAngle(playerid, 180.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,5);
PlayerInfo[playerid][pInt] = 5;
return 1;
}
//AZTECAS
if (PlayerInfo[playerid][pMember] == 15 && PlayerInfo[playerid][pLeader] == 15)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x00F0F0AA);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
PlayerInfo[playerid][pInt] = 8;
return 1;
}
//TRIADS
if (PlayerInfo[playerid][pMember] == 16 && PlayerInfo[playerid][pLeader] == 16)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x625E5EAA);
SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 8, 1);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
//YAKUZA
if (PlayerInfo[playerid][pMember] == 17 && PlayerInfo[playerid][pLeader] == 17)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x343131AA);
SetPlayerPos(playerid, -2164.5222,645.5374,1057.5938);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 8, 1);
SetPlayerInterior(playerid,1);
return 1;
}
//DRIFTERS
if (PlayerInfo[playerid][pMember] == 18 && PlayerInfo[playerid][pLeader] == 18)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xFFF318AA);
SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid,18);
return 1;
}
//COMANDO VERMELHO
if (PlayerInfo[playerid][pMember] == 19 && PlayerInfo[playerid][pLeader] == 19)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xF80001AA);
SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid,10);
return 1;
}
//PCC
if (PlayerInfo[playerid][pMember] == 20 && PlayerInfo[playerid][pLeader] == 20)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x0001F8AA);
SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
SafeGivePlayerWeapon(playerid, 24, 50);
SafeGivePlayerWeapon(playerid, 5, 1);
SafeGivePlayerWeapon(playerid, 1, 1);
SetPlayerInterior(playerid,2);
PlayerInfo[playerid][pInt] = 2;
return 1;
}
//Policia Civil
if (PlayerInfo[playerid][pMember] == 23 && PlayerInfo[playerid][pLeader] == 23)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x109FFFAA);
SetPlayerArmour(playerid, 80);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 1518.8245,-1452.7969,14.2031);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 10);
PlayerInfo[playerid][pInt] = 10;
return 1;
}
//AS FARC
if (PlayerInfo[playerid][pMember] == 22 && PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x003238AA);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 425.1764,2531.2666,16.6157);
SafeGivePlayerWeapon(playerid, 30, 100);
SafeGivePlayerWeapon(playerid, 29, 100);
SafeGivePlayerWeapon(playerid, 24, 300);
SetPlayerFacingAngle(playerid, 133.0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//ROTA
if (PlayerInfo[playerid][pMember] == 21 && PlayerInfo[playerid][pLeader] == 21)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0x0000A0AA);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//bombeiros
if (PlayerInfo[playerid][pMember] == 24 && PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xD82B00AA);
SetPlayerArmour(playerid, 80);
SetPlayerHealth(playerid, 100);
GivePlayerWeapon(playerid,42,50000);
SetPlayerPos(playerid, 1285.1731,-1349.7958,13.5657);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
//spawn admins
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 99999);
SetPlayerHealth(playerid, 99999);
SetPlayerPos(playerid, -2885.7073,472.6922,4.9141);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
GivePlayerWeapon(playerid,38,50000);
SetPlayerSkin(playerid, 217);
return 1;
}
if ((gTeam[playerid]) == 1)
{
SetPlayerToTeamColor(playerid);
rand = random(sizeof(gMedPlayerSpawns));
SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
else
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid,1462.2394,-1543.5297,13.5469);
SetPlayerFacingAngle(playerid, 46.8583);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
return 1;
}
Get in the game /save coordinates and insert them in the script, then compile and restart the server ..
|
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0) ; |