Sorry PM, had a look now
The reason i asked was because i know that Yomama did something like this with his amx_bans plugin and the ATAC plugin:
Quote:
Change this...
Code:
if( atac_banvia == 2 ) // If LAN or IP ban via IP
server_cmd("addip %i %s;writeip;kick #%d", atac_bantime, kIP, userid)
else
server_cmd("banid %i #%d kick;writeid", atac_bantime, userid)
to this...
Code:
if( atac_banvia == 2 ) // If LAN or IP ban via IP
server_cmd("addip %i %s;writeip;kick #%d", atac_bantime, kIP, userid)
else
server_cmd("amx_ban %i %s Team kill violation", atac_bantime, kAuthid)
|
There's that server_cmd("amx_ban ......) line in there which looks like it directly calls the amx_ban function in the amx_bans plugin, thats why i thought i could do it like i had up the top. Is this not a good way to do it ??