Castillo Posted July 10, 2011 Share Posted July 10, 2011 I don't understand what do you mean... you are executing this script via runcode or...? Link to comment
ChaseOquinn Posted July 10, 2011 Share Posted July 10, 2011 I don't understand you to well, but the redirectPlayer() function wont work without adding the resource to the admin group in your acl. So your problem wont be solved until you add that line to your acl. Link to comment
Try Posted July 11, 2011 Author Share Posted July 11, 2011 hmm... let me try explain: have a code for do this at the script like: aclAddResource(.........) ? Link to comment
JR10 Posted July 11, 2011 Share Posted July 11, 2011 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
qaisjp Posted July 11, 2011 Share Posted July 11, 2011 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
JR10 Posted July 11, 2011 Share Posted July 11, 2011 My bad, i didn't read carefully. Link to comment
Try Posted July 11, 2011 Author Share Posted July 11, 2011 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
Castillo Posted July 11, 2011 Share Posted July 11, 2011 Well, I have a better option, go and ask to the server owner to add it to the acl, why wouldn't he agree? Link to comment
Try Posted July 11, 2011 Author Share Posted July 11, 2011 i tryed buttttttttt.... he said no i will try to try again Link to comment
JR10 Posted July 11, 2011 Share Posted July 11, 2011 Lol, if he said no, then don't do it. Because anyway you will get into troubles, doing something he doesn't want. Link to comment
Try Posted July 11, 2011 Author Share Posted July 11, 2011 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
ChaseOquinn Posted July 11, 2011 Share Posted July 11, 2011 Well tell him that the script requires you to add a line to the acl to work and if he still says no then forget about that script and work on something else. Link to comment
JR10 Posted July 11, 2011 Share Posted July 11, 2011 No because ACL functions are server side only. Link to comment
Twisted Posted July 11, 2011 Share Posted July 11, 2011 Try, i will speak to matt about it but hes at work maybe i will add it to the acl via FTP for u Link to comment
qaisjp Posted July 12, 2011 Share Posted July 12, 2011 Chocolate Bananas (why do i make up random things), how is it hard to understand? Link to comment
Twisted Posted July 12, 2011 Share Posted July 12, 2011 Chocolate Bananas (why do i make up random things), how is it hard to understand? Stop off topic... 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