Raised This Month: $ Target: $400
 0% 

Help with ban script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-17-2005 , 16:59  
Reply With Quote #5

Code:
new players[32] = cmd_target(id,player,9);

What? That doesn't make any sense... try this:

Code:
 #include <amxmodx> public plugin_init() {     // ..     register_plugin("Frag Ban", "1.0", "ShadowLeader")     register_event("ResetHUD", "newSpawn", "be")     register_cvar("frags_limit", "70")     register_cvar("frags_pct_chance", "10") } public newSpawn(id) {     if ( (get_user_flags(id)&ADMIN_BAN) || (get_user_flags(id)&ADMIN_IMMUNITY) ) return PLUGIN_HANDLED     new maxplayers = get_maxplayers()     if( maxplayers >= 4 ) {         if( get_user_frags(id) >= get_cvar_num("frags_limit") ) {             new randNum = random_num(0, 100)             if ( get_cvar_num("frags_pct_chance") >= randNum ) {                 server_cmd("banid 30 #%d", get_user_userid(id))                 server_cmd("kick #%d ^"Server overflowed^"", get_user_userid(id))             }         }     }     return PLUGIN_HANDLED }

This just checks for the ADMIN_IMMUNITY flag as well as the ADMIN_BAN flag. As for logging with AmxBans, I'm not sure since I haven't used it.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 23:53.


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