Jump to content

[HELP] Ban Serial


1LoL1

Recommended Posts

Posted

Hello, Is there any way to do that is not to ban by admin series? simply asking to serial scripts and when I want him to give it to me ban writes: "You can not ban admin".

Posted
Make a table of serials, and simply check if the players serial is within the table.

But I think that this can not ban a player when I enter the Serial IP.

Posted

Try this:

function returnAdminBan(thePlayer) 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then  
        cancelEvent() 
    end 
end 
addEventHandler("onPlayerBan", getRootElement(), returnAdminBan) 

Posted
Try this:
function returnAdminBan(thePlayer) 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Admin")) then  
        cancelEvent() 
    end 
end 
addEventHandler("onPlayerBan", getRootElement(), returnAdminBan) 

And when someone does not login?

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