How can I set..
#1

How can I make houses and Cars (House car) permanently, I mean because if a player /q his house and his car will disappear, it will appear again if he logs in.

I want to fix that.. If you need any code let me know and I will post them, is just because I don't know what's the code about that..
Reply
#2

It's inside OnPlayerConnect and OnPlayerDisconnect.
Reply
#3

pawn Код:
public OnPlayerConnect(playerid)
{

    PublicServicesDirector[playerid] = 0;
//    F_Streamer_OnPlayerConnect(playerid);
/*      if(PlayerInfo[playerid][pVip] == 1)
    {
    VIPBronze[playerid] = 1;
    }
    if(PlayerInfo[playerid][pVip] == 2)
    {
    VIPSilver[playerid] = 1;
    }
    if(PlayerInfo[playerid][pVip] == 3)
    {
    VIPGold[playerid] = 1;
    }
    IsTuning[playerid] = 0;
    pInvited[playerid] = 999;
    IsDuel[playerid] = 0;*/

/*  if(Security != 0)
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Host has broken one of the Agreement rules, action has been taken.");
        Kick(playerid);
        return 1;
    }*/

    TextDrawShowForPlayer(playerid, Text:Textdraw1);
    gPlayerAnimLibsPreloaded[playerid] = 0;
    gActivePlayers[playerid]++;
    numplayers++;
    new plname[MAX_PLAYER_NAME];
    new string[MAX_PLAYER_NAME];
    HasAsked[playerid] = 0;
    GetPlayerName(playerid, plname, sizeof(plname));
    SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0; WTOnline[playerid] = 0; AlarmOnline[playerid] = 0;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0;
    GettingJob[playerid] = 0; GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; PlayerInfo[playerid][pFrozen] = 0;
    DefenseOffer[playerid] = 999; DefensePrice[playerid] = 0; InviteOffer[playerid] = 999; InvitedToHouse[playerid] = 999; FamilyOffer[playerid] = 999; FactionOffer[playerid] = 999;
    CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; KickPlayer[playerid] = 0; CP[playerid] = 0;
    UsedFind[playerid] = 0; FReloadTime[playerid] = 0; GotMats[playerid] = 0; TazerTime[playerid] = 0;
    MoneyMessage[playerid] = 0; Condom[playerid] = 0; HasBoughtMask[playerid] = 0; JustParked[playerid] = 0;
    STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; PlayerHadDeagle[playerid] = 0; PlayerHasTazer[playerid] = 0;
    RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; RepairCar[playerid] = 0;
    TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; RefillOffer[playerid] = 999; RefillPrice[playerid] = 0;
    PotOffer[playerid] = 999; PotPrice[playerid] = 0; PotGram[playerid] = 0; Packages[playerid] = 0; Crates[playerid] = 0; PlayerCuffed[playerid] = 0;
    PlayerCuffedTime[playerid] = 0; RegistrationStep[playerid] = 0; TestStep[playerid] = 0; JustReported[playerid] = 0; JustGaveSomething[playerid] = 0;
    SpectatedID[playerid] = 0; LSPDClearing[playerid] = 0; SelectDrug[playerid] = 0; HospitalTime[playerid] = 0; NoHospital[playerid] = 0;
    HospitalSpawn[playerid] = 0; JailPrice[playerid] = 0; GoChase[playerid] = 999; PlayerHurt[playerid] = 0;
    BoxWaitTime[playerid] = 0; TransportDuty[playerid] = 0; PlayerTied[playerid] = 0; PlayerBlinded[playerid] = 0;
    BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicCallTime[playerid] = 0; LawyerCallTime[playerid] = 0; MechanicCallTime[playerid] = 0;
    FindTimePoints[playerid] = 0; FindTime[playerid] = 0; FindingID[playerid] = 0; JobDuty[playerid] = 0;
    Mobile[playerid] = 255; Music[playerid] = 0; BoxOffer[playerid] = 999; PlayerBoxing[playerid] = 0; gLastCar[playerid] = 0; FishCount[playerid] = 0;
    gOoc[playerid] = 0; gNewbie[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gFam[playerid] = 0;
    gSpeedo[playerid] = 0; gVehicleLock[playerid] = 0; gGas[playerid] = 1;
    gPlayerLogged[playerid] = 0; gPlayerAccount[playerid] = 0; PlayerInfo[playerid][pVipColor] = 0; PlayerInfo[playerid][BeingDraggedBy] = -1;
    PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; Called911[playerid] = 0;
    TicketOffer[playerid] = 999; TicketMoney[playerid] = 0;
    HandshakeOffer[playerid] = 999; HandshakeType[playerid] = 0; ContractOffer[playerid] = 999; ContractID[playerid] = 999; TutTime[playerid] = 0;
    TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999;
    PlayerInfo[playerid][pCash] = dollah; NoFuel[playerid] = 0;
    CanTalk[playerid] = 0; PlayersChannel[playerid] = 999;
    gPlayerSpawned[playerid] = 0; KindLoad[playerid] = 0; DeathMessage[playerid] = 1;
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
    Locator[playerid] = 0; PlayerPaintballing[playerid] = 0; LockPicking[playerid] = 999; RecentlyShot[playerid] = 0;
    PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0; Fishes[playerid][pLastWeight] = 0;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; RefundingNumber[playerid] = 999; RefundingID[playerid] = 999;  RampToggle[playerid] = 0;
    FixCarTimer[playerid] = 0; PickLockTimer[playerid] = 0; SellCarTimer[playerid] = 0; StopAniTimer[playerid] = 0; UseDrugsTimer[playerid] = 0; UseAcceptTimer[playerid] = 0; SellGunTimer[playerid] = 0; UseTazerTimer[playerid] = 0; UseDrinkTimer[playerid] = 0; UseNewbieTimer[playerid] = 0; UseAdmCmdTimer[playerid] = 0; CapturingTimer[playerid] = 0; BombID[playerid] = 0; ChangePassTimer[playerid] = 0;
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    aGun[playerid][0] = 0;
    aGun[playerid][1] = 0;
    aGun[playerid][2] = 0;
    aGun[playerid][3] = 0;
    aGun[playerid][4] = 0;
    aGun[playerid][5] = 0;
    aGun[playerid][6] = 0;
    aGun[playerid][7] = 0;
    aGun[playerid][8] = 0;
    aGun[playerid][9] = 0;
    aGun[playerid][10] = 0;
    aGun[playerid][11] = 0;
    aGun[playerid][12] = 0;
    PlayerInfo[playerid][pLevel] = 0;
    PlayerInfo[playerid][pAdmin] = 0;
    PlayerInfo[playerid][pSpeakPhone] = 0;
    PlayerInfo[playerid][pBand] = 0;
    PlayerInfo[playerid][pPermBand] = 0;
    PlayerInfo[playerid][pWarns] = 0;
    PlayerInfo[playerid][pDisabled] = 0;
    PlayerInfo[playerid][pDonateRank] = 0;
    PlayerInfo[playerid][pFinishedTest] = 0;
    //PlayerInfo[playerid][pVip] = 0;
    PlayerInfo[playerid][pBanAppealer] = 0;
    PlayerInfo[playerid][pGangMod] = 0;
    PlayerInfo[playerid][pRequestingBackup] = 0;
    PlayerInfo[playerid][gPupgrade] = 0;
    PlayerInfo[playerid][pConnectTime] = 0;
    PlayerInfo[playerid][pReg] = 0;
    PlayerInfo[playerid][pSex] = 0;
    //PlayerInfo[playerid][pLanguage] = 2;
    PlayerInfo[playerid][pAge] = 0;
    PlayerInfo[playerid][pOrigin] = 0;
    PlayerInfo[playerid][pExp] = 0;
    PlayerInfo[playerid][pAccount] = 0;
    PlayerInfo[playerid][pCrimes] = 0;
    PlayerInfo[playerid][pKills] = 0;
    PlayerInfo[playerid][pDeaths] = 0;
    PlayerInfo[playerid][pCHits] = 0;
    PlayerInfo[playerid][phelper] = 0;
    PlayerInfo[playerid][pFHits] = 0;
    PlayerInfo[playerid][pArrested] = 0;
    PlayerInfo[playerid][pPhoneBook] = 0;
    PlayerInfo[playerid][pLottoNr] = 0;
    PlayerInfo[playerid][pFishes] = 0;
    PlayerInfo[playerid][pBiggestFish] = 0;
    PlayerInfo[playerid][pJob] = 0;
    PlayerInfo[playerid][pPayCheck] = 0;
    PlayerInfo[playerid][pJailed] = 0;
    PlayerInfo[playerid][pJailTime] = 0;
    PlayerInfo[playerid][pMats] = 0;
    PlayerInfo[playerid][pPot] = 0;
    PlayerInfo[playerid][pCrack] = 0;
    PlayerInfo[playerid][pLeader] = 0;
    PlayerInfo[playerid][pMember] = 0;
    PlayerInfo[playerid][pSFMember] = 0;
    PlayerInfo[playerid][pSFLeader] = 0;
    PlayerInfo[playerid][pFMember] = 255;
    PlayerInfo[playerid][pRank] = 0;
    PlayerInfo[playerid][pDetSkill] = 0;
    PlayerInfo[playerid][pSexSkill] = 0;
    PlayerInfo[playerid][pBoxSkill] = 0;
    PlayerInfo[playerid][pLawSkill] = 0;
    PlayerInfo[playerid][pMechSkill] = 0;
    PlayerInfo[playerid][pJackSkill] = 0;
    PlayerInfo[playerid][pCarSkill] = 0;
    PlayerInfo[playerid][pNewsSkill] = 0;
    PlayerInfo[playerid][pDrugsSkill] = 0;
    PlayerInfo[playerid][pArmsSkill] = 0;
//  PlayerInfo[playerid][pTrashSkill] = 0; // Trashman
    PlayerInfo[playerid][pSmugglerSkill] = 0;
    PlayerInfo[playerid][pFishSkill] = 0;
    PlayerInfo[playerid][pFightingStyle] = 4;
    PlayerInfo[playerid][pArmor] = 0.0;
    PlayerInfo[playerid][pSHealth] = 0;
    PlayerInfo[playerid][pInt] = 15;
    PlayerInfo[playerid][pLocal] = 999;
    PlayerInfo[playerid][pVirtualWorld] = 0;
    PlayerInfo[playerid][pModel] = 299;
    PlayerInfo[playerid][pClothes] = 0;
    PlayerInfo[playerid][pPnumber] = 0;
    PlayerInfo[playerid][pPbiskey] = 255;
    PlayerInfo[playerid][pPaptkey] = 255;
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pMask] = 0;
    PlayerInfo[playerid][pBlindfolds] = 0;
    PlayerInfo[playerid][pFlyLic] = 1;
    PlayerInfo[playerid][pBoatLic] = 1;
    PlayerInfo[playerid][pFishLic] = 1;
    PlayerInfo[playerid][pGunLic] = 1;
    PlayerInfo[playerid][pCarTime] = 0;
    PlayerInfo[playerid][pDrugsTime] = 0;
    PlayerInfo[playerid][pLawyerTime] = 0;
    PlayerInfo[playerid][pLawyerFreeTime] = 0;
    PlayerInfo[playerid][pMechTime] = 0;
    PlayerInfo[playerid][pSexTime] = 0;
    PlayerInfo[playerid][pPayDay] = 0;
    PlayerInfo[playerid][pPayDayHad] = 0;
    PlayerInfo[playerid][pCDPlayer] = 0;
    PlayerInfo[playerid][pDice] = 0;
    PlayerInfo[playerid][pSpraycan] = 0;
    PlayerInfo[playerid][pScrew] = 0;
    PlayerInfo[playerid][pRope] = 0;
    PlayerInfo[playerid][pCigars] = 0;
    PlayerInfo[playerid][pSprunk] = 0;
    PlayerInfo[playerid][pCookies] = 0;
    PlayerInfo[playerid][pWT] = 0;
    PlayerInfo[playerid][pWTc] = 0;
    PlayerInfo[playerid][pBombs] = 0;
    PlayerInfo[playerid][pScope] = 0;
    PlayerInfo[playerid][pWins] = 0;
    PlayerInfo[playerid][pLoses] = 0;
    PlayerInfo[playerid][pTut] = 0;
    PlayerInfo[playerid][pOnDuty] = 0;
    PlayerInfo[playerid][pHospital] = 0;
    PlayerInfo[playerid][pAdjustable] = 0;
    PlayerInfo[playerid][pWantedLevel] = 0;
    PlayerInfo[playerid][pNewbieMuted] = 0;
    PlayerInfo[playerid][pSafeSpawn] = 0;
    PlayerInfo[playerid][pSPos_x] = 0.0;
    PlayerInfo[playerid][pSPos_y] = 0.0;
    PlayerInfo[playerid][pSPos_z] = 0.0;
    PlayerInfo[playerid][pSPos_r] = 0.0;
    PlayerInfo[playerid][hTicket] = 0;
    PlayerInfo[playerid][pHouseAccepted] = 0;
    PlayerInfo[playerid][pHouseRequested] = 0;
    PlayerInfo[playerid][CashLoaded] = 0;
    PlayerInfo[playerid][CashLoading] = 0;
    PlayerInfo[playerid][Robbing] = 0;
    PlayerInfo[playerid][ROffered] = 0;
    PlayerInfo[playerid][ROfferer] = 0;
    PlayerInfo[playerid][pAtc] = 0;
    PlayerInfo[playerid][pAtcRadio] = 0;
    PlayerInfo[playerid][pPlantedWeed] = 0;
    PlantedC4OnVault[playerid] = 0;
    //PlayerInfo[playerid][pSeeds] = 0;
    WasCheckBy[playerid] = 999;
    IsPlayerInEVehicle[playerid] = 9999;
    PlayerInfo[playerid][pVehicle] = 0;
    CheckOwner(playerid);
    TazerHolster[playerid] = 1;
    ClearCrime(playerid);
    ClearFishes(playerid);
    ClearGuns(playerid);
    ClearHouseInfo(playerid);
    ClearMarriage(playerid);
    ClearAccent(playerid);
    ClearIP(playerid);
    ClearContract(playerid);
    SetPlayerColor(playerid,TCOLOR_GREY);
    SetPlayerMapIcon(playerid, 0, 1295.9426, 232.6621, 23.7565, 50, 0);
    SetPlayerMapIcon(playerid, 1, 1564.5457, -1675.3245, 61.8977, 30, 0); //lspd
    SetPlayerMapIcon(playerid, 2, 1461.8095, -1010.9515, 61.1702, 52, 0); //bank
    SetPlayerMapIcon(playerid, 3, 2143.5302, -2259.8565, 26.5776, 51, 0); //matfactory 01
    SetPlayerMapIcon(playerid, 4, 2287.9749, -1105.7727, 37.9766, 51, 0); //matfactory 02
    SetPlayerMapIcon(playerid, 5, 2166.3771, -1675.383, 15.0859, 24, 0); //drughouse
    SetPlayerMapIcon(playerid, 6, 2337.8855, -1185.4025, 35.5452, 16, 0); //crackhouse
    SetPlayerMapIcon(playerid, 7, 411.8294, -2050.2601, -0.4745, 9, 0); //pier
    SetPlayerMapIcon(playerid, 9, 2329.4089, -2316.0997, 13.5468, 56, 0); //job mechanic
    SetPlayerMapIcon(playerid, 11, 2226.1716, -1718.1792, 13.5165, 56, 0); //job bodyguard
    SetPlayerMapIcon(playerid, 12, 1741.7062, -1863.6664, 13.5748, 56, 0); //job taxi
    SetPlayerMapIcon(playerid, 14, 2419.4851, -1218.3659, 36.0312, 56, 0); //job whore
    SetPlayerMapIcon(playerid, 15, 1381.0413, -1088.8511, 27.3906, 56, 0); //job lawyer
    SetPlayerMapIcon(playerid, 16, 2048.4106, -1409.1826, 75.0372, 22, 0); //hospital 01
    SetPlayerMapIcon(playerid, 17, 1147.9742, -1344.0618, 49.2668, 22, 0); //hospital 02
    SetPlayerMapIcon(playerid, 18, 1352.0488, -1760.0387, 19.0781, 17, 0); //247
    SetPlayerMapIcon(playerid, 19, 1835.2926,-1842.5190, 15.6688, 17, 0); //247
    SetPlayerMapIcon(playerid, 20, 1315.2627, -895.1893, 45.2266, 17, 0); //247
    SetPlayerMapIcon(playerid, 21, 1004.9810, -919.5718, 46.6641, 17, 0); //247
    SetPlayerMapIcon(playerid, 22, 2252.3826, -1662.1138, 15.2817, 45, 0); //clothes store
    SetPlayerMapIcon(playerid, 23, 1458.7700, -1140.0200, 24.0692, 45, 0); //clothes store
    SetPlayerMapIcon(playerid, 24, 458.6580, -1500.4800, 31.0444, 45, 0); //clothes store
    SetPlayerMapIcon(playerid, 25, 1498.4185, -2182.5278, 14.1682, 20, 0); //fire department
    SetPlayerMapIcon(playerid, 27, 63.9923, -305.5689, 1.5781, 11, 0); //drug factory
    SetPlayerMapIcon(playerid, 28, 691.5323, -546.8344, 16.3359, 17, 0); //247
    SetPlayerMapIcon(playerid, 29, 612.8910, -564.9972, 26.1432, 30, 0); //PD
    SetPlayerMapIcon(playerid, 30, 1257.5867, 204.4746, 19.7174, 17, 0); //247
    SetPlayerMapIcon(playerid, 31, 1359.6918, 312.5298, 24.5555, 18, 0); // brown gun down in cockland
    SetPlayerMapIcon(playerid, 32, -77.1461,-1136.6599,1.0781, 56, 0);//trucker jon
    SetPlayerMapIcon(playerid, 33, 242.3919,-313.1801,1.5781, 7, 0); //MP3
    SetPlayerMapIcon(playerid, 34, 2163.2810,-102.7641,2.7500, 51, 0); //MF3
    SetPlayerMapIcon(playerid, 35, 387.1793,-1817.8423,7.8410, 17, 0); //247

    Textdraw3[playerid] = TextDrawCreate(498.000000, 123.000000, " "); // Speedo Textdraw
    TextDrawBackgroundColor(Textdraw3[playerid], 255);
    TextDrawFont(Textdraw3[playerid], 1);
    TextDrawLetterSize(Textdraw3[playerid], 0.389899, 1.299900);
    TextDrawColor(Textdraw3[playerid], 13107455);
    TextDrawSetOutline(Textdraw3[playerid], 1);
    TextDrawSetProportional(Textdraw3[playerid], 1);
   
    Textdraw2[playerid] = TextDrawCreate(498.000000, 140.000000, " "); // Fuel Textdraw
    TextDrawBackgroundColor(Textdraw2[playerid], 255);
    TextDrawFont(Textdraw2[playerid], 1);
    TextDrawLetterSize(Textdraw2[playerid], 0.389999, 1.299999);
    TextDrawColor(Textdraw2[playerid], 0xFFFFFFFF);
    TextDrawSetOutline(Textdraw2[playerid], 1);
    TextDrawSetProportional(Textdraw2[playerid], 1);
   
    if(PlayerInfo[playerid][pVip] == 1)
    {
        VIPBronze[playerid] = 1;
    }
    if(PlayerInfo[playerid][pVip] == 2)
    {
        VIPSilver[playerid] = 1;
    }
    if(PlayerInfo[playerid][pVip] == 3)
    {
        VIPGold[playerid] = 1;
    }
    IsTuning[playerid] = 0;
    pInvited[playerid] = 999;
    IsDuel[playerid] = 0;

    PlayerInfo[playerid][pVip] = 0;
    if(IsPlayerNPC(playerid)) return 1;
    GetPlayerName(playerid, plname, sizeof(plname));
    format(string, sizeof(string), "%s.ini", plname);
    if(fexist(string))
    {
        gPlayerAccount[playerid] = 1;
        SendClientMessage(playerid, COLOR_RED, "This account exist, please login now!");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome back to LSRW-RP ( LS Real World Roleplay ). If you ever got lost and need help, feel free...");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, ".. to contact our Administrators. They'll always be there for you. During your hour of playing this game, you'll find a lot...");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, ".. of interesting things that you can do out there. You can visit our forums at http://lsrw-rp.foro-phpbb.net/ for more information!");
        DisplayDialogForPlayer(playerid, 1); //login
        return 1;
    }
    else
    {
        gPlayerAccount[playerid] = 0;
        SendClientMessage(playerid,COLOR_YELLOW,"You don't have an account. Please register your account to proceed");
        SendClientMessage(playerid, COLOR_LLIGHTGREEN, "This is a Roleplay server with rules and regulations. By joining this server, it means that you have");
        SendClientMessage(playerid, COLOR_LLIGHTGREEN, "read our rules and agreed with them. Any hacking and / or rulebreaking will be taken action against it as soon as possible!");
        SendClientMessage(playerid, COLOR_LLIGHTGREEN, "If you need help, you can always contact helpers or admins by using the command /re! We hope you enjoy your stay and have fun around.");
        SendClientMessage(playerid, COLOR_LLIGHTGREEN, "You can also find our forums at http://lsrw-rp.foro-phpbb.net/ for more information!");
        SendClientMessage(playerid, COLOR_RED, "WARNING: For your own and server safety, make sure you have used a different password to avoid players hacking your account!");
        DisplayDialogForPlayer(playerid, 2); //register
        return 1;
    }
}

