SA-MP Forums Archive
interior check or inuse check - 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: interior check or inuse check (/showthread.php?tid=564990)



interior check or inuse check - IndependentGaming - 24.02.2015

Greetings, I want to make something that if you place a house or a door that if you enter the house/door and it does not have an interior that its saying this house/door does not have an interior.


and with gates if the gate is not placed and you use /gotogate that its saying that gate is not placed yet.

anyone ?



Thanks in advance.


Re: interior check or inuse check - KtotheYle - 25.02.2015

For the gate make a variable like gActive and set it to 1 or true when the gate is moved, then when they type /gotogate it checks if the gate Ids gActive is set to true. Do the same with the interior like hInteriorActive do the same style.