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

Simple AFK Manager [ver. 2.3]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 11-30-2009 , 14:29   Simple AFK Manager [ver. 2.3]
Reply With Quote #1

Simple AFK Manager
By [gm-project.net] #Staff

About developers:
  • Author: [gm-project.net] #Staff
  • Actual version: 2.3

Description:
Need a simple AFK kicker? We created it for you! This plugin is different from the others, similar in purpose, in its simplicity. He has 5 CVAR's (ver. 0.1.1), "it is not enough for these plugins", say you. No, this is the time to adjust AFK kicker as you want.
Requiments:
  • amxmodx
  • fakemeta

CVARs:
  • afk_kick_reason (default: AFK): reason, shown the player after kick.
  • afk_time (default: 60): time, after which the player will be kicker from the server.
  • afk_spec_time (default: 180): time on spectators before kick.
  • afk_report (default: 2): display messages about kick.
    • 0 - off.
    • 1 - admins.
    • 2 - all.
  • afk_info_time (default: 20): time to kick, when written warnings.
  • afk_immunity_flag (default: b): what flag must have user to not be kicked.
  • afk_kick_bots (default: 0): kick bots or not?
  • afk_kick_hltv (default: 0): kick HLTV or not?

Translations:
Credits:
Changelog:
  • ver. 0.2:
    [+] Added cvars afk_immunity_flag && afk_kick_bots.
    [+] Add pcvar afk_version.
  • ver. 0.2.1:
    [R] Replaced pcvar afk_version to mafk_version. Because another plugins so used this pcvar.
  • ver. 2.0:
    [+] Fixed situation, when kick hltv && bots.
    [R] Replaced SAFK-M to SAM.
    [+] Added multilang.
  • ver. 2.1:
    [+] Fixed dead player's kick.
  • ver. 2.2:
    [+] If the CVARs afk_time && afk_spec_time is set to 0, the function is disabled.
    [+] Added LT translation, thanks Lure.d.
  • ver. 2.2a:
    [+] Small optimizion. Very small
  • ver. 2.3:
    [+] Added cvar afk_showmsg: if 1, on start round to all players show msg, how many players are AFK on both teams (T, CT).
    [R] Replaced MSG_ONE_UNRELIABLE to MSG_ONE

Servers with running Simple AFK Manager.

Prefix:
Code:
#define PREFIX "SAM"
Change SAM for your prefix, if u want
Attached Files
File Type: sma Get Plugin or Get Source (sam.sma - 2826 views - 3.7 KB)
File Type: txt sam.txt (2.1 KB, 1419 views)
__________________

Last edited by a.aqua; 05-14-2010 at 12:57. Reason: Update: version 2.3
a.aqua is offline
Send a message via ICQ to a.aqua
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 11-30-2009 , 15:50   Re: Simple AFK Manager
Reply With Quote #2

Can you make immunity for admins and bots please?
KadiR is offline
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 11-30-2009 , 16:01   Re: Simple AFK Manager
Reply With Quote #3

Bots: ok, i'm make.
Admins:
Quote:
if (is_user_connected(i) && !(get_user_flags(i) & ADMIN_IMMUNITY))
__________________
a.aqua is offline
Send a message via ICQ to a.aqua
Lambor
Member
Join Date: Aug 2009
Old 11-30-2009 , 18:55   Re: Simple AFK Manager
Reply With Quote #4

you should put a cvar for admins immunity
nice plugin
Lambor is offline
Old 12-01-2009, 12:19
a.aqua
This message has been deleted by a.aqua. Reason: Not actual information
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-01-2009 , 13:24   Re: Simple AFK Manager [ver. 0.2]
Reply With Quote #5

Nice update, but I would make the default value of
Quote:
afk_immunity_flag
to flag A, cause A is already the flag for immunity.
KadiR is offline
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 12-01-2009 , 13:32   Re: Simple AFK Manager [ver. 0.2]
Reply With Quote #6

Quote:
Originally Posted by KadiR View Post
Nice update, but I would make the default value of to flag A, cause A is already the flag for immunity.
Hmm, change in .sma file cvar and compile.

Or add afk_immunity_flag "a" into amxx.cfg.
__________________

Last edited by a.aqua; 12-01-2009 at 14:28.
a.aqua is offline
Send a message via ICQ to a.aqua
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-01-2009 , 16:02   Re: Simple AFK Manager [ver. 0.2]
Reply With Quote #7

I know how to change it, but as the flag a is the default value for immunity, it would be better if you use the a flag. But nvm, it's just my opinion.
KadiR is offline
Lambor
Member
Join Date: Aug 2009
Old 12-01-2009 , 18:43   Re: Simple AFK Manager [ver. 0.2]
Reply With Quote #8

a.aqua RULEEEEEZZZZZZZZZ [IMG]http://img34.**************/img34/2157/eea.gif[/IMG][IMG]http://img34.**************/img34/2157/eea.gif[/IMG] nice plugin really perfect !! thx
Lambor is offline
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 12-02-2009 , 00:24   Re: Simple AFK Manager [ver. 0.2]
Reply With Quote #9

Quote:
Originally Posted by KadiR View Post
I know how to change it, but as the flag a is the default value for immunity, it would be better if you use the a flag. But nvm, it's just my opinion.
In attach version for flag "a".
But on my servers, i don't give users flag "a", but i give "b" (reserv. slot), ir is the best solution, I think so
Attached Files
File Type: sma Get Plugin or Get Source (simpleafkmanager_kadir.sma - 1254 views - 2.8 KB)
__________________
a.aqua is offline
Send a message via ICQ to a.aqua
Lambor
Member
Join Date: Aug 2009
Old 12-02-2009 , 00:49   Re: Simple AFK Manager [ver. 0.2]
Reply With Quote #10

you should add a cvar for immunity in the HLTV, should be immune and reminds viewers that there is always
Lambor 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 04:57.


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