AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Kill 10 players = ban (https://forums.alliedmods.net/showthread.php?t=174681)

lqlqlq 12-23-2011 14:36

Kill 10 players = ban
 
Can you give me a simple code about that ?

wickedd 12-23-2011 14:51

Re: Kill 10 players = ban
 
10 team kills or anyone?

lqlqlq 12-23-2011 14:56

Re: Kill 10 players = ban
 
10 kills against the opposing team.

lqlqlq 12-25-2011 12:45

Re: Kill 10 players = ban
 
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!

kramesa 12-25-2011 22:48

Re: Kill 10 players = ban
 
Quote:

Originally Posted by lqlqlq (Post 1619459)
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)

lqlqlq 01-12-2012 11:34

Re: Kill 10 players = ban
 
Anyone ?

lqlqlq 02-04-2012 12:41

Re: Kill 10 players = ban
 
Bump the topic.

Devil259 02-04-2012 12:46

Re: Kill 10 players = ban
 
10 kills in 1 round ?

lqlqlq 02-04-2012 12:52

Re: Kill 10 players = ban
 
Yep.

lqlqlq 02-09-2012 17:36

Re: Kill 10 players = ban
 
Bump.


All times are GMT -4. The time now is 20:58.

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