House spawn
#1

pawn Код:
new House;
House = Player[playerid][House];
SetSpawnInfo(playerid, 0, Player[playerid][LastSkin], Houses[asd][hInteriorX], Houses[asd][hInteriorY], Houses[asd][hInteriorZ], 0, 0, 0, 0, 0, 0, 0);
                SpawnPlayer(playerid);
                SetPlayerInterior(playerid, Houses[asd][hInteriorID]);
                TogglePlayerControllable(playerid, false);
            SetTimerEx("Unfreeze", 2200, false, "i", playerid);

Hey there, I am using dini to save houses in scriptfiles>houses with House_0.ini something like that, and I want people with houses to spawn in their house interior. How is it? I want those asd become the ID of the Player[playerid][House].

Can someone fix it? the above one
Reply
#2

You can simply do this

Make a folder called Houses, create 0.ini etc

When they buy the house write in their file House=HOUSENUMBER

Then when you load their account info load which house they own then take the co-ords from it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)