Raised This Month: $51 Target: $400
 12% 

Kill 10 players = ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lqlqlq
Senior Member
Join Date: Jan 2008
Old 12-23-2011 , 14:36   Kill 10 players = ban
Reply With Quote #1

Can you give me a simple code about that ?

Last edited by lqlqlq; 12-23-2011 at 14:37.
lqlqlq is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-23-2011 , 14:51   Re: Kill 10 players = ban
Reply With Quote #2

10 team kills or anyone?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
lqlqlq
Senior Member
Join Date: Jan 2008
Old 12-23-2011 , 14:56   Re: Kill 10 players = ban
Reply With Quote #3

10 kills against the opposing team.
lqlqlq is offline
Old 12-23-2011, 15:34
bibu
This message has been deleted by bibu.
lqlqlq
Senior Member
Join Date: Jan 2008
Old 12-25-2011 , 12:45   Re: Kill 10 players = ban
Reply With Quote #4

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!
lqlqlq is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-25-2011 , 22:48   Re: Kill 10 players = ban
Reply With Quote #5

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
lqlqlq
Senior Member
Join Date: Jan 2008
Old 01-12-2012 , 11:34   Re: Kill 10 players = ban
Reply With Quote #6

Anyone ?

Last edited by lqlqlq; 02-04-2012 at 12:40.
lqlqlq is offline
Old 01-21-2012, 03:23
lqlqlq
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
lqlqlq
Senior Member
Join Date: Jan 2008
Old 02-04-2012 , 12:41   Re: Kill 10 players = ban
Reply With Quote #7

Bump the topic.
lqlqlq is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 02-04-2012 , 12:46   Re: Kill 10 players = ban
Reply With Quote #8

10 kills in 1 round ?
__________________
You can do anything you set your mind to, man.

Devil259 is offline
lqlqlq
Senior Member
Join Date: Jan 2008
Old 02-04-2012 , 12:52   Re: Kill 10 players = ban
Reply With Quote #9

Yep.
lqlqlq is offline
lqlqlq
Senior Member
Join Date: Jan 2008
Old 02-09-2012 , 17:36   Re: Kill 10 players = ban
Reply With Quote #10

Bump.
lqlqlq is offline
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 12:28.


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