Jump to content

Ban and Kick Console


#Madara

Recommended Posts

Posted (edited)

Hi guys

How i make this script ?

if anyone will ban a anyone in Console ACL

the who will ban get ban

and if anyone will kick anyone in Console ACL

the who will kick get kick

Edited by Guest
Posted
  
function kickP (source, cmd, target) 
    local target = getPlayerFromName (target) 
    local you = getPlayerName (source) 
    if target then 
        kickPlayer (target) 
        kickPlayer (source) 
    end 
end 
addCommandHandler ("kick", kickP) 
  

this should be working fine

Posted
  
function kickP (source, cmd, target) 
    local target = getPlayerFromName (target) 
    local you = getPlayerName (source) 
    if target then 
        kickPlayer (target) 
        kickPlayer (source) 
    end 
end 
addCommandHandler ("kick", kickP) 
  

this should be working fine

this is command but i want from Admin panel

Posted

If you want from admin panel, you must edit admin panel.

isObjectInACLGroup 
aclGetGroup -- Console in this case 

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