Jump to content

how can i stop deathmatch in interiors


Amine#TN

Recommended Posts

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
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 by LoPollo
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...