Jump to content

Redirect


Try

Recommended Posts

Lol, yes, but why not add it manually?

put this any where in your code

addEventHandler("onResourceStart", resourceRoot, 
function() 
aclGroupAddObject(aclGetGroup("Admin"), "resource."..getResourceName(getThisResource())) 
aclSave() 
end) 

Not tested but should work.

Link to comment

Won't work, you need admin access for editing acl.

Try. First thing, please speak proper English, if you don't know good English, atleast Try, 'Try'.

Secondly, you should have access to the file:

mods/deathmatch/acl.xml

Near the top you will find a line that say "Admin", then there will be things like "resource.admin"

Copy the line that says "resource.admin" and paste it in the same place. However replace "resource.admin" with

"resource.resname"

You have name your resource, right? You have kept it in a folder, you need to put that name in place of resname

For example my resorce folder name is called "helloworldres". So instead of "resource.admin", I would put "resource.helloworldres"

THAT is IF YOU DO NOT HAVE ADMIN ACCESS!

If you have admin, press P then go to the resources tab and in the top right corner there will be a Manage ACL, press that button. Now double click Admin at the top

then press add object

then type "resource.resname"

If you do not understand, you are as dumb as Justin Bieber's dick or you simply don't know; in that case ask your boyfriend to help you, he should know.

Link to comment

OMG Its too much difficult understant? i will explain again

Im not the owner from the server im only a scripter from the server the button MANEGE ACL from Admin Panel is deleted

Its possible add the script at acl by other script? YES OR NO if is ppossible HOW?!

Link to comment

He want the script but don't want add to the acl

can be:

function addacl() 
aclGroupAddObject (aclGetGroup("Admin"), "resource.redirect") 
aclSave() 
end 
addEventHandler("onClientResourceStart",getRootElement(),addacl) 

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...