Jump to content

help me in File client plz!


viros

Recommended Posts

hi all

I worked mode anti-s0bet

Worked file server

but I cannot I'm working file clinet :cry:

plz help me in file client

server

function banPlayerCommand ( theClient, commandName, bannedName, reason ) 
  
    if ( hasObjectPermissionTo ( theClient, "function.banPlayer" ) ) then 
        local bannedPlayer = getPlayerFromNick ( bannedName ) 
  
        banPlayer ( bannedPlayer, theClient, reason ) 
        outputChatBox ( "ban: " .. bannedName .. " successfully banned", theClient ) 
  
    else 
        outputChatBox ( "ban: You don't have enough permissions", theClient ) 
    end 
  
end 
addCommandHandler ( "ban", banPlayerCommand ) 
  
function banCheater(theCheater) 
    banPlayer(theCheater, getRootElement(), "You are banned because of cheating.") 
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...