Amine#TN Posted January 15, 2017 Share Posted January 15, 2017 i want a script to forbidden guns in interiors Link to comment
LoPollo Posted January 15, 2017 Share Posted January 15, 2017 are you using the default interiors resource? it provides some events useful for you. when entering an interior: save the weapons the player has, then take them so he won't have any weapon while in interior. when exiting: give the saved weapons Another solution is to prevent any client from shooting while in an interior (overworld interior is 0, keep in mind dimensions, but these depends on what you want to do and what the server already has) Link to comment
Amine#TN Posted January 15, 2017 Author Share Posted January 15, 2017 do you have interiors without houses i need just guns shop and restaurent Link to comment
Simple0x47 Posted January 15, 2017 Share Posted January 15, 2017 Just make use of getElementDimension and getElementInterior, attach them to the onClientPlayerDamage. Make a statment to check if it's a forbidden DM interior and cancel the event. Link to comment
LoPollo Posted January 15, 2017 Share Posted January 15, 2017 (edited) 1 hour ago, Simple01 said: Just make use of getElementDimension and getElementInterior, attach them to the onClientPlayerDamage. Make a statment to check if it's a forbidden DM interior and cancel the event. cancelling the damage will still make the players take the force of an explosion etc... i think it's better toggling the controls. It's better to prevent. 2 hours ago, A.mine said: do you have interiors without houses i need just guns shop and restaurent What do you mean? A resource that makes ONLY ammu-nations, shops and restaurants enterable? i think you need to edit the default resource "interiors" map, i'm not aware of any resource that opens ALL the above places without making houses and apartaments accessible.... Edited January 15, 2017 by LoPollo Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now