KOKS XXL

Weapon Block

Recommended Posts

Hi!
I want to block all wapons to get to ACL Everyone, to get prepared about WK, SK.
but i must allow some persons to get allowed to use them so i have to ceate ACL for example: Gang, that will be able to get weapons from F1.
am stuck, can someone help me?

Share this post


Link to post

U can to try use ACL and manage ACL for commands.
'command.giveWeapon', for example

Any ACL groups can take weapon, if ur give rights for it

Or use commands with check team (getPlayerTeamName == 'Any Team Name')

Share this post


Link to post
On 24/03/2020 at 04:04, nikitafloy said:

U can to try use ACL and manage ACL for commands.
'command.giveWeapon', for example

Any ACL groups can take weapon, if ur give rights for it

Or use commands with check team (getPlayerTeamName == 'Any Team Name')

I want to block F1 getting weapons for Everyone; and get it able for Other ACL.
So i have to change in "Default" ACL  command.giveweapon \ Flase

and create other ACL (Lets call it "Shoot") where gonna be only one line:
<acl name="Shoot">
<right name="command.giveweapon" access="true"></right>
</acl>
it should looks like this?
or i have to copy and paste all from default?

Edited by KOKS XXL

Share this post


Link to post
38 minutes ago, KOKS XXL said:

I want to block F1 getting weapons for Everyone; and get it able for Other ACL.
So i have to change in "Default" ACL  command.giveweapon \ Flase

and create other ACL (Lets call it "Shoot") where gonna be only one line:
<acl name="Shoot">
<right name="command.giveweapon" access="true"></right>
</acl>
it should looks like this?
or i have to copy and paste all from default?

Does the freeroam resource even check the player ACL for permission? No, it does not. If you use the freeroam GUI then either everyone gets the weapons or nobody. Do you really need the F1 GUI in your server?

Share this post


Link to post
12 hours ago, The_GTA said:

Does the freeroam resource even check the player ACL for permission? No, it does not. If you use the freeroam GUI then either everyone gets the weapons or nobody. Do you really need the F1 GUI in your server?

yes, i acually making Freeroam server so i need that. i have problem with spawn killers, warp killers; so that was idea to block taking weapons for everyone and give the permission to "Trusted" presons

Share this post


Link to post
4 minutes ago, KOKS XXL said:

yes, i acually making Freeroam server so i need that. i have problem with spawn killers, warp killers; so that was idea to block taking weapons for everyone and give the permission to "Trusted" presons

Then you need to patch the freeroam resource using the hasObjectPermissionTo function across all functions (giveMeWeapon, etc) so that the ACL priviledges are honored.

Share this post


Link to post

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.