[Pomoc]Spawn

Započeo [BS]SimkE, Novembar 21, 2012, 11:58:23 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Raven's
Detaljan opis problema:Evo ovako, Raven's ima uradjen spawn da kad izadjes sa servera i kad ponovo udjes spawn se gde si zadnji put bio, tj spawn te tamo gde si bio pre nego sto si izasao sa servera... Ja sam obrisao to za spawn i sad imam ono da spawn igraca iz mafije i td... Ali kad udjem na server mene ponovo spawn tamo gde sam zadnji put bio! Ako moze neko da mi kaze sta trebam da uradim da bi namestio da spawn igraca tamo gde on namesti spawn, a ako nema namesten spawn onda ga spawn na airport ili tamo gde vec spawn kad se igrac registruje...?
Dio skripte:Spawn
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

Evo ceo public:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, poruke);
   
    StopAudioStreamForPlayer(playerid);
    ScriptMoneyUpdated[playerid] = 1;
    SetRealMoney(playerid, ScriptMoney[playerid]);
new pName[MAX_PLAYER_NAME];
new string[128];
InitLockDoors(playerid);
if(IsPlayerNPC(playerid)) return 1;
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "** Ovaj server zahtijeva prijavu prije spawna (Kicked) **");
        Kick(playerid);
}
if(PlayerInfo[playerid][pAdminDuty] == 1)
{
      Delete3DTextLabel(DutyLabel[playerid]);
DutyLabel[playerid] = Create3DTextLabel("Admin na Duznosti \n Ne ometaj",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
}
else if(PlayerInfo[playerid][pGameMasterDuty] == 1)
{
    Delete3DTextLabel(DutyLabel[playerid]);
DutyLabel[playerid] = Create3DTextLabel("GameMaster na Duznosti \n Ne ometaj",0x00AA0099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
}
else if(PlayerInfo[playerid][pLevel] == 1)
{
Delete3DTextLabel(TuristaLabel[playerid]);
TuristaLabel[playerid] = Create3DTextLabel("[Turista]",0xA5FF00FF,0,0,0,50,252,252);
Attach3DTextLabelToPlayer(TuristaLabel[playerid], playerid, 0,0,0);
}
if(!gPlayerAnimLibsPreloaded[playerid])
{
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"BLOWJOBZ");
PreloadAnimLib(playerid,"RIFLE");
PreloadAnimLib(playerid,"UZI");
PreloadAnimLib(playerid,"SHOTGUN");
PreloadAnimLib(playerid,"COLT45");
PreloadAnimLib(playerid,"SILENCED");
PreloadAnimLib(playerid,"GYMNASIUM");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"BSKTBALL");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"FIGHT_D");
PreloadAnimLib(playerid,"PAULNMAC");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
TextDrawHideForPlayer(playerid, Textdraw39[playerid]);
TextDrawHideForPlayer(playerid, Textdraw40[playerid]);
if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
{
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste Odobreno u organizaciji, sada ste u civil !");
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)
    {
        MedicBill[playerid] = 0;
        new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Vi niste clan obitelji, te ste sada civil !");
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)
    {
        MedicBill[playerid] = 0;
        new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Vi niste clan ove Agencije, te ste sada civil !");
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)
{
    MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste primjenjemi za  Sluzbenika / FBI / Nacionalne garde,te ste sada civil !");
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(PlayerInfo[playerid][pRegularCount] <= 72000 && PlayerInfo[playerid][pRegularRank] == 0)
{
    PlayerInfo[playerid][pRegularRank] = 1;
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s Je Automatski promoviran na redovitog Igraca!", pName);
    SendClientMessageToAll(COLOR_PINK, string);
    GameTextForPlayer(playerid, "~y~PROMOVIRAN ~n~~p~REDOVAN IGRAC !!!!!", 10000, 5);
    if (PlayerInfo[playerid][pHelper] == 0)
    {
        PlayerInfo[playerid][pHelper] = 1;
        SendClientMessage(playerid, COLOR_PINK, "Ti si Promoviran za GameMastera!");
}
    if (PlayerInfo[playerid][pAchievement7] == 0)
{
    TextDrawSetString(Textdraw64[playerid],"Cestitamo! ~n~~n~Ti si zaradio medalju ~n~~b~Redovan Igrac (7) ~n~~n~~w~dobio si ~g~$200");
    ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,2500);
PlayerInfo[playerid][pAchievement7] = 1;
}
}
if(PlayerInfo[playerid][pRegularCount] <= 36000 && PlayerInfo[playerid][pRegularRank] == 1)
{
    PlayerInfo[playerid][pRegularRank] = 2;
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s Je Automatski promoviran na redovitog Igraca Level 2!", pName);
    SendClientMessageToAll(COLOR_PINK, string);
    GameTextForPlayer(playerid, "~y~PROMOVIRAN ~n~~p~REDOVITI IGRAC LEVEL 2!!!!!", 10000, 5);
    if (PlayerInfo[playerid][pAchievement8] == 0)
{
    TextDrawSetString(Textdraw64[playerid],"Cestitamo! ~n~~n~Ti si zaradio medalju ~n~~b~Redovan Level 2 (8) ~n~~n~~w~dobio si ~g~$5000");
    ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,5000);
PlayerInfo[playerid][pAchievement8] = 1;
}
}
if(PlayerInfo[playerid][pRegularCount] == 0 && PlayerInfo[playerid][pRegularRank] == 2)
{
    PlayerInfo[playerid][pRegularRank] = 3;
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s Je Automatski promoviran na redovitog Igraca Level 3!", pName);
    SendClientMessageToAll(COLOR_PINK, string);
    GameTextForPlayer(playerid, "~y~PROMOVIRAN ~n~~p~REDOVITI IGRAC LEVEL 3!!!!!", 10000, 5);
    if (PlayerInfo[playerid][pHelper] == 1 || PlayerInfo[playerid][pHelper] == 0)
    {
        PlayerInfo[playerid][pHelper] = 2;
        SendClientMessage(playerid, COLOR_PINK, "Ti si promoviran kao Master Pomagac!");
}
}
if (PlayerInfo[playerid][pAchievement5] == 0 && PlayerInfo[playerid][pConnectSeconds] >= 3600)
{
    TextDrawSetString(Textdraw64[playerid],"Cestitamo! ~n~~n~Ti si zaradio medalju ~n~~b~Jedan Sat! (5) ~n~~n~~w~dobio si ~g~$100");
    ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,100);
