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

ban function isnt working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-15-2012 , 14:00   ban function isnt working
Reply With Quote #1

Hello there,

What am i doing wrong here so that it wont work?

PHP Code:
public EndVote2(id)
{
    new 
total gVotes[0] + gVotes[1]
    
    new 
name[32], authid[40]
    
get_user_name(tempidname31)
    
get_user_authid(tempidauthid31)
    
    if (
gVotes[0] > gVotes[1])
    {
        
ColorChat(0GREY"%s ^1Question: (ban) ^4%s"Prefixname)
        
ColorChat(0GREY"%s ^1Reason: ^4%s^1"PrefixBanReasons[reason])
        
ColorChat(0GREY"%s ^1Length:^4 30^1 minutes"Prefix)
        
ColorChat(0GREY"%s ^1Total votes: ^4%i^1 - Yes: ^4%i"PrefixtotalgVotes[0])
        
server_cmd("amx_ban #%s 30 ^"%s^""authidBanReasons[reason])
    } 
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 05-15-2012 , 14:02   Re: ban function isnt working
Reply With Quote #2

Use get_user_userid(id) instead of get_user_authid (which gets the Steam ID).
__________________
<VeCo> is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-15-2012 , 14:07   Re: ban function isnt working
Reply With Quote #3

Allright

Edit: Doesnt work

Tryed:
PHP Code:
server_cmd("amx_ban #%d 30 ^"%s^""get_user_userid(tempid), BanReasons[reason]) 
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 05-15-2012 at 14:17.
Bilal Pro is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-15-2012 , 14:45   Re: ban function isnt working
Reply With Quote #4

it kicks me but i can come back without being banned.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-15-2012 , 15:18   Re: ban function isnt working
Reply With Quote #5

Quote:
Originally Posted by Bilal Pro View Post
it kicks me but i can come back without being banned.
The default AMXX ban is broken. Either grab the latest dev build of 1.8.2, or install a different ban method such as AMXBans or Advanced Bans.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-15-2012 , 15:52   Re: ban function isnt working
Reply With Quote #6

When will they update this, and do you suggest me to use your bans plugin?
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-15-2012 , 16:26   Re: ban function isnt working
Reply With Quote #7

Quote:
Originally Posted by Bilal Pro View Post
When will they update this, and do you suggest me to use your bans plugin?
Just install the latest dev build. Those are the only updates AMXX is getting anymore.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-15-2012 , 16:42   Re: ban function isnt working
Reply With Quote #8

Where am I able to download them?
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-15-2012 , 16:44   Re: ban function isnt working
Reply With Quote #9

http://www.amxmodx.org/
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 05-15-2012 , 16:58   Re: ban function isnt working
Reply With Quote #10

It does work when im banning someone from the amxmodmenu. but when im trying it with the command "amx_ban" it wont work. and thats what I really need because im trying to add this to my plugin.
PHP Code:
server_cmd("amx_ban #%d 30 ^"%s^""get_user_userid(tempid), BanReasons[reason]) 
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro 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 12:45.


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