Raised This Month: $ Target: $400
 0% 

Help with "Min player or ban" plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dann3
Junior Member
Join Date: Jan 2007
Old 12-07-2007 , 05:29   Re: Help with "Min player or ban" plugin
Reply With Quote #9

The plugin is working now i think

I changed
PHP Code:
get_user_ip(players[i], stm32)//here steamid is an ip
copyc(steamid,32,stm,':')
//server_cmd( "banid %d ^"%s^"" , get_cvar_num("mpl_bantime"),steamid )
//amx_ban <name|#userid|authid|ip> [ip] <minutes> [reason]
//server_print( "[AMX:DEBUG] amx_ban %s %d ^"%s^"" , steamid, get_cvar_num("mpl_bantime"),reason )
server_cmd"amx_ban %s %d ^"%s^"" steamidget_cvar_num("mpl_bantime"),reason )
}
else
{
get_user_authid(players[i], steamid32)
//server_cmd( "banid %d ^"%s^"" , get_cvar_num("mpl_bantime"),steamid )
server_cmd"amx_ban %s %d ^"%s^"" steamidget_cvar_num("mpl_bantime"),reason 
To

PHP Code:
get_user_ip(players[i], stm32)//here steamid is an ip
copyc(steamid,32,stm,':')
//server_cmd( "banid %d ^"%s^"" , get_cvar_num("mpl_bantime"),steamid )
//amx_ban <name|#userid|authid|ip> [ip] <minutes> [reason]
//server_print( "[AMX:DEBUG] amx_ban %s %d ^"%s^"" , steamid, get_cvar_num("mpl_bantime"),reason )
server_cmd"amx_ban %s %d ^"%s^"" steamidget_cvar_num("mpl_bantime"),reason )
}
else
{
//server_cmd( "banid %d ^"%s^"" , get_cvar_num("mpl_bantime"),steamid )
server_cmd"amx_ban #%d %d ^"%s^"" get_user_userid(players[i]),get_cvar_num("mpl_bantime") ,reason )

Its working but i dont know if that is 'clean/good' coding

Last edited by Dann3; 12-07-2007 at 05:31.
Dann3 is offline
 



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 01:23.


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