AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amx_banip (https://forums.alliedmods.net/showthread.php?t=147738)

anupm 01-13-2011 09:05

amx_banip
 
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 ?

Exolent[jNr] 01-13-2011 13:59

Re: amx_banip
 
Put quotes around everything.

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

anupm 01-13-2011 19:59

Re: amx_banip
 
Thanks ...now its working fine :)


All times are GMT -4. The time now is 02:09.

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