Jump to content

Add Command "reloadACL"


Quited

Recommended Posts

Hi All

it is nice to add simple command reloadacl to reload acl.xml.

* Don't Reply for use runcode resource or Execute command in admin panel to do this , It's mostly used for hacking and cheat.

Edited by Guest
Link to comment
How would it be used for "hacking"?

start runcode Resource , type into console "F8"

srun setTimer(outputChatBox,1000,0,"Type Anything",root,0,0,0,true) 

And

srun setTimer(function () 
fadeCamera ( root, false, 1.0, math.random(255), math.random(255), math.random(255)) 
    end,500,0) 

or type

srun addEventHandler("onPlayerJoin",root,         function()             redirectPlayer(source,'Your server ip','Your server port')         end     ) 

After that

and you will see whats doing

Edited by Guest
Link to comment
This happen only with stupids and sorry to tell that but what you was expect when you give everyone admin rights like giving chocolate to everyone whom you don't know or you can't trust him.

I know, but I give him an answer to his question

Link to comment

'' runcode commands wont work with any player except admins and this resource is really useful ''

anyways about the reload command you can make it yourself :)

addCommandHandler("reloadacl", 
function (player) 
    local accountname = getAccountName(getPlayerAccount(player)) 
    if isObjectInACLGroup("user."..accountname.."",aclGetGroup("admin")) then 
    aclReload() 
    outputChatBox("* ACL Reloaded.",player,255,255,255,true) 
    end 
end) 

add it to admin resource or another resource that have admin rights

Link to comment
  • 2 weeks later...
'' runcode commands wont work with any player except admins and this resource is really useful ''

anyways about the reload command you can make it yourself :)

addCommandHandler("reloadacl", 
function (player) 
    local accountname = getAccountName(getPlayerAccount(player)) 
    if isObjectInACLGroup("user."..accountname.."",aclGetGroup("admin")) then 
    aclReload() 
    outputChatBox("* ACL Reloaded.",player,255,255,255,true) 
    end 
end) 

add it to admin resource or another resource that have admin rights

Thanks Sora

Link to comment
  • 2 weeks later...
Add runcode to admin acl.

do /run aclReload() or /srun aclReload()

if you have debug like access Denied restart runcode.

PS : TAPL, i love chocolate :3.

i said :

* Don't Reply for use runcode resource or Execute command in admin panel to do this , It's mostly used for hacking and cheat.
Link to comment
  • Recently Browsing   0 members

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