How to know when a player exit's a house? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to know when a player exit's a house? (
/showthread.php?tid=74797)
How to know when a player exit's a house? -
Andom - 26.04.2009
Hello, i wanted to created a house system, but i didn't want to use DisableInteriorExits(); because i don't like it.
But how can my script detect when a player exit's a house (so when he walked into an Enex to the outside of the house)?
* Please without timers.
Re: How to know when a player exit's a house? -
FUNExtreme - 26.04.2009
https://sampwiki.blast.hk/wiki/OnPlayerInteriorChange
Re: How to know when a player exit's a house? -
Andom - 26.04.2009
Quote:
Originally Posted by FUNExtreme
|
Realy thanks mate! that helps me! but how do i know if a player is IN a house, and try's to EXIT's it? because with OnPlayerInteriorChange it will works with all interiors, and not all interiors are houses.
Something with playertopoint?
Re: How to know when a player exit's a house? -
FUNExtreme - 26.04.2009
if(newinteriorid == 0)