hi all
I worked mode anti-s0bet
Worked file server
but I cannot I'm working file clinet
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