adminvote scripting help
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:
PHP Code:
Thanks! |
Re: adminvote scripting help
This is an old bump and I can't remember how I did it in the past but I lost all of my files awhile ago and am trying to accomplish this again.
Can anyone give me a hand? Thanks! |
Re: adminvote scripting help
quotes.
|
Re: adminvote scripting help
Could you tell me where?
|
Re: adminvote scripting help
While I'm not entirely sure, I thought that I had seen that one of the more recent updates to AMXBans switched the order of minutes and player identification. If that is the problem, you might be able to just switch the two, as shown below:
Code:
I'm not convinced the issue is with quotes. If you did have to add quotes, they'd be like: Code:
|
Re: adminvote scripting help
Code:
There's an example. |
Re: adminvote scripting help
Quote:
Another issues is that he uses the %s differently in two of the three cases for that one g_answer variable. If he intends to use the UserID then he needs to add the # to the first two. If he intends to use name or SteamID then he needs quotes. |
Re: adminvote scripting help
Nah. He's doing it the way it was originally coded. The correct value gets put in for each case. I tried following the logic in adminvote.sma but was like, screw it.
I had PM'd him earlier asking him to make a change where the plugin is actually sending the command, to print it to chat rather than sending it. That way we'd have a good idea what exactly it's sending. And by a "good idea" I mean we'll know. Hopefully we'll see that soon. @Kreation: Ha! My 10:00pm is earlier than your 10:00pm! |
Re: adminvote scripting help
Brad, the code you gave me in the PM caused a compile error.
This work's though: Code:
if (voteban)How do I get rid of the 0 in the reason? Thanks a lot guys! |
Re: adminvote scripting help
Put it in quotes like you have the string.
|
| All times are GMT -4. The time now is 09:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.