Raised This Month: $ Target: $400
 0% 

amx_banip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anupm
Senior Member
Join Date: May 2010
Old 01-13-2011 , 09:05   amx_banip
Reply With Quote #1

Hi All ,

I am creating a plugin but the amx_banip thing is not working .

In my plugin i have put

server_cmd("amx_banip %s %d ^"Crash script detected^"", name, get_cvar_num("anti_crash_bantime"))

Now the player is getting banned . But in bantime the name of the player is coming and in reason the time is coming .

See the log

Code:
L 01/13/2011 - 19:26:37: [admincmd.amxx] Ban: "Half-Life dedicated server<0><><>" ban and kick "Mr. Perfect<1><STEAM_ID_LAN><>" (minutes "Perfect") (reason "120")
[AMXX] Client "Perfect" banned
Dropped Perfect from server
Reason:  Kicked :"120 (banned permanently)"
Writing listip.cfg.
Pls tell me how to handle this ?
anupm is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-13-2011 , 13:59   Re: amx_banip
Reply With Quote #2

Put quotes around everything.

server_cmd("amx_banip ^"%s^" ^"%d^" ^"Crash script detected^"", name, get_cvar_num("anti_crash_bantime"))
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
anupm
Senior Member
Join Date: May 2010
Old 01-13-2011 , 19:59   Re: amx_banip
Reply With Quote #3

Thanks ...now its working fine
anupm 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:09.


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