House spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: House spawn (
/showthread.php?tid=326310)
House spawn -
Malcor - 17.03.2012
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
Re: House spawn -
SnG.Scot_MisCuDI - 17.03.2012
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