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

Play or Be Kicked 1.5.243


Post New Thread Reply   
 
Thread Tools Display Modes
xClaw
Member
Join Date: Feb 2010
Old 04-25-2010 , 15:39   Re: Play or Be Kicked 1.5.243
Reply With Quote #431

] status
Quote:
hostname: | r3v | Revolution Clan Server [Admin On=FUN] (Timeleft 24:03)
version : 48/1.1.2.6/Stdio 4617 secure (10)
tcp/ip : 188.93.232.1056161
map : de_dust2 at: 0 x, 0 y, 0 z
players : 1 active (10)

] meta list
Currently running plugins:
Quote:
[ 1] AMX Mod X, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 2] Fun, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 3] Engine, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 4] FakeMeta, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 5] CStrike, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org
[ 6] CSX, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org/
[ 7] Ham Sandwich, v1.8.1.3746, Aug 16 2008, by AMX Mod X Dev Team, see http://www.amxmodx.org



] rcon amxx plugins
Currently loaded plugins:
name version author file status
Quote:
[ 1] Awp Spawn Fixer 2.0 GHW_Chronic GHW_Awp_Map_Han running
[ 2] Hostname Timeleft 1.0 xPaw HostnameTimelef running
[ 3] Knife Fight 1.5 alan_el_more Knife_Fight.amx running
[ 4] Admin Base 1.8.1.3746 AMXX Dev Team admin.amxx running
[ 5] Admin Chat Colors 2.0 Arion admin_chat_colo running
[ 6] Admin Check 1.51 OneEyed admin_check.amx running
[ 7] Admin Free Look 2.0 Jim admin_freelook. running
[ 8] Admin Chat 1.8.1.3746 AMXX Dev Team adminchat.amxx running
[ 9] Admin Commands 1.8.1.3746 AMXX Dev Team admincmd.amxx running
[ 10] Admin Help 1.8.1.3746 AMXX Dev Team adminhelp.amxx running
[ 11] Slots Reservation 1.8.1.3746 AMXX Dev Team adminslots.amxx running
[ 12] Admin Votes 1.8.1.3746 AMXX Dev Team adminvote.amxx running
[ 13] Advanced Bans 0.8 Exolent advanced_bans.a running
[ 14] AMX Mod Compat Engine 1.76.rc4 AMXX Dev Team amxmod_compat.a running

[ 15] Anti-Spawnkill God 1.0 Grinf4ce anti_spawnkill_ running
[ 16] Anti Flood 1.8.1.3746 AMXX Dev Team antiflood.amxx running
[ 17] ATAC 3.0.1 ATAC Team atac.amxx paused
[ 18] Blind 1.0 ATAC Team atac_blind.amxx running
[ 19] Timebomb 1.1 ATAC Team atac_bomb.amxx running
[ 20] Bury 1.0 ATAC Team atac_bury.amxx running
[ 21] ATAC Commands 1.1 ATAC Team atac_cmds.amxx running
[ 22] Drop 1.0 ATAC Team atac_drop.amxx running
[ 23] Drug 1.0 ATAC Team atac_drug.amxx running
[ 24] Fire 1.0 ATAC Team atac_fire.amxx running
[ 25] Glow 1.0 ATAC Team atac_glow.amxx running
[ 26] Hud Messages 1.1 ATAC Team atac_hudmsg.amx running
[ 27] Jail 1.1 ATAC Team atac_jail.amxx running
[ 28] Rocket 1.0 ATAC Team atac_rocket.amx running
[ 29] Slap 1.1 ATAC Team atac_slap.amxx running

