Disable entrance/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: Disable entrance/exit (
/showthread.php?tid=191130)
Disable entrance/exit -
marinov - 18.11.2010
Is there a way to disable the entrance/exit (the yellow arrow to the ground) in only a
few places (all except fast-foods ) ?
Re: Disable entrance/exit -
bigcomfycouch - 18.11.2010
No. You must either disable all or none.
I do have the coordinates of all the fast food restaurants though. Disregard the angle field, I do not use the standard fast food interiors.
http://pastebin.com/kSVd982d
Re: Disable entrance/exit -
XoSarahMoX - 18.11.2010
How do you disable them all anyway please?
thanks
Re: Disable entrance/exit -
bigcomfycouch - 18.11.2010
Put this under OnGameModeInit
pawn Code:
DisableInteriorEnterExits();
Re: Disable entrance/exit -
marinov - 18.11.2010
to disable them all is :
pawn Code:
DisableInteriorEnterExits();
under :
Re: Disable entrance/exit -
marinov - 18.11.2010
Damn, because on my server people get hungry and they have to eat on fast-foods, but for some other things I have to disable the enter/exit thing.
Ps: these coordinates are from the entrance of the fast food ?
Code:
This forum requires that you wait 120 seconds between posts. Please try again in 14 seconds.
Re: Disable entrance/exit - [L3th4l] - 18.11.2010
You can't. You can either disable all of them, or none of them. If you do disable all of them, you will have to code pickups, checkpoints, or something to get you to those fast-foods..
Re: Disable entrance/exit -
marinov - 18.11.2010
Yeah, well it sure will be a lot of work
Ps:and how would I make the player able to buy food (is not about going inside, is about eating)
Re: Disable entrance/exit -
Kerlan - 01.12.2011
VEy useful