[HELP] dialog enter exit - 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: [HELP] dialog enter exit (
/showthread.php?tid=562181)
[HELP] dialog enter exit -
Luca12 - 07.02.2015
Hello I have know when some player is on pickup for entering in the bank for exaple he get dialog for enter and he enter that's fine but son as he enter in the bank he get wright away dialog for exit how can I make for all player when player some enter in the bank and if he is entering then he don't get dialog wright know but he get only if it pass like 5 or 10 sec if you know what I mean also when player exiting and he get dialog for enter I also want to make something here when he is exiting he wait for some time and again he get dialog for enter. Thanks
Re: [HELP] dialog enter exit -
HazardouS - 07.02.2015
You can do it with timers (
https://sampwiki.blast.hk/wiki/SetTimerEx), but you can also move the interior spawn point a little bit so it doesn't coincide with the exit point.
Re: [HELP] dialog enter exit -
Luca12 - 07.02.2015
anyone else? thanks
Re: [HELP] dialog enter exit -
CalvinC - 07.02.2015
You could create a variable and set it to 1 when a player enters the building.
Then when he moves away from the pickup inside the building, set the variable to 0.
Then only make the exit dialog pop up if the variable is set to 0.
Re: [HELP] dialog enter exit -
sw3das - 07.02.2015
Or you could just set player pos diffrent than pickup pos that's in the bank
For example:
Pickup is at X 10, Y 10, Z 10;
Player should be at X 11, Y 10, Z 10;