[ 30] Slap2One 1.1 ATAC Team atac_slap2one.a running
[ 31] Slay 1.1 ATAC Team atac_slay.amxx running
[ 32] Spawn Slay 1.0 ATAC Team atac_spawnslay. running
[ 33] Team Attack 1.0 ATAC Team atac_ta.amxx running
[ 34] Automatic knife duel 0.3 JGHG automatic_knife running
[ 35] Bad Camper 1.4 beta Brad Jones bad_camper.amxx running
[ 36] Commands Menu 1.8.1.3746 AMXX Dev Team cmdmenu.amxx running
[ 37] Connection messages 1.2 Lure.d connect_message running
[ 38] Drop All Weapons On De 0.1.5 ConnorMcLeod death_weapons_d running
[ 39] Galileo 1.1.290 Brad Jones galileo.amxx running
[ 40] Guardian 1.42 XzaR guardian.amxx running
[ 41] Info. Messages 1.8.1.3746 AMXX Dev Team imessage.amxx running
[ 42] Instant AutoTeamBalanc 1.2.0 ConnorMcLeod instant_autotea running
[ 43] Maps Menu 1.8.1.3746 AMXX Dev Team mapsmenu.amxx running
[ 44] Menus Front-End 1.8.1.3746 AMXX Dev Team menufront.amxx running

[ 45] CS Misc. Stats 1.8.1.3746 AMXX Dev Team miscstats.amxx running
[ 46] Multi-Lingual System 1.8.1.3746 AMXX Dev Team multilingual.am running
[ 47] Pause Plugins 1.8.1.3746 AMXX Dev Team pausecfg.amxx running
[ 48] Play or Be Kicked 1.5.243 Brad Jones pbk.amxx running
[ 49] Players Menu 1.8.1.3746 AMXX Dev Team plmenu.amxx running
[ 50] Plugin Menu 1.8.1.3746 AMXX Dev Team pluginmenu.amxx running
[ 51] Restrict Weapons 1.8.1.3746 AMXX Dev Team restmenu.amxx running
[ 52] Scrolling Message 1.8.1.3746 AMXX Dev Team scrollmsg.amxx running
[ 53] Show Team-Attack 1.2 n!nja showteamattack. running
[ 54] CS Stats Logging 1.8.1.3746 AMXX Dev Team stats_logging.a running
[ 55] Stats Configuration 1.8.1.3746 AMXX Dev Team statscfg.amxx running
[ 56] StatsX 1.8.1.3746 AMXX Dev Team statsx.amxx running
[ 57] Survivor 1.0 beybe survivor.amxx running
[ 58] Teleport Menu 1.8.1.3746 AMXX Dev Team telemenu.amxx running
[ 59] TimeLeft 1.8.1.3746 AMXX Dev Team timeleft.amxx running
[ 60] Ultimate Revive 1.1 anakin_cstrike ut_revive.amxx running
60 plugins, 59 running

] rcon amxx cvars
Registered cvars:

Quote:
None for PBK

I'm having a problem while running this plugin.
If only 1 player is alive on one of the teams and that player is kicked by being AFK, the round doesn't end.
And on the next round, it automatically restarts the round.

Am I doing anything wrong?
xClaw is offline
Moff
Junior Member
Join Date: Sep 2009
Location: Saint Petersburg, Russia
Old 04-26-2010 , 04:06   Re: Play or Be Kicked 1.5.243
Reply With Quote #432

Hello.
Thanks for the plugin Brad, it works great on my server, although i have a few minor problems with it.

First problem is that a player won't get kicked from spec as if he had an immunity or something. The chat message abouth him being kicked appears every seconds, yet he stays on a server. I have altered the source though for a plugin to switch AFK to spec insted of kicking him, but it doesn't seem to be an issue.
But just in case, here's the altered part of a code:
Code:
public handle_time_elapsed(id, eventType)
{
	new warningFlag = get_pcvar_num(g_cvar_immunityWarning);
	new maxSeconds, elapsedSeconds, eventImmunity, showWarning;
	if (eventType == EVENT_JOIN)
	{
		maxSeconds = get_pcvar_num(g_cvar_joinTime);
		elapsedSeconds = g_timeJoin[id];
		eventImmunity = has_flag(id, g_joinImmunity);
		showWarning = eventImmunity ? warningFlag & EVENT_JOIN : 1;
	}
	else if (eventType == EVENT_SPEC)
	{
		maxSeconds = get_pcvar_num(g_cvar_specTime);
		elapsedSeconds = g_timeSpec[id];
		eventImmunity = has_flag(id, g_specImmunity);
		showWarning = eventImmunity ? warningFlag & EVENT_SPEC : 1;
	}
	else if (eventType == EVENT_AFK)
	{
		maxSeconds = get_pcvar_num(g_cvar_afkTime);
		elapsedSeconds = g_timeAFK[id];
		eventImmunity = has_flag(id, g_afkImmunity);
		showWarning = eventImmunity ? warningFlag & EVENT_AFK : 1;
	}
	else return;
	
	new warningStartSeconds = maxSeconds - get_pcvar_num(g_cvar_warningTime);
	
	if (elapsedSeconds >= maxSeconds && eventType == EVENT_AFK) 
	{
		// if players have immunity for this event abort
		if (eventImmunity) return;

		// get the correct message formats for this event type
		new msgReason[32], msgAnnounce[32];
		switch (eventType)
		{
			case EVENT_AFK:
			{
				copy(msgReason, 31, "KICK_AFK_REASON");
				copy(msgAnnounce, 31, "KICK_AFK_ANNOUNCE");
			}
		}

		new maxTime[128];
		get_time_length(id, maxSeconds, timeunit_seconds, maxTime, 127);

		new kick2ip[32];
		get_pcvar_string(g_cvar_kick2ip, kick2ip, sizeof(kick2ip)-1);

		client_cmd(id,"kill; wait; jointeam 6");
	            g_timeAFK[id] = 0;

		// announce the kick to the rest of the world
		new players[32], playerCnt;
		get_players(players, playerCnt, "c");
		new playerName[32];
		get_user_name(id, playerName, 31);
		new playerID;

		for (new playerIdx = 0; playerIdx < playerCnt; playerIdx++)
		{
			playerID = players[playerIdx];
			get_time_length(playerID, maxSeconds, timeunit_seconds, maxTime, 127);
			client_print(playerID, print_chat, "[PBK] %L", playerID, msgAnnounce, playerName, maxTime);
		}
	}

	else if (elapsedSeconds >= maxSeconds) 
	{
		// if players have immunity for this event abort
		if (eventImmunity) return;

		// get the correct message formats for this event type
		new msgReason[32], msgAnnounce[32];
		switch (eventType)
		{
			case EVENT_JOIN:
			{
				copy(msgReason, 31, "KICK_JOIN_REASON");
				copy(msgAnnounce, 31, "KICK_JOIN_ANNOUNCE");
			}
			case EVENT_SPEC:
			{
				copy(msgReason, 31, "KICK_SPEC_REASON");
				copy(msgAnnounce, 31, "KICK_SPEC_ANNOUNCE");
			}
		}

		new maxTime[128];
		get_time_length(id, maxSeconds, timeunit_seconds, maxTime, 127);

		new kick2ip[32];
		get_pcvar_string(g_cvar_kick2ip, kick2ip, sizeof(kick2ip)-1);

		if (kick2ip[0] == 0)
		{
			// kick the player into the nether
			server_cmd("kick #%d %L", get_user_userid(id), id, msgReason, maxTime);
		}
		else
		{
			// kick the player into another server
			new kick2port[16];
			get_pcvar_string(g_cvar_kick2port, kick2port, sizeof(kick2port)-1);
	
			client_cmd(id, "connect %s:%s", kick2ip, kick2port);
		}

		// announce the kick to the rest of the world
		new players[32], playerCnt;
		get_players(players, playerCnt, "c");
		new playerName[32];
		get_user_name(id, playerName, 31);
		new playerID;

		for (new playerIdx = 0; playerIdx < playerCnt; playerIdx++)
		{
			playerID = players[playerIdx];
			get_time_length(playerID, maxSeconds, timeunit_seconds, maxTime, 127);
			client_print(playerID, print_chat, "[PBK] %L", playerID, msgAnnounce, playerName, maxTime);
		}

		// log the kick
		new logFlags = get_pcvar_num(g_cvar_log);
		if (logFlags)
		{
			get_time_length(0, maxSeconds, timeunit_seconds, maxTime, 127);
			
			new logText[128];
			format(logText, 127, "%L", LANG_SERVER, msgAnnounce, "", maxTime);
			// remove the single space that not providing a name added
			trim(logText);
			
			create_log_entry(id, "PBK", logFlags, logText);
		}
	}
Could it be that the client somehow blocks the connect command, as i'm using kick2ip feature?

*edit*
Apparently it does, so if anyone experiencing this problems using kick2ip feature, try changing this part of the code:
Code:
client_cmd(id, "connect %s:%s", kick2ip, kick2port);
into this:
Code:
client_cmd(id, "Connect %s:%s", kick2ip, kick2port);
And another problem that's been reported to me by a few players is that sometimes a "ghost player" appears in game. He is invisible, you can't see him on a scoreboard, but the round won't end untill he's dead. I mean if this ghost player is a terrorist, and CT's have killed every other terrorist, they have to come to a T's spawn, find this invisible player somehow and kill him in order for a round to end.
Now i'm not 100% positive that it's PBK that causing this bug, but i haven't seen it happening untill i installed PBK, and i remember playing on another server that used PBK as well, and this bug happend there too. It is rare, but it might get pretty annoying if there's no admin on a server to kick this ghost.

But, anyway, this plugin seems to be the best AFK manager out here nonetheless, thanks again.

Last edited by Moff; 04-26-2010 at 07:14.
Moff is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 04-27-2010 , 05:03   Re: Play or Be Kicked 1.5.243
Reply With Quote #433

Quote:
Originally Posted by Slate View Post
yes, it's true. if you don't choose a class (leet, etc.) , you aren't kicked. I have the same problem. Can be fixed by Team locker or any other locker plugin
Quote:
Originally Posted by Brad View Post
Can you link me to one that you say fixes the issue?
lol, not seen that plugin before , but you will find a solution here. I use this plugin since 2 1/2 years.

Regards
Leon
Leon M. is offline
SkiesOFF
Member
Join Date: Mar 2008
Old 07-04-2010 , 02:56   Re: Play or Be Kicked 1.5.243
Reply With Quote #434

Thanks for the plugin, is working great with no bugs in my server but there is a little problem.

Some players in my server, to avoid getting kick by afk, put weights on the keyboard, so the player start spinning in a circle and the plugin don't kick him.

what can i do? =/

sorry for the bad english
SkiesOFF is offline
oglop
Member
Join Date: Jul 2010
Location: Czech Republic
Old 07-28-2010 , 09:37   Re: Play or Be Kicked 1.5.243
Reply With Quote #435

čeština
CZEch language
cz, CZE [>--]

Code:
[cz]
KICK_JOIN_WARNING = Mas %s na zvoleni tym nebo budes vyhozen.
KICK_JOIN_REASON = Nezvolil jsi tym %s.
KICK_JOIN_ANNOUNCE = %s byl vyhozen, protoze si nevybral tym dele nez %s.
KICK_SPEC_WARNING = Mas %s na pripojeni do tymu, jinak budes vyhozen za dlouhe pozorovani(spec).
KICK_SPEC_REASON = Pozorujes(spec) dele nez %s.
KICK_SPEC_ANNOUNCE = %s byl vyhozen za pozorovani(spec) delsi nez %s.
KICK_AFK_WARNING = Mas %s na to, aby jsi zacal hrat, jinak budes vyhozen za AFK.
KICK_AFK_REASON = Byl jsi AFK dele nez %s.
KICK_AFK_ANNOUNCE = %s byl vyhozen, protoze byl AFK dele nez %s.
Time_leght.txt


Code:
[cz]
TIME_ELEMENT_SECOND = sekunda
TIME_ELEMENT_SECONDS = sekund
TIME_ELEMENT_MINUTE = minuta
TIME_ELEMENT_MINUTES = minutt
TIME_ELEMENT_HOUR = hodina
TIME_ELEMENT_HOURS = hodin
TIME_ELEMENT_DAY = den
TIME_ELEMENT_DAYS = dny(u)
TIME_ELEMENT_WEEK = tyden
TIME_ELEMENT_WEEKS = tydny(u)
TIME_ELEMENT_PERMANENTLY = permanentne
TIME_ELEMENT_AND = a

Last edited by oglop; 07-28-2010 at 09:59.
oglop is offline
borioli
Junior Member
Join Date: Jan 2010
Location: São Paulo - SP - Brasil
Old 11-06-2010 , 19:19   Re: Play or Be Kicked 1.5.243
Reply With Quote #436

How can immunize the admins? Tell me how i do this. Thank you! ;)
borioli is offline
Send a message via MSN to borioli Send a message via Skype™ to borioli
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-08-2010 , 21:18   Re: Play or Be Kicked 1.5.243
Reply With Quote #437

