Raised This Month: $51 Target: $400
 12% 

how to make this line compatible with advanced bans?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FLAiTE
Member
Join Date: Aug 2008
Old 02-02-2015 , 07:53   how to make this line compatible with advanced bans?
Reply With Quote #1

Hi.
I'd like to add a voteban plugin on a server.
The main problem is that all voteban plugins are only compatible with the default amxx ban system.
I really like this /voteban version.

Since i only ban by IP, this is the line that interests me:

PHP Code:
server_cmd("kick #%d;wait;wait;wait;addip %d ^"%s^";wait;wait;wait;writeip"get_user_userid(id), get_pcvar_num(g_iPcvar[CVAR_BANTIME]), szIp); 
How can i make it compatible with Advanced Bans by ExoleNt?

I tried something like

PHP Code:
new playername[32];
new 
playerIP[32];
get_user_name(idplayername31);
get_user_ip(idplayerIP311);
server_cmd("amx_addban ^"%s^" %s 30 ^"banned due to /voteban decision!^""playernameplayerIP); 
...but it doesn't seem to work.
what is the best method to make a plugin like /voteban compatible with Advanced Bans by ExoleNt?
thank you!
FLAiTE is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-02-2015 , 19:13   Re: how to make this line compatible with advanced bans?
Reply With Quote #2

Ban by SteamID using amx_ban.

P.S. Parameters should always have quotes.
__________________

Last edited by fysiks; 02-02-2015 at 19:16.
fysiks is offline
FLAiTE
Member
Join Date: Aug 2008
Old 02-03-2015 , 14:51   Re: how to make this line compatible with advanced bans?
Reply With Quote #3

thanks...i'll try adding quotes and ban by SteamID.
FLAiTE is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 02-03-2015 , 15:39   Re: how to make this line compatible with advanced bans?
Reply With Quote #4

What about banning by steamID and by ip.
I know a lot of people who own more than one or even two steam accounts.
It would be also great to ban steamID+ip+name, for example if you're server have some systems what save things by name then that would be really useful.
.Dare Devil. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-03-2015 , 19:00   Re: how to make this line compatible with advanced bans?
Reply With Quote #5

Quote:
Originally Posted by .Dare Devil. View Post
What about banning by steamID and by ip.
I know a lot of people who own more than one or even two steam accounts.
It would be also great to ban steamID+ip+name, for example if you're server have some systems what save things by name then that would be really useful.
They can just change their IP . . . you should know this.
__________________
fysiks is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 02-04-2015 , 06:28   Re: how to make this line compatible with advanced bans?
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
They can just change their IP . . . you should know this.
hmmm, i dont like the tone of your voice. You're speaking like you are suspecting something.
.Dare Devil. is offline
FLAiTE
Member
Join Date: Aug 2008
Old 02-04-2015 , 09:20   Re: how to make this line compatible with advanced bans?
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
They can just change their IP . . . you should know this.
not everyone has a dynamic IP...in romania there are many users who still have static IPs, or semi static IPs (that change 1/2 times a year).
FLAiTE is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-06-2015 , 22:44   Re: how to make this line compatible with advanced bans?
Reply With Quote #8

Quote:
Originally Posted by .Dare Devil. View Post
hmmm, i dont like the tone of your voice. You're speaking like you are suspecting something.
He's just a volvo fanboy.
Here. Bans on both SteamID and IP.
Attached Files
File Type: sma Get Plugin or Get Source (voteban_advbans.sma - 479 views - 7.0 KB)
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 02-06-2015 , 23:12   Re: how to make this line compatible with advanced bans?
Reply With Quote #9

Quote:
Originally Posted by .Dare Devil. View Post
hmmm, i dont like the tone of your voice. You're speaking like you are suspecting something.
What the hell are you taking about? You cannot possibly know what his "tone of voice" is.

My IP address changes very often; I'd have to pay my ISP extra to stop it.
__________________
ddhoward is offline
Reply



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 02:59.


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