Jump to content

[SOLVED] add command


tim260

Recommended Posts

NVM sorry lock the topic castillo helped me already

HES THE BEST BTW, also for paying jobs he always works very fast and if it doesnt works how you want to hell edit it till its right im talking from experience :D

Edited by Guest
Link to comment
function giveAdminRights (playerSource, commandName, accountName, groupName) 
    if (accountName and accountName ~= "" and groupName and groupName ~= "") then 
        aclGroupAddObject (aclGetGroup(groupName), "user."..accountName) 
        outputChatBox ("Account '".. accountName .."' succesfully added to '".. groupName .."'", playerSource) 
    else 
        outputChatBox ("Correct syntax: /groupadd [accountName] [groupName]", playerSource) 
    end 
end  
addCommandHandler ("groupadd", giveAdminRights) 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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