Raised This Month: $ Target: $400
 0% 

Help with ban script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Knare
Member
Join Date: Oct 2004
Location: New York, USA
Old 10-17-2005 , 15:05  
Reply With Quote #1

Dude becareful how you act with stuff like this around here

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 ) return PLUGIN_HANDLED     new player[32] = cmd_target(id,player,9) // 9 means 1 (obey immunity) + 8 (cant be a bot)   new maxplayers = get_maxplayers() if( maxplayers >= 4 ) { if( get_user_frags(player) >= 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 PLUGLIN_HANDLED }

Something like that
__________________
0110101100111011100110000101110010011001
Knare is offline
Send a message via AIM to Knare Send a message via MSN to Knare
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 23:53.


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