I am trying to have adminvote ban using amxbans instead of the built in HL system. I've edited the default adminvote.sma to try and accomplish this.
I changed this:
PHP Code:
if (voteban)
{
if (ipban==true)
{
g_Answer = "addip 30.0 %s";
}
else
{
g_Answer = "banid 30.0 %s kick";
}
}
else
{
g_Answer = "kick #%s";
}
To this:
PHP Code:
if (voteban)
{
if (ipban==true)
{
g_Answer = "amx_ban 30.0 %s Voteban";
}
else
{
g_Answer = "amx_ban 30.0 %s Voteban";
}
}
else
{
g_Answer = "kick #%s";
}
The command is never sent to amxbans though. It says it's banning but players never get banned or kicked. Can anyone give me a suggestion?
Thanks!