PlayerInfo[playerid][pAchievement5] = 1;
}
if (PlayerInfo[playerid][pAchievement6] == 0 && PlayerInfo[playerid][pConnectSeconds] >= 18000)
{
    TextDrawSetString(Textdraw64[playerid],"Cestitamo! ~n~~n~Ti si zaradio medalju ~n~~b~Pet Sati! (6) ~n~~n~~w~dobio si ~g~$250");
    ShowAchievement(playerid);
SafeGivePlayerMoney(playerid,250);
PlayerInfo[playerid][pAchievement6] = 1;
}
if(gTeam[playerid] == 3)
{
    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
    {
SendClientMessage(playerid, COLOR_LIGHTRED, "Vi ste dio obitelji / Force, vi ste bili prisiljeni na dolazak klase + Char !");
MedicBill[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,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] == 3) { 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] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; 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][pChar]); }
else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
SetPlayerToTeamColor(playerid);
PlayerFixRadio(playerid);
IsCopBanned(playerid);
for(new i = 0; i < sizeof(Turfs); i++)
{
    GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]);
    GangZoneShowForPlayer(playerid, LaVice, 0xFFFFFFAA);
    GangZoneShowForPlayer(playerid, Bratva, 0xFFFFFFAA);
        GangZoneShowForPlayer(playerid, Yamaguchi, 0xAA3333AA);
        GangZoneShowForPlayer(playerid, Signatra, 0xDABB3EAA);
        GangZoneShowForPlayer(playerid, Surenos, 0x5BB9E6AA);
        GangZoneShowForPlayer(playerid, Anarchy, 0x9EC73DAA);
        GangZoneShowForPlayer(playerid, Bank, 0xFF66FFAA);
        GangZoneShowForPlayer(playerid, RPL, 0xFF66FFAA);
        GangZoneShowForPlayer(playerid, Spawn, 0xFF66FFAA);
        return 1;
}
return 1;
}


