[POMOC] Poslednje mesto SPAWNA.

Započeo DjokoÅ¡, Decembar 09, 2012, 21:33:06 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GF
Detaljan opis problema: Igram i kad izadjem sa servera,spawnam se tamo de sam poslednji put bio. Ocu da se spawna,tamo de treba ili ako je u nekoj org da se spawna ispred baze.
Dio skripte:/
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
prst prst u cupi,prst prst u anus

Stavi pod SetPlayerSpawn da mu stavi koordinate spawna koje ti hoces

Pa de brate,ima dosta pod tamo LD
prst prst u cupi,prst prst u anus


Eto ti : public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(!IsPlayerNPC(playerid))
    {
    if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3)
{
SetPlayerSkin(playerid, 117);
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: MD te spasio, vracas se na svoj put!");
      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: MD te spasio, vracas se na svoj put!");
    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 LostCountry RolePlay Server, bit ces preuzet u Beograd centar za beskucnike.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Pozdrav! Dobro dosli u Beograd centar za bezkucnike, postavit cemo vam nekoliko pitanja.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Prvo pitanje: Dali ste Musko ili Zensko?");
SendClientMessage(playerid, COLOR_LIGHTRED, "SAVJET: Napisite sta ste! Nebrinite, nitko nece ovo vidjeti!");
PlayerInfo[playerid][pRegularCount] = 144000;
    SafeGivePlayerMoney(playerid,500);
return 1;
    }

Pa posle dole ima ono za pJailed :D i  td :D
prst prst u cupi,prst prst u anus

Daj mi ceo public SetPlayerSpawn, ne pola, ovako ne mogu da ti sredim.

Eto ceo :D public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    if(!IsPlayerNPC(playerid))
    {
    if(PlayerInfo[playerid][pAdminDuty] == 1 && PlayerInfo[playerid][pAdmin] >= 3)
{
SetPlayerSkin(playerid, 117);
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: MD te spasio, vracas se na svoj put!");
      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: MD te spasio, vracas se na svoj put!");
    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 LostCountry RolePlay Server, bit ces preuzet u Beograd centar za beskucnike.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Pozdrav! Dobro dosli u Beograd centar za bezkucnike, postavit cemo vam nekoliko pitanja.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Prvo pitanje: Dali ste Musko ili Zensko?");
SendClientMessage(playerid, COLOR_LIGHTRED, "SAVJET: Napisite sta ste! Nebrinite, nitko nece ovo vidjeti!");
PlayerInfo[playerid][pRegularCount] = 144000;
    SafeGivePlayerMoney(playerid,500);
return 1;
    }
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerInfo[playerid][pJailed] == 1)
{
    SafeSetPlayerInterior(playerid, 6);
SafeSetPlayerPos(playerid,1392,-21,1000.3);
SendClientMessage(playerid, COLOR_LIGHTRED, "Nepotpuno vrijeme u zatvoru,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,1392,-21,1000.3);
SendClientMessage(playerid, COLOR_LIGHTRED, "Nepotpuno vrijeme u zatvoru,vracate se u zatvor.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
    SafeSetPlayerInterior(playerid, 10);
SafeSetPlayerPos(playerid,1392,-21,1000.3);
SendClientMessage(playerid, COLOR_LIGHTRED, "Nepotpuno vrijeme u zatvoru,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~Morate se odmoriti 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);
    TogglePlayerControllable(playerid, 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;
}
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)//UnderGround Racers spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 967.4117,-53.1641,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)//Lcn 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)//Bloods 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)//UnderGround Racers 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)//TIM 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)//UnderGround Racers spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 967.4117,-53.1641,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)//Lcn 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)//Bloods 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)//Vatrogasci 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)//TIM 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)//UnderGround Racers spawn
{
    if(PlayerInfo[playerid][pSpawn] == 3)
        {
    SetPlayerToTeamColor(playerid);
    SafeSetPlayerInterior(playerid, 3);
    SafeSetPlayerPos(playerid, 967.4117,-53.1641,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)//Lcn 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)//Bloods 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;
}
prst prst u cupi,prst prst u anus


napravis variablu pod
pInfo

pX
pY
pZ

...
i onda napravis onplayer disconnect
new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x,y,z);
PlayerInfo[playerid][pX] = x;
PlayerInfo[playerid][pY] = y;
PlayerInfo[playerid][pZ] = z;

i onda obavezni Sacuvaj acc sad nez kako cuvas
msm Da je nes UpdatePlayer ili SaveAccount
eto ;)

Citat: --Lood-- poslato Decembar 09, 2012, 23:01:24 POSLE PODNE
napravis variablu pod
pInfo

pX
pY
pZ

...
i onda napravis onplayer disconnect
new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x,y,z);
PlayerInfo[playerid][pX] = x;
PlayerInfo[playerid][pY] = y;
PlayerInfo[playerid][pZ] = z;

i onda obavezni Sacuvaj acc sad nez kako cuvas
msm Da je nes UpdatePlayer ili SaveAccount
eto ;)
? xD, on zeli da server igraca spawnuje na mesto koje on odredi, a ne na mestu gde je iziso :)

