Raised This Month: $ Target: $400
 0% 

Ban a Player?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-29-2010 , 05:30   Ban a Player?
Reply With Quote #1

Hello,

hello i tried:

PHP Code:
server_cmd("amx_ban #%i 1"id
for banning the ID for 1 minute but it doesnt work


Can you tell me how to ban somebody for 1 minute?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 06-29-2010 , 06:58   Re: Ban a Player?
Reply With Quote #2

So, i found this code:

PHP Code:
server_cmd("amx_ban #%d 30"get_user_userid(id))
        
server_exec() 

it banns me but i can simply join the server again and im not banned, why?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 06-29-2010 , 09:04   Re: Ban a Player?
Reply With Quote #3

because u are ussing your id,u must create a new id or a target I think
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 06-29-2010 , 09:29   Re: Ban a Player?
Reply With Quote #4

use either addban either banip, it's just more usefull, also you can also find if a user is admin on your server and use the ban command from his console xD
__________________
There are 10 kinds of people.Those who understand binary, and those who don't.
Also, for those who understand binary, there is a donation tab too!
No steam || PM support!
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-29-2010 , 10:06   Re: Ban a Player?
Reply With Quote #5

If you are using the amx_ban command and have not upgraded to 1.8.2 or implemented the fix yourself, then that would explain it.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 14:52.


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