SA-MP Forums Archive
How to add gates to close ammu-nations? - 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 add gates to close ammu-nations? (/showthread.php?tid=89592)



How to add gates to close ammu-nations? - speedruntrainer - 03.08.2009

How do I add gates to block Ammu-Nation so people can't buy weapons anymore?

Can someone help me with that?

Thanks


Re: How to add gates to close ammu-nations? - RayPoda - 03.08.2009

Or just put under OnGameModeInit

DisableInteriorEnterExits();

Or you can use MTA Map Editor to block it off with a gate.

I'd use what I suggested though.


Re: How to add gates to close ammu-nations? - Mr_Finnigan - 03.08.2009

Quote:
Originally Posted by RayPoda
Or just put under OnGameModeInit

DisableInteriorEnterExits();

Or you can use MTA Map Editor to block it off with a gate.

I'd use what I suggested though.
Only downfall with what he suggests is you would have manually script enter/exit for all cluckin/pizza/burger and then also use a inside to heal.


Re: How to add gates to close ammu-nations? - speedruntrainer - 03.08.2009

Can't you read? its for blocking AMMUNATIONS

ITS A STUNT SERVER


Re: How to add gates to close ammu-nations? - Mr_Finnigan - 03.08.2009

Quote:
Originally Posted by speedruntrainer
Can't you read? its for blocking AMMUNATIONS

ITS A STUNT SERVER
We can raed there chief,we were giving you options on how to do what you asked.

If it is JUST a stunt server then do

Код:
public Script_OnGameModeInit()
{
    DisableInteriorEnterExits();
And all ammunations and fast food places will be closed for business my very polite patient friend.


Re: How to add gates to close ammu-nations? - speedruntrainer - 04.08.2009

This is to close all interiors but on the server, some interiors are still used.
So better is, Is there something, to DISABLE an interior id? like just disable 1 or 2 interior? like the ammunation interior id. NOT ALL.

Thanks


Re: How to add gates to close ammu-nations? - Mr_Finnigan - 04.08.2009

Quote:
Originally Posted by speedruntrainer
This is to close all interiors but on the server, some interiors are still used.
So better is, Is there something, to DISABLE an interior id? like just disable 1 or 2 interior? like the ammunation interior id. NOT ALL.

Thanks
Nope that has been discussed at great length,you best bet is close all yellow markers as stated above with
Код:
public Script_OnGameModeInit()
{
    DisableInteriorEnterExits();
The manually do what you do need,becuase if it is a "stunt" server,im not sure why you need interiors open?if your talking dirt tracks and such then its easier to script enter/exit for say 3 buildings then try to close all ammunations.


Re: How to add gates to close ammu-nations? - speedruntrainer - 04.08.2009

FUCKING VISTA! MTA doesn't work on it! can some post the object id's and and the coordinates so I can close it with gates?


Re: How to add gates to close ammu-nations? - Mr_Finnigan - 04.08.2009

Quote:
Originally Posted by speedruntrainer
FUCKING VISTA! MTA doesn't work on it! can some post the object id's and and the coordinates so I can close it with gates?
you want someone to load MTA editor,spawn gates and close of every single ammunation for you?Then after there 3 hours of work,convert it all into pawn and give it to you?

Question and answer honestly,would you do that much for someone else if they were asking?


Re: How to add gates to close ammu-nations? - Outbreak - 04.08.2009

Quote:
Originally Posted by Mr_FinnigaN
Quote:
Originally Posted by speedruntrainer
FUCKING VISTA! MTA doesn't work on it! can some post the object id's and and the coordinates so I can close it with gates?
you want someone to load MTA editor,spawn gates and close of every single ammunation for you?Then after there 3 hours of work,convert it all into pawn and give it to you?

Question and answer honestly,would you do that much for someone else if they were asking?
Granted he ain't asking in the right mannor, and there's other ways to get positions and object ids, but 3hours to block each ammunation entrance? How slow is your computer?