VoteBan + HD_Ban
Good day!
We have: There is a source code plugin VoteBan (version and the rest not know for sure). Plugin without colorchat and so on, in general almost standard. The plugin is already set up as needed, you just need to rewrite something in the source. What you need: Make sure that: amxx_voteban_type 0 - kick players involved with the reason. amxx_voteban_type 1 - included a ban players using Hacks Detector with the reason (hd_ban% userid%% time%% reason%). amxx_voteban_type 2 - included a ban players with the usual ban stating the reason (amx_ban). amxx_voteban_type 3 - included a ban players with amx_bans indicating the reason. Source: Code:
#include <amxmodx> |
Re: VoteBan + HD_Ban
What specifically do you need help with?
|
Re: VoteBan + HD_Ban
Quote:
0 - Kick player. 1 - Ban player by dialing hd_ban (Anti-Cheat). 2 - Normal ban commando amx_ban on IP. 3 - Ban via AMXBans. Sorry for my english, i from Ukraine and use translate google. |
Re: VoteBan + HD_Ban
You just need to change the code in the switch() on line 204 to match up with your needs. Then, you add the appropriate code to the case that will execute what you want done.
|
Re: VoteBan + HD_Ban
Quote:
On top of all this plugin does not understand how to ban Commando "hd_ban" (hd_ban% userid%% time%% reason%). Namely, there is no variable "% reason%", "% time%" and "% userid%". This means that the command will be given is not true. And I tried to substitute: Code:
case 2:Code:
case 2: |
Re: VoteBan + HD_Ban
Why do you have a "%" after the command? It is not part of the command.
|
Re: VoteBan + HD_Ban
Quote:
Also does not work. Probably fail. |
Re: VoteBan + HD_Ban
Well, first off, you did not copy the original code (the amx_ban part) correctly and you aren't ever going to get something correct that you base on incorrect code. Then, you seemed to have randomly moved things around when you shouldn't have. Because of this you are trying to format a number as a string and a string as a number.
What is HD Ban? |
Re: VoteBan + HD_Ban
Quote:
Your previous message interpreter translated unclear. Maybe I wrote a misspelled command. I ask you to specify what to write and where to operate banks as needed. |
Re: VoteBan + HD_Ban
Well, I'm am not going to be helping you out anymore because I don't want to deal with translators. You will have to wait for someone else to help. My advice is to just modify working code one step at a time and test. Learn from that existing code on how things work.
|
| All times are GMT -4. The time now is 20:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.