Quote:
Originally Posted by borioli View Post
How can immunize the admins? Tell me how i do this. Thank you! ;)
Quote:
Originally Posted by Brad View Post

Options (CVARs)

Code:
// Specifies the access level flags needed for a player to have 
// immunity for the 'join' event.  Having immunity means the player 
// would not get kicked for failing to join a team.
// 
// Set this CVAR to blank to disallow immunity.
//    
// For available flags,
// http://wiki.amxmodx.org/index.php/Ad...#Access_Levels
//            
// A common value, when admin immunity is desired, is to use the 
// "a" flag (ADMIN_IMMUNITY).
pbk_join_immunity_flags ""

// Specifies the access level flags needed for a player to have 
// immunity for the 'spec' event.  Having immunity means the player 
// would not get kicked for being in spectator mode too long.
// 
// Set this CVAR to blank to disallow immunity.
//    
// For available flags,
// http://wiki.amxmodx.org/index.php/Ad...#Access_Levels
//            
// A common value, when admin immunity is desired, is to use the 
// "a" flag (ADMIN_IMMUNITY).
pbk_spec_immunity_flags ""

// Specifies the access level flags needed for a player to have 
// immunity for the 'afk' event.  Having immunity means the player 
// would not get kicked for being AFK too long.
// 
// Set this CVAR to blank to disallow immunity.
//    
// For available flags,
// http://wiki.amxmodx.org/index.php/Ad...#Access_Levels
//            
// A common value, when admin immunity is desired, is to use the 
// "a" flag (ADMIN_IMMUNITY).
pbk_afk_immunity_flags ""
__________________
Brad is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-08-2010 , 21:22   Re: Play or Be Kicked 1.5.243
Reply With Quote #438

Quote:
Originally Posted by SkiesOFF View Post
Thanks for the plugin, is working great with no bugs in my server but there is a little problem.

Some players in my server, to avoid getting kick by afk, put weights on the keyboard, so the player start spinning in a circle and the plugin don't kick him.
what can i do? =/
Manually ban them when you see them.

In theory, the code could be altered to consider them as AFK (assuming you're correct in that it doesn't) but I'm not actively maintaining my plugins anymore and no one has offered to pick this one up (not that I've asked anyone).
Brad is offline
qnkov
Member
Join Date: Dec 2010
Old 01-26-2011 , 11:25   Re: Play or Be Kicked 1.5.243
Reply With Quote #439

I just installed that plugin into my server which is using 1.80 amxmodx. And when i saved plugins.ini my server crashed in the moment with that error [IMG]http://img153.**************/img153/2752/52667416.png[/IMG]

Uploaded with **************

I even used your default settings and still the same?
qnkov is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 01-26-2011 , 13:04   Re: Play or Be Kicked 1.5.243
Reply With Quote #440

qnkov
no-steam = no support
__________________

Mordekay 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 03:49.


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