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

SF Warn Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-05-2016 , 11:45   SF Warn Menu
Reply With Quote #1

Menu for warning players before kick them. Support for ML and amx_show_activity.
Version: 0.1.4f 01.04.2016 [GIT]
Cvars

  • sf_warn_defact "kick [userid] [reason]" - command that server will execute on kick from menu::
    • [userid] - player userid (ex. #1337).
    • [authid] - player steamid (ex. STEAM_0:1:25876755)
    • [reason] - reason.
  • sf_warn_defact2 "kick [userid] [reason]" - command that server will execute after player reached maximum warnings count
    • [userid] - player userid (ex. #1337).
    • [authid] - player steamid (ex. STEAM_0:1:25876755)
    • [reason] - reason.
  • sf_warn_max "3" - maximum warnings count. Player warnings are saving for overall maptime by player's ip.
  • sf_warn_add "<reason name>;[hud text]" - command for define your reason. Should by in server.cfg. You can also use ML. Examples:
    • sf_warn_add "Noob;Delete Counter-Strike pls" - will add reason "Noob", with HUD hud message "Delete Counter-Strike pls".
    • sf_warn_add "WARN_REASON1;WARN_HUD1" - multilanguage reason. You should add lang key in sf_warn_menu.txt:
      • WARN_REASON1 = MID OR FEED
      • WARN_HUD1 = OMG REPORT
Commands

  • sf_warn_menu - opens players menu. Require ADMIN_KICK flag. You can also pass additional params:
    • sf_warn_menu "Player" - will open warn reason select menu for player Player.
    • sf_warn_menu #1337 "lalka" - will warn player with userid 1337 for reason lalka.
FAQ

  • How to set new access flag for menu?
  • You can change access flag in addons/amxmodx/configs/cmdaccess.ini:
  • How to set new access flag for kick players with immunity?
  • In plugin source code replace ADMIN_RCON for wanted access flag. You can check access flags in scripting/include/amxconst.inc file.
  • I want kick from menu and ban on warnings limit. How to do?
  • Set ban command in "sf_warn_defact2" cvar. Edit chat messages for ban in sf_warn_menu.txt:
    • WARN_TXT10 = ^1ADMIN: ban ^3%s^1 for ^4%L^
    • WARN_TXT11 = ^1ADMIN ^4%s^1: ban ^3%s^1 for ^4%L^1
Screenshots

Attached Files
File Type: sma Get Plugin or Get Source (sf_admin_warns.sma - 1195 views - 19.7 KB)
File Type: txt sf_warn_menu.txt (1.7 KB, 402 views)
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 04-13-2016 at 07:49.
GordonFreeman (RU) is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 04-11-2016 , 18:39   Re: SF Warn Menu
Reply With Quote #2

GJ.
Can you please change the russian comment into english.
Freezo Begin is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-11-2016 , 22:04   Re: SF Warn Menu
Reply With Quote #3

Quote:
Originally Posted by Freezo Begin View Post
GJ.
Can you please change the russian comment into english.
You can use google translate lol
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 04-12-2016 , 06:19   Re: SF Warn Menu
Reply With Quote #4

Quote:
Originally Posted by GordonFreeman (RU) View Post
You can use google translate lol
This must be your job lol

Last edited by Freezo Begin; 04-12-2016 at 10:49.
Freezo Begin is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-12-2016 , 09:58   Re: SF Warn Menu
Reply With Quote #5

Please change that yellow color. It's unreadable on my screen.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-12-2016 , 13:37   Re: SF Warn Menu
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
Please change that yellow color. It's unreadable on my screen.
Done.
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-13-2016 , 07:23   Re: SF Warn Menu
Reply With Quote #7

I don't know if you have some issues with your eyes, the current green is unreadable as well.
__________________
Arkshine is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-13-2016 , 07:50   Re: SF Warn Menu
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
I don't know if you have some issues with your eyes, the current green is unreadable as well.
XD
I'm just ctrl+c ctrl+v from my site lol
nobody complained about it on csstatsx sql post, so i guessed it ok
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 04-13-2016 at 07:51.
GordonFreeman (RU) is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-13-2016 , 08:12   Re: SF Warn Menu
Reply With Quote #9

I complained in my head, but was lazy to say it lol. Would be nice to change it on this plugin too.
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-14-2016 , 10:51   Re: SF Warn Menu
Reply With Quote #10

For me, green is perfectly readable.
__________________
HamletEagle 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:59.


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