O jbt jel ti mene zezas il sta? -.- Ako ne znas nemoj da pises nista! :P

Evo public SetPlayerSpawn

public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(!IsPlayerNPC(playerid))
    {
    if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3)
{
SetPlayerSkin(playerid, 294);
if(PlayerInfo[playerid][pAdmin] >= 6)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 42, 10000);
SafeGivePlayerWeapon(playerid, 39, 10000);
SafeGivePlayerWeapon(playerid, 38, 10000);
SafeGivePlayerWeapon(playerid, 34, 10000);
SafeGivePlayerWeapon(playerid, 31, 10000);
SafeGivePlayerWeapon(playerid, 29, 10000);
SafeGivePlayerWeapon(playerid, 27, 10000);
SafeGivePlayerWeapon(playerid, 24, 10000);
SafeGivePlayerWeapon(playerid, 40, 1);
SafeGivePlayerWeapon(playerid, 10, 1);
SafeGivePlayerWeapon(playerid, 9, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1000);
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
}
}
    if(Spectate[playerid] != 255)
{
    SafeSetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
    SafeSetPlayerInterior(playerid, Interior[playerid]);
    SetPlayerVirtualWorld(playerid, VirWorld[playerid]);
    if(PlayerInfo[playerid][pAdmin] >= 6)
    {
        if(PlayerInfo[playerid][pAdminDuty] == 1)
        {
    SetPlayerHealth(playerid, SpHealth[playerid]);
    SetPlayerArmour(playerid, SpArmour[playerid]);
}
else
{
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
    SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
}
}
else
{
    SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
    SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
}
    SetPlayerWeapons(playerid);
    SetPlayerToTeamColor(playerid);
    Spectate[playerid] = 255;
    TextDrawShowForPlayer(playerid, Textdraw44);
    TextDrawShowForPlayer(playerid, Textdraw45);
    TextDrawShowForPlayer(playerid, Textdraw55);
    TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw54[playerid]);
    if(PlayerInfo[playerid][pWatch] == 1)
{
TextDrawShowForPlayer(playerid, Textdraw56);
TextDrawShowForPlayer(playerid, Textdraw57);
TextDrawShowForPlayer(playerid, Textdraw58);
}
    return 1;
}
    if(PlayerInfo[playerid][pAndro] == 1)
{
    SendClientMessage(playerid, COLOR_GREY, "US Airlines: medicinara ste spremili, Povrat na svoje putovanje!");
      SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
      SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
      SafeSetPlayerPos(playerid, 315.745,984.969,1958.919);
      return 1;
}
if(PlayerInfo[playerid][pJet] == 1)
{
    SendClientMessage(playerid, COLOR_GREY, "US Airlines: medicinara ste spremili, Povrat na svoje putovanje!");
    SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
      SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
      SafeSetPlayerPos(playerid, 3.7333,23.0483,1199.6012);
      return 1;
}
    if(PlayerInfo[playerid][pTut] == 0)
    {
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTRED, "Dobrodosli na Balkan Strong  RPG Server, sada cete u Los Santo imigracijsko srediste.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Zdravo! Dobrodosli u Los Santo imigracijsko srediste, ja cu Vam postaviti nekoliko pitanja.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Prvo Pitanje: Jeste li Musko ili Zensko?");
SendClientMessage(playerid, COLOR_LIGHTRED, "Savet: Molimo upisi ono sto jesi! Ne brini, niko nece videti!");
PlayerInfo[playerid][pRegularCount] = 144000;
    SafeGivePlayerMoney(playerid,3000);
