et.trap_SendConsoleCommand(et.EXEC_APPEND,"csay "..clientId.."\"^dshowwarns: ^9no connected player by that name or slot #\";")
returntrue
end
localplayerWarns=warns.get(cmdClient)
ifnot(playerWarnsand#playerWarns>0)then
et.trap_SendConsoleCommand(et.EXEC_APPEND,"csay "..clientId.."\"^dshowwarns: ^9there are no warnings for player ^7"..et.gentity_get(cmdClient,"pers.netname").."^9.\";")
else
et.trap_SendConsoleCommand(et.EXEC_APPEND,"csay "..clientId.."\"^dWarns for ^7"..et.gentity_get(cmdClient,"pers.netname").."^d:\";")
et.trap_SendConsoleCommand(et.EXEC_APPEND,"cchat "..clientId.."\"^dshowwarns: ^9warnings for ^7"..et.gentity_get(cmdClient,"pers.netname").." ^9were printed to the console.\";")
commands.addadmin("showwarns",commandShowWarns,"R","display warnings for a specific player","^9[^3name|slot#^9]",function()return(settings.get("g_warnHistory")==0orsettings.get("db_type")=="cfg")end)