Jump to content

its posible


pepsi18

Recommended Posts

function testOne() 
local playerAccount = getPlayerAccount(source) 
if playerAccount == "test" then 
banPlayer(source) 
end 
end 
addEventHandler("onPlayerLogin",root,testOne) 

not tested,add this resource to admin acl group to work

and change test to your account name which u want banned

Link to comment
  
addEventHandler ( 'onPlayerLogin', getRootElement ( ), 
function () 
if (getPlayerAccount(getAccountName(source) == 'Name Here' )) then 
banPlayer ( source, false, false, true, getRootElement ( ), 'reason ban' ) 
   end 
  end 
  ) 

learn from it ,

Link to comment
AccBans = { 
    ["Account Name Here"] = true, 
    ["Account Name Here"] = true, 
    ["Account Name Here"] = true 
} 
  
addEventHandler("onPlayerLogin", root, 
function(_, account) 
    local accountName = getAccountName(account) 
    if AccBans[accountName] then 
        banPlayer(source) 
    end 
end) 

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