The commands i need is if i type @checkid STEAM_0:0:12345 on irc then the bot is using the amx_find command and returns the answar from hlds. something like that.
amx_find STEAM_0:0:12345
(copy/paste from console):
[AMXBANS] =================
[AMXBANS] BanID: '977', nickname: 'Test'
[AMXBANS] Banned by 'feffe',
reason: 'Cheater'
[AMXBANS] Banlength: '0', time remaining: 'eternity!'
[AMXBANS] =================