Raised This Month: $ Target: $400
 0% 

Kill 10 players = ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lqlqlq
Senior Member
Join Date: Jan 2008
Old 02-09-2012 , 17:36   Re: Kill 10 players = ban
Reply With Quote #1

Bump.
lqlqlq is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-09-2012 , 17:59   Re: Kill 10 players = ban
Reply With Quote #2

Don't bump until 2 weeks have passed since last post.

Regardless, here's your plugin:

Code:
#include <amxmodx> #define MAX_PLAYERS 32 new gKills[MAX_PLAYERS + 1]; new gCvarMaxKills; new gMaxPlayers; public plugin_init() {     register_plugin("Max Round Kills", "0.0.1", "Exolent");         register_event("DeathMsg", "EventDeathMsg", "a", "2!0");         register_event("HLTV", "EventNewRound", "a", "1=0", "2=0");         gCvarMaxKills = register_cvar("max_round_kills", "10");         gMaxPlayers = get_maxplayers(); } public client_disconnect(id) {     gKills[id] = 0; } public EventNewRound() {     arrayset(gKills, 0, sizeof(gKills)); } public EventDeathMsg() {     new killer = read_data(1);         if(1 <= killer <= gMaxPlayers) {         new victim = read_data(2);                 if(killer != victim         && get_user_team(killer) != get_user_team(victim)         && ++gKills[killer] >= get_pcvar_num(gCvarMaxKills)) {             server_cmd("kick #%d ^"Stop cheating!^"", get_user_userid(killer));         }     } }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 20:58.


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