Raised This Month: $ Target: $400
 0% 

adminvote scripting help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jsterling
SourceMod Donor
Join Date: Mar 2004
Location: Denver, CO, USA
Old 12-20-2008 , 15:59   adminvote scripting help
Reply With Quote #1

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!

Last edited by jsterling; 12-20-2008 at 16:25.
jsterling is offline
Send a message via AIM to jsterling
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode