Here is my script:
function BanRDMFag( pl, cmd, args )
if pl.AbleToBan and args and args != “” then
if table.HasValue( AbleToBeBanned, args ) then
RunConsoleCommand( “banid”, 5, args )
if timer.IsTimer( “KeepFromBanningLater” ) then timer.Destroy( “KeepFromBanningLater” ) end
for k, v in pairs( AbleToBeBanned ) do
if v == args then
table.remove( AbleToBeBanned, k )
pl:PrintMessage( HUD_PRINTCONSOLE, “WTF ARE YOU DOING ASSHOLE?!?!” )
pl:PrintMessage( HUD_PRINTCONSOLE, “Error, the RDM fag will unfortunately not be banned :(” )
concommand.Add( “_banhim”, BanRDMFag )
Everything is defined, as I am testing it on my dedicated server, but for some reason it just WILL NOT ban the RDMing player.
If you need to know, this is how this function is called on the client:
RunConsoleCommand( “_banhim”, RDMer:UniqueID() )
Like I said, everything is defined and it all works until it gets to the first code I posted, and I get no LUA errors on client OR server side. Is it my RunConsoleCommand Syntax?
The first script is server-side, I forgot to mention.