return 1;
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerInfo[playerid][pJailed] == 1)
{
    SafeSetPlayerInterior(playerid, 6);
SafeSetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne izvrsena zatvorska kazna,vracate se u zatvor.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
    SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
    SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid,197.7956,175.0676,1003.0234);
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne izvrsena zatvorska kazna,vracate se u zatvor.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
    SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid,-536.0415,-501.0172,25.5178);
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne izvrsena zatvorska kazna,vracate se u zatvor.");
return 1;
}
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
{
if(PlayerInfo[playerid][pAdminDuty] == 1) return 1;
    if(FirstSpawn[playerid] != 1)
    {
        SetRealMoney(playerid, ScriptMoney[playerid]);
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 50.0);
    SafeSetPlayerInterior(playerid, 3);
        rand = random(sizeof(gMedicSpawns));
SafeSetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 0);
        TogglePlayerControllable(playerid, 0);
        GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Ti trebas odmor sada ...", 5000, 3);
        ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
        if(PlayerInfo[playerid][pRegularRank] == 1)
        {
        SetTimerEx("ReleaseFromHospital", 20000, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pRegularRank] == 2)
        {
        SetTimerEx("ReleaseFromHospital", 17500, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pRegularRank] == 3)
        {
        SetTimerEx("ReleaseFromHospital", 15000, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pAdmin] >= 1)
        {
        SetTimerEx("ReleaseFromHospital", 12500, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pAdmin] >= 4)
        {
        SetTimerEx("ReleaseFromHospital", 10000, 0, "i", playerid);
}
else
{
    SetTimerEx("ReleaseFromHospital", 25000, 0, "i", playerid);
}
        PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
    return 1;
}
}
if(JustDied[playerid] == 1)
{
    if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
    {
        SetPlayerVirtualWorld(playerid, 0);
        PlayerInfo[playerid][pVirWorld] = 0;
    }
    //SafeSetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
    SetPlayerFacingAngle(playerid, 270.0);
    SafeSetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    //TogglePlayerControllable(playerid, 1);
    return 1;
}
    if(PlayerInfo[playerid][pCrashed] == 1)
    {
        if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
        {
            SetPlayerSpawn(playerid);
        return 1;
    }
    }
if(house != 999)
{
    if(PlayerInfo[playerid][pSpawn] == 1) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SafeSetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 0)
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 2)
{
    new family = PlayerInfo[playerid][pFMember];
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
    SafeSetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
    return 1;
}
else
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,6);
    rand = random(sizeof(gCopPlayerSpawns));
SafeSetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerPos(playerid, 1174.9027,-1326.7284,14.5938);
SetPlayerFacingAngle(playerid, 0);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//La Famiglia Sinatra spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
    {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
PlayerInfo[playerid][pLocal] = 241;
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SafeSetPlayerInterior(playerid,0);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
SafeGivePlayerWeapon(playerid, 43, 20);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pJob] == 13  || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1754.99,-1894.19,13.55);
SafeSetPlayerInterior(playerid,0);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if(IsAnInstructor(playerid) || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) //Driving/Flying School spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //Firemen
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid, 616.9447,-1538.7158,15.2904);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //Sons of Anarchy spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid, 683.0686,-473.8775,16.5363);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Chornaya Bratva spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 2569.4744,-1284.6810,1065.3749);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//La Vice spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 455.8776,1413.6802,1084.3080);
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,6);
    rand = random(sizeof(gCopPlayerSpawns));
SafeSetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerPos(playerid, 1174.9027,-1326.7284,14.5938);
SetPlayerFacingAngle(playerid, 0);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//La Famiglia Sinatra spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
    {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
PlayerInfo[playerid][pLocal] = 241;
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SafeSetPlayerInterior(playerid,0);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
SafeGivePlayerWeapon(playerid, 43, 20);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pJob] == 13) //Taxi Cab Company spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1754.99,-1894.19,13.55);
SafeSetPlayerInterior(playerid,0);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || IsAnInstructor(playerid)) //Driving/Flying School spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 616.9447,-1538.7158,15.2904);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 683.0686,-473.8775,16.5363);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Chornaya Bratva spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 2569.4744,-1284.6810,1065.3749);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//La Vice spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 455.8776,1413.6802,1084.3080);
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pFMember] != 255)
{
    if(PlayerInfo[playerid][pSpawn] == 2)
    {
    new family = PlayerInfo[playerid][pFMember];
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
    SafeSetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
    return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 0)
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 3)
{
                    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,6);
    rand = random(sizeof(gCopPlayerSpawns));
SafeSetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerPos(playerid, 1174.9027,-1326.7284,14.5938);
SetPlayerFacingAngle(playerid, 0);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//La Famiglia Sinatra spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
    {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
PlayerInfo[playerid][pLocal] = 241;
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SafeSetPlayerInterior(playerid,0);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
SafeGivePlayerWeapon(playerid, 43, 20);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pJob] == 13) //Taxi Cab Company spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1754.99,-1894.19,13.55);
SafeSetPlayerInterior(playerid,0);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || IsAnInstructor(playerid)) //Driving/Flying School spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 616.9447,-1538.7158,15.2904);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 683.0686,-473.8775,16.5363);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Chornaya Bratva spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 2569.4744,-1284.6810,1065.3749);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//La Vice spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 455.8776,1413.6802,1084.3080);
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
return 1;
}


EDIT:Dodao sam u ovaj code ovo za kucu sto sam brisao! Kada sam to izbrisao izbacivalo mi je 6 errora!
Poslednja Izmena: Novembar 21, 2012, 12:23:07 POSLE PODNE od Aca SimkE

Izvinte za DP ali nbe moze sve da stane u prvu poruku!
else if(PlayerInfo[playerid][pSpawn] == 0)
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 2)
{
    new family = PlayerInfo[playerid][pFMember];
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
    SafeSetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
    return 1;
}
else
{

To je bilo izbrisano ali sam ga ja dodao gore!

public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(!IsPlayerNPC(playerid))
    {
    if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3)
{
SetPlayerSkin(playerid, 294);
if(PlayerInfo[playerid][pAdmin] >= 6)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 42, 10000);
SafeGivePlayerWeapon(playerid, 39, 10000);
SafeGivePlayerWeapon(playerid, 38, 10000);
SafeGivePlayerWeapon(playerid, 34, 10000);
SafeGivePlayerWeapon(playerid, 31, 10000);
SafeGivePlayerWeapon(playerid, 29, 10000);
SafeGivePlayerWeapon(playerid, 27, 10000);
SafeGivePlayerWeapon(playerid, 24, 10000);
SafeGivePlayerWeapon(playerid, 40, 1);
SafeGivePlayerWeapon(playerid, 10, 1);
SafeGivePlayerWeapon(playerid, 9, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1000);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1000);
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
}
}
    if(Spectate[playerid] != 255)
{
    SafeSetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
    SafeSetPlayerInterior(playerid, Interior[playerid]);
    SetPlayerVirtualWorld(playerid, VirWorld[playerid]);
    if(PlayerInfo[playerid][pAdmin] >= 6)
    {
        if(PlayerInfo[playerid][pAdminDuty] == 1)
        {
    SetPlayerHealth(playerid, SpHealth[playerid]);
    SetPlayerArmour(playerid, SpArmour[playerid]);
}
else
{
SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
    SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
}
}
else
{
    SetPlayerHealth(playerid, PlayerInfo[playerid][pHealth]);
    SetPlayerArmour(playerid, PlayerInfo[playerid][pArmour]);
}
    SetPlayerWeapons(playerid);
    SetPlayerToTeamColor(playerid);
    Spectate[playerid] = 255;
    TextDrawShowForPlayer(playerid, Textdraw44);
    TextDrawShowForPlayer(playerid, Textdraw45);
    TextDrawShowForPlayer(playerid, Textdraw55);
    TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw54[playerid]);
    if(PlayerInfo[playerid][pWatch] == 1)
{
TextDrawShowForPlayer(playerid, Textdraw56);
TextDrawShowForPlayer(playerid, Textdraw57);
TextDrawShowForPlayer(playerid, Textdraw58);
}
    return 1;
}
    if(PlayerInfo[playerid][pAndro] == 1)
{
    SendClientMessage(playerid, COLOR_GREY, "US Airlines: medicinara ste spremili, Povrat na svoje putovanje!");
      SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
      SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
      SafeSetPlayerPos(playerid, 315.745,984.969,1958.919);
      return 1;
}
if(PlayerInfo[playerid][pJet] == 1)
{
    SendClientMessage(playerid, COLOR_GREY, "US Airlines: medicinara ste spremili, Povrat na svoje putovanje!");
    SafeSetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
      SetPlayerVirtualWorld(playerid, PlayerInfo[playerid][pVirWorld]);
      SafeSetPlayerPos(playerid, 3.7333,23.0483,1199.6012);
      return 1;
}
    if(PlayerInfo[playerid][pTut] == 0)
    {
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid, 330.6825,163.6688,1014.1875);
SetPlayerFacingAngle(playerid, 280);
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTRED, "Dobrodosli na Balkan Strong  RPG Server, sada cete u Los Santo imigracijsko srediste.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Zdravo! Dobrodosli u Los Santo imigracijsko srediste, ja cu Vam postaviti nekoliko pitanja.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Prvo Pitanje: Jeste li Musko ili Zensko?");
SendClientMessage(playerid, COLOR_LIGHTRED, "Savet: Molimo upisi ono sto jesi! Ne brini, niko nece videti!");
PlayerInfo[playerid][pRegularCount] = 144000;
    SafeGivePlayerMoney(playerid,3000);