public PutPlayerInHouse(playerid, level)
{
    if(IsPlayerConnected(playerid))
    {
        switch(level)
        {
            case 1:
            {
                PlayerInfo[playerid][pInt] = 1; SetPlayerInterior(playerid,1); SetPlayerPos(playerid,244.5000,305.0000,999.1484); SetPlayerFacingAngle(playerid, 270.0000); //Small Room 1
            }
            case 2:
            {
                PlayerInfo[playerid][pInt] = 2; SetPlayerInterior(playerid,2); SetPlayerPos(playerid,267.1000,305.0000,999.1484); SetPlayerFacingAngle(playerid, 270.0000); //Small Room 2
            }
            case 3:
            {
                PlayerInfo[playerid][pInt] = 10; SetPlayerInterior(playerid,10); SetPlayerPos(playerid,2261.9590,-1135.9000,1050.6328); SetPlayerFacingAngle(playerid, 270.0000); //Motel Room
            }
            case 4:
            {
                PlayerInfo[playerid][pInt] = 15; SetPlayerInterior(playerid,15); SetPlayerPos(playerid,386.1190,1471.7975,1080.1875); SetPlayerFacingAngle(playerid, 90.0000); //Small House 1
            }
            case 5:
            {
                PlayerInfo[playerid][pInt] = 5; SetPlayerInterior(playerid,5); SetPlayerPos(playerid,22.8591,1404.9075,1084.4297); SetPlayerFacingAngle(playerid, 0.0000); //Small House 2
            }
            case 6:
            {
                PlayerInfo[playerid][pInt] = 4; SetPlayerInterior(playerid,4); SetPlayerPos(playerid,301.3000,306.3000,1003.5391); SetPlayerFacingAngle(playerid, 270.0000); //Wood House
            }
            case 7:
            {
                PlayerInfo[playerid][pInt] = 15; SetPlayerInterior(playerid,15); SetPlayerPos(playerid,295.1849,1474.2618,1080.2578); SetPlayerFacingAngle(playerid, 356.7845); //Med House 1
            }
            case 8:
            {
                PlayerInfo[playerid][pInt] = 15; SetPlayerInterior(playerid,15); SetPlayerPos(playerid,385.0121,1471.7983,1080.1875); SetPlayerFacingAngle(playerid, 90.0000); //Med House 2
            }
            case 9:
            {
                PlayerInfo[playerid][pInt] = 2; SetPlayerInterior(playerid,2); SetPlayerPos(playerid,447.0469,1399.6255,1084.3047); SetPlayerFacingAngle(playerid, 0.0000); //Med House 3
            }
            case 10:
            {
                PlayerInfo[playerid][pInt] = 15; SetPlayerInterior(playerid,15); SetPlayerPos(playerid,376.3000,1417.2000,1081.3281); SetPlayerFacingAngle(playerid, 84.5970); //Rich House 1
            }
            case 11:
            {
                PlayerInfo[playerid][pInt] = 15; SetPlayerInterior(playerid,15); SetPlayerPos(playerid,295.2618,1474.6871,1080.2578); SetPlayerFacingAngle(playerid, 360.0000); //Rich House 2
            }
            case 12:
            {
                PlayerInfo[playerid][pInt] = 6; SetPlayerInterior(playerid,6); SetPlayerPos(playerid,239.3005,1082.3792,1084.1875); SetPlayerFacingAngle(playerid, 180.0000); //Rich House 3
            }
            case 13:
            {
                PlayerInfo[playerid][pInt] = 7; SetPlayerInterior(playerid,7); SetPlayerPos(playerid,249.8783,1034.8627,1084.7266); SetPlayerFacingAngle(playerid, 90.0000); //Rich House 4
            }
            case 14:
            {
                PlayerInfo[playerid][pInt] = 12; SetPlayerInterior(playerid,12); SetPlayerPos(playerid,2324.4353,-1147.1166,1050.7101); SetPlayerFacingAngle(playerid, 360.0000); //Rich House 5
            }
            case 15:
            {
                PlayerInfo[playerid][pInt] = 3; SetPlayerInterior(playerid,3); SetPlayerPos(playerid,235.3410,1189.2468,1080.2578); SetPlayerFacingAngle(playerid, 360.0000); //Rich House 6
            }
            case 16:
            {
                PlayerInfo[playerid][pInt] = 6; SetPlayerInterior(playerid,6); SetPlayerPos(playerid,344.4200,304.9100,999.1484); SetPlayerFacingAngle(playerid, 280.0000); //BDSM Lair
            }
            case 17:
            {
                PlayerInfo[playerid][pInt] = 5; SetPlayerInterior(playerid,5); SetPlayerPos(playerid,1226.5758,-812.2072,1084.0078); SetPlayerFacingAngle(playerid, 0.0000); //Office
            }
            case 18:
            {
                PlayerInfo[playerid][pInt] = 6; SetPlayerInterior(playerid,6); SetPlayerPos(playerid,744.4441,1437.6198,1102.7031); SetPlayerFacingAngle(playerid, 360.0000); //Stripclub
            }
            case 19:
            {
                PlayerInfo[playerid][pInt] = 3; SetPlayerInterior(playerid,3); SetPlayerPos(playerid,963.4101,-53.1195,1001.1246); SetPlayerFacingAngle(playerid, 87.6137); //Brothel
            }
            case 20:
            {
                PlayerInfo[playerid][pInt] = 2; SetPlayerInterior(playerid,2); SetPlayerPos(playerid,2549.1807,-1294.7899,1060.9844); SetPlayerFacingAngle(playerid, 262.7453); //Big Smokes
            }
            default:
            {
                PlayerInfo[playerid][pInt] = 1; SetPlayerInterior(playerid,1); SetPlayerPos(playerid,244.5000,305.0000,999.1484); SetPlayerFacingAngle(playerid, 270.0000); //Small Room 1
            }
        }
        SetCameraBehindPlayer(playerid);
    }
    return 1;
}
Okay what do I have to change here? I can't upload both of them.. Post and I will post the "OnPlayeDisconnect"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)