27.02.2013, 03:25
Well.. you could create an /enter, /exit command if they stand in the front of the house..
/enter would set their interior world the interior has.
/exit would set their position back (infront of the house) and the interior to 0.
Things you're gonna use:
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint // if the player is not near the house entrancy /enter wont work, same for /exit.
https://sampwiki.blast.hk/wiki/Function:SetPlayerInterior // this will help you too...
https://sampwiki.blast.hk/wiki/SetPlayerPos < common sense..
http://weedarr.wikidot.com/interior
In setplayer pos you'll add the X Y Z Cords...
in setplayerinterior you'll add the ID (Interior)..
and you're done, i hope you meant this.
/enter would set their interior world the interior has.
/exit would set their position back (infront of the house) and the interior to 0.
Things you're gonna use:
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint // if the player is not near the house entrancy /enter wont work, same for /exit.
https://sampwiki.blast.hk/wiki/Function:SetPlayerInterior // this will help you too...
https://sampwiki.blast.hk/wiki/SetPlayerPos < common sense..
http://weedarr.wikidot.com/interior
In setplayer pos you'll add the X Y Z Cords...
in setplayerinterior you'll add the ID (Interior)..
and you're done, i hope you meant this.