return 1;
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerInfo[playerid][pJailed] == 1)
{
    SafeSetPlayerInterior(playerid, 6);
SafeSetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne izvrsena zatvorska kazna,vracate se u zatvor.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
    SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
    SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid,197.7956,175.0676,1003.0234);
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne izvrsena zatvorska kazna,vracate se u zatvor.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
    SafeSetPlayerInterior(playerid, 0);
SafeSetPlayerPos(playerid,-536.0415,-501.0172,25.5178);
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne izvrsena zatvorska kazna,vracate se u zatvor.");
return 1;
}
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
{
if(PlayerInfo[playerid][pAdminDuty] == 1) return 1;
    if(FirstSpawn[playerid] != 1)
    {
        SetRealMoney(playerid, ScriptMoney[playerid]);
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 50.0);
    SafeSetPlayerInterior(playerid, 3);
        rand = random(sizeof(gMedicSpawns));
SafeSetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 0);
        TogglePlayerControllable(playerid, 0);
        GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Ti trebas odmor sada ...", 5000, 3);
        ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
        if(PlayerInfo[playerid][pRegularRank] == 1)
        {
        SetTimerEx("ReleaseFromHospital", 20000, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pRegularRank] == 2)
        {
        SetTimerEx("ReleaseFromHospital", 17500, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pRegularRank] == 3)
        {
        SetTimerEx("ReleaseFromHospital", 15000, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pAdmin] >= 1)
        {
        SetTimerEx("ReleaseFromHospital", 12500, 0, "i", playerid);
}
else if(PlayerInfo[playerid][pAdmin] >= 4)
        {
        SetTimerEx("ReleaseFromHospital", 10000, 0, "i", playerid);
}
else
{
    SetTimerEx("ReleaseFromHospital", 25000, 0, "i", playerid);
}
        PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
    return 1;
}
}
if(JustDied[playerid] == 1)
{
    if(GetPlayerVirtualWorld(playerid) != 0 || PlayerInfo[playerid][pVirWorld] != 0)
    {
        SetPlayerVirtualWorld(playerid, 0);
        PlayerInfo[playerid][pVirWorld] = 0;
    }
    //SafeSetPlayerPos(playerid, 1182.5638,-1323.5256,13.5790);
    SetPlayerFacingAngle(playerid, 270.0);
    SafeSetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    //TogglePlayerControllable(playerid, 1);
    return 1;
}
    if(PlayerInfo[playerid][pCrashed] == 1)
    {
        if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
        {
            if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
    {
        new plname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, plname, sizeof(plname));
      SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pVirWorld]);
        SafeSetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
    SafeSetPlayerPos(playerid, OVDE STAVIS KOORDINATE);
format(string, sizeof(string), "~w~Dobrodosli, ~b~%s. ~n~~y~", plname);
    GameTextForPlayer(playerid, string, 5000, 1);
    return 1;

    }
    }
if(house != 999)
{
    if(PlayerInfo[playerid][pSpawn] == 1) //If 1, then you get to your house, else spawn somewhere else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SafeSetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
HouseEntered[playerid] = house;
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,6);
    rand = random(sizeof(gCopPlayerSpawns));
SafeSetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerPos(playerid, 1174.9027,-1326.7284,14.5938);
SetPlayerFacingAngle(playerid, 0);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//La Famiglia Sinatra spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
    {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
PlayerInfo[playerid][pLocal] = 241;
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SafeSetPlayerInterior(playerid,0);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
SafeGivePlayerWeapon(playerid, 43, 20);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pJob] == 13  || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi Cab Company spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1754.99,-1894.19,13.55);
SafeSetPlayerInterior(playerid,0);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if(IsAnInstructor(playerid) || PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11) //Driving/Flying School spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //Firemen
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid, 616.9447,-1538.7158,15.2904);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //Sons of Anarchy spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,0);
SafeSetPlayerPos(playerid, 683.0686,-473.8775,16.5363);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Chornaya Bratva spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 2569.4744,-1284.6810,1065.3749);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//La Vice spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 455.8776,1413.6802,1084.3080);
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,6);
    rand = random(sizeof(gCopPlayerSpawns));
SafeSetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerPos(playerid, 1174.9027,-1326.7284,14.5938);
SetPlayerFacingAngle(playerid, 0);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//La Famiglia Sinatra spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
    {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
PlayerInfo[playerid][pLocal] = 241;
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SafeSetPlayerInterior(playerid,0);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
SafeGivePlayerWeapon(playerid, 43, 20);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pJob] == 13) //Taxi Cab Company spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1754.99,-1894.19,13.55);
SafeSetPlayerInterior(playerid,0);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || IsAnInstructor(playerid)) //Driving/Flying School spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 616.9447,-1538.7158,15.2904);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 683.0686,-473.8775,16.5363);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Chornaya Bratva spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 2569.4744,-1284.6810,1065.3749);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//La Vice spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 455.8776,1413.6802,1084.3080);
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pFMember] != 255)
{
    if(PlayerInfo[playerid][pSpawn] == 2)
    {
    new family = PlayerInfo[playerid][pFMember];
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
    SafeSetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
    SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
    return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 0)
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
else if(PlayerInfo[playerid][pSpawn] == 3)
{
                    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,6);
    rand = random(sizeof(gCopPlayerSpawns));
SafeSetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//FBI spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//National Guard spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 2731.5229,-2451.3643,17.5937);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerPos(playerid, 1174.9027,-1326.7284,14.5938);
SetPlayerFacingAngle(playerid, 0);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Surenos spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 2345.6570,-1185.5266,1027.9766);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//La Famiglia Sinatra spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 5);
    SafeSetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Mayor spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
    {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
PlayerInfo[playerid][pLocal] = 241;
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1102.7017,-299.0774,73.9922);
SafeSetPlayerInterior(playerid,0);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
        SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
SafeGivePlayerWeapon(playerid, 43, 20);
        return 1;
    }
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pJob] == 13) //Taxi Cab Company spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
        SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid, 1754.99,-1894.19,13.55);
SafeSetPlayerInterior(playerid,0);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || IsAnInstructor(playerid)) //Driving/Flying School spawn
    {
        if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid,3);
SafeSetPlayerPos(playerid, 1494.4991,1308.9163,1093.2845);
SetPlayerFacingAngle(playerid, 180);
        return 1;
}
        else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 616.9447,-1538.7158,15.2904);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 0);
    SafeSetPlayerPos(playerid, 683.0686,-473.8775,16.5363);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Chornaya Bratva spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 2569.4744,-1284.6810,1065.3749);
    return 1;
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//La Vice spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 2);
    SafeSetPlayerPos(playerid, 455.8776,1413.6802,1084.3080);
    return 1;
}
else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
}
    else
    {
SetPlayerToTeamColor(playerid);
SafeSetPlayerPos(playerid,PlayerInfo[playerid][pPos_x],PlayerInfo[playerid][pPos_y],PlayerInfo[playerid][pPos_z]);
SetPlayerVirtualWorld(playerid, SpawnWorld[playerid]);
SafeSetPlayerInterior(playerid, SpawnInterior[playerid]);
TogglePlayerControllable(playerid, 1);
return 1;
}
}
}
return 1;
}
ovde gde sam ti obelezio 'OVDE STAVIS KOORDINATE" ti tu stavi svoje koordinate