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

[TF2] Admin warning (v1.7, 22/10/2017)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
91346706501435897134
Member
Join Date: Oct 2017
Plugin ID:
5864
Plugin Version:
v1.7
Plugin Category:
Admin Commands
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin allows admins to send a direct warning to a specified user.
    Old 10-17-2017 , 06:26   [TF2] Admin warning (v1.7, 22/10/2017)
    Reply With Quote #1

    Description
    This plugin allows admins to send a direct warning to a specified user.

    Commands
    sm_send_warning <name|#userid> <message> - Sends a warning to a specified user - ADMFLAG_CHAT
    sm_send_warn <name|#userid> <message> - Sends a warning to a specified user - ADMFLAG_CHAT
    sm_warn <name|#userid> <message> - Sends a warning to a specified user - ADMFLAG_CHAT

    ConVars
    *The plugin automatically creates a file called "plugin.admin_warning.cfg" in cfg/sourcemod where you can change the ConVars.
    sm_admin_warning_play_sound <1|0> - Play sound to client when message is send? (1 = on, 0 = off)

    Changelog
    Quote:
    22/10/2017 (v1.7)

    * Added new commands (sm_send_warn, sm_warn)

    22/10/2017 (v1.6)

    * Improved code.
    * Additional bug fixing.

    19/10/2017 (v1.5)

    * Added ConVar sm_admin_warning_play_sound.

    18/10/2017 (v1.4)

    * Minor code improvements.
    * sm_send_warning now requires ADMFLAG_CHAT (old flag: ADMFLAG_SLAY).

    18/10/2017 (v1.3)

    * Putting your message in parentheses if using more words is no longer needed.

    17/10/2017 (v1.2)

    * Now plays a sound to the target when the message is sent.

    17/10/2017 (v1.1)

    * Added logging.
    * Added support for multiple targets.
    * Now correctly handles input if no matching client is found.

    17/10/2017 (v1.0)

    * Initial release.
    Installation instructions
    Drop the sourcemod folder in your addons folder.

    Plans
    - Add more customization.

    Known bugs
    --- none at the moment ---

    Pictures

    Attached Files
    File Type: zip admin_warning.zip (19.5 KB, 743 views)

    Last edited by 91346706501435897134; 10-22-2017 at 15:34. Reason: 22/10/2017 (v1.7) update
    91346706501435897134 is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 10-17-2017 , 07:33   Re: [TF2] Admin warning (v1.0, 17/10/2017)
    Reply With Quote #2

    https://forums.alliedmods.net/showthread.php?p=1814821
    __________________
    Want to check my plugins ?
    Arkarr is offline
    91346706501435897134
    Member
    Join Date: Oct 2017
    Old 10-17-2017 , 08:15   Re: [TF2] Admin warning (v1.0, 17/10/2017)
    Reply With Quote #3

    Quote:
    Originally Posted by Arkarr View Post
    I created this plugin just for the sake of learning (this is my first), the one you linked is obviously superior compared to mine. But I thought this simple plugin might be just enough for some community servers.

    Last edited by 91346706501435897134; 10-17-2017 at 08:18.
    91346706501435897134 is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 10-17-2017 , 08:17   Re: [TF2] Admin warning (v1.0, 17/10/2017)
    Reply With Quote #4

    Quote:
    Originally Posted by 91346706501435897134 View Post
    I created this plugin just for the sake of learning (this is my first), The one you linked is obviously superior compared to mine. But I thought this simple plugin may be just enough for some community servers.
    I'm just pointing out that it's a base, add something that the other plugins doesn't have. So you can extend your skills.
    __________________
    Want to check my plugins ?
    Arkarr is offline
    91346706501435897134
    Member
    Join Date: Oct 2017
    Old 10-17-2017 , 08:24   Re: [TF2] Admin warning (v1.0, 17/10/2017)
    Reply With Quote #5

    Quote:
    Originally Posted by Arkarr View Post
    I'm just pointing out that it's a base, add something that the other plugins doesn't have. So you can extend your skills.
    That was the point of making this plugin, I will definitely add more features to the plugin.
    91346706501435897134 is offline
    91346706501435897134
    Member
    Join Date: Oct 2017
    Old 10-17-2017 , 10:33   update 1.1
    Reply With Quote #6

    update 1.1

    Quote:
    * Added logging.
    * Added support for multiple targets.
    * Now correctly handles input if no matching client is found.

    Last edited by 91346706501435897134; 10-17-2017 at 19:15.
    91346706501435897134 is offline
    ThatKidWhoGames
    Veteran Member
    Join Date: Jun 2013
    Location: IsValidClient()
    Old 10-17-2017 , 13:16   Re: [TF2] Admin warning (v1.1, 17/10/2017)
    Reply With Quote #7

    Good job for first plugin!
    ThatKidWhoGames is offline
    91346706501435897134
    Member
    Join Date: Oct 2017
    Old 10-17-2017 , 14:09   Re: [TF2] Admin warning (v1.1, 17/10/2017)
    Reply With Quote #8

    Quote:
    Originally Posted by ThatKidWhoGames View Post
    Good job for first plugin!
    Thanks
    91346706501435897134 is offline
    depthbomb
    Junior Member
    Join Date: Jul 2014
    Old 10-17-2017 , 14:15   Re: [TF2] Admin warning (v1.1, 17/10/2017)
    Reply With Quote #9

    I've been looking for a warning plugin that actually shows your message to the player. I eagerly await the sound feature.

    Edit: it seems that you are unable to send warnings that contain more than one word. Doing so shows the usage text as seen below

    __________________

    Last edited by depthbomb; 10-17-2017 at 14:55.
    depthbomb is offline
    91346706501435897134
    Member
    Join Date: Oct 2017
    Old 10-17-2017 , 14:58   Re: [TF2] Admin warning (v1.1, 17/10/2017)
    Reply With Quote #10

    Quote:
    Originally Posted by depthbomb View Post
    I've been looking for a warning plugin that actually shows your message to the player. I eagerly await the sound feature.

    Edit: it seems that you are unable to send warnings that contain more than one word. Doing so shows the usage text as seen below

    To send a message using more words you need to put the message in parentheses.
    example: sm_send_warning x "hello x"
    91346706501435897134 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 17:02.


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