Raised This Month: $ Target: $400
 0% 

Kill 10 players = ban


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-25-2011 , 22:48   Re: Kill 10 players = ban
Reply With Quote #6

Quote:
Originally Posted by lqlqlq View Post
I find a code
Code:
#include <amxmodx>

#define PLUGIN "Kicker"
#define VERSION "1.0.1"

new limit,g_MaxPlayers
public plugin_init()
{
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
limit = register_cvar("frags_limit","1")
g_MaxPlayers = get_maxplayers()
register_plugin(PLUGIN,VERSION,"Dr.One")
}
public event_new_round()
{
for(new id=1;id <= g_MaxPlayers;id++)
{
if(get_user_frags(id) >= get_pcvar_num(limit))
{
new nickname[32]
get_user_name(id, nickname, 31)
server_cmd("kick #%d",get_user_userid(id))
client_print(0,print_chat,"[PS-AC] %s kicked, reason: aimbot!",nickname)
}
}
}
but have one problem, when bomb explode - players get kicked, can you added some checks when bomb is exploded`d be disregarded frags as such.
Thanks!
Next time post with [php ] [ /php] (Remove the space)
__________________

Last edited by kramesa; 12-25-2011 at 22:48.
kramesa 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 20:58.


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