Pogledaj kod spremanja i vidjet ćeÅ¡ da ti piÅ¡e da sprema zadnju lokaciju, a ti umjesto te zadnje lokacije staviÅ¡ samo provjeru, ako je igrač u organizaciji/mafiji/bandi da ga spawna u org/mafiju/bandu, a ako nije da ga spawna na odreÄ'no mjesto koje ti odrediÅ¡. Pozdrav

U modu imas ovako:
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, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z] + 1);
format(string, sizeof(string), "Welcome to Los Santos, %s... Returning where have you been",plname);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "~w~Welcome, ~b~%s. ~n~~y~Returning where have you been!", plname);
    GameTextForPlayer(playerid, string, 5000, 1);
    return 1;
}


Umesto toga stavi ovako:
            if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
if(house !=255)
{
    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;
}
}

Citat: Ricky_Danzel poslato Decembar 10, 2012, 01:33:48 PRE PODNE
U modu imas ovako:
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, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z] + 1);
format(string, sizeof(string), "Welcome to Los Santos, %s... Returning where have you been",plname);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "~w~Welcome, ~b~%s. ~n~~y~Returning where have you been!", plname);
    GameTextForPlayer(playerid, string, 5000, 1);
    return 1;
}


Umesto toga stavi ovako:
            if(TutTime[playerid] == 0 && PlayerInfo[playerid][pTut] == 1 && RegistrationStep[playerid] == 0 && AfterTutorial[playerid] == 0 && FirstSpawn[playerid] == 1)
if(house !=255)
{
    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;
}
}

Tako nekako bi i trebalo biti, samo ne znam da li on ima varijable koje se ovde upotrebljavaju?

Citat: Blaeks poslato Decembar 09, 2012, 23:02:24 POSLE PODNE
Citat: --Lood-- poslato Decembar 09, 2012, 23:01:24 POSLE PODNE
napravis variablu pod
pInfo

pX
pY
pZ

...
i onda napravis onplayer disconnect
new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x,y,z);
PlayerInfo[playerid][pX] = x;
PlayerInfo[playerid][pY] = y;
PlayerInfo[playerid][pZ] = z;

i onda obavezni Sacuvaj acc sad nez kako cuvas
msm Da je nes UpdatePlayer ili SaveAccount
eto ;)
? xD, on zeli da server igraca spawnuje na mesto koje on odredi, a ne na mestu gde je iziso :)
a nisam skonto :s
Onda smao napravis varijablu pSpawn
i onda npr ako oces da se spawna u kucu
Stavis kada kupi kucu ili nesto


PlayerInfo[playerid][pSpawn] = 1;

onda onplayerspawn stavis proveru

if(PlayerInfo[playerid][pSpawn] == 1)
{
SetPlayerPos(playerid, kucax, kucay, kucaz);
SetPlayerInterior(playerid, kucainterier);
SetPlayerFacingAngle(playerid, 180);
}

Eto ;)

@Lood: ne moze to tako, to je GF mod, nije od 0, ja sam to objasnjavao u prosloj temi koju sam mu postavio ovde, i u toj temi ima fix.