Jump to content

Helping me with automatical ban script please


DJION4

Recommended Posts

heyo all i need little help i wanna ask you if somebody can help me with automatical ban that when somone login with name in the group name ban that that guy is baned i trying to do it but well i am not soo good at it so need little help

  
function getPlayerBan() 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "ban" ) ) then 
    getPlayerBan(source, source) 
end 
addEventHandler("onPlayerLogin", getRootElement(), getPlayerBan) 
  

Link to comment
function getPlayerBan ( _, account ) 
    if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "ban" ) ) then 
        banPlayer ( source, true, false, true ) 
    end 
end 
addEventHandler ( "onPlayerLogin", getRootElement(), getPlayerBan ) 

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