Raised This Month: $32 Target: $400
 8% 

Advanced Menu Say for Admins, Non-Admins, Private MSG & Coloured Hud Say [17 Jun 09]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Plugin ID:
412
Plugin Version:
2.1
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Advanced menus to contact admins, non admins, a clearer method of sending private messages and *NEW* sm_hudsay !
    Old 06-05-2008 , 16:25   Advanced Menu Say for Admins, Non-Admins, Private MSG & Coloured Hud Say [17 Jun 09]
    Reply With Quote #1

    Advanced Menu Say for Admins Only, Non-Admins & Private Messages

    What does it do & Why?
    This plugin creates menu messages, just like sm_msay does in the base SM commands, but this plugin builds upon these and adds FOUR new commands:

    sm_amsay <message> - sends message as a menu panel to admins only
    Enables an admin to send a 'menu' message to just other admins with the ADMIN_CHAT flag enabled

    sm_pmsay <name or #userid> <message> - sends private message as a menu panel
    Because the private message system in the SM base chat commands prints a single message in the chat which gets spammed to hell and lost in the rest of the chat (I hate it, you might as well mash the keyboard), this plugin makes a menu for that as well!

    sm_namsay
    <message> - sends message to non-admins as a menu panel
    I've added this for messaging non-admins in a menu panel as well.

    sm_hudsay [colour] <message>
    This is new in v2.1 and is purely thanks to spotting this in the the spray tracer plugin by nican.

    This adds in orangebox games like TF2 and DOD:S, the ability to use hud messages, like were in HL:1 from AMX MOD and AdminMod.

    Valid colours: White, Red, Green, Blue, Yellow, Purple, Cyan, Orange, Pink, Olive, Lime, Violet, Lightblue

    What does it look like?
    Here are two examples of it in action, just think how many times your message has been missed!

    sm_pmsay J!m "oi j!m ya num nut can you see this?"



    sm_amsay "Slap the crap out of j!m next round?"



    sm_hudsay green This is a test message



    Commands
    sm_mpsay_version
    - Duh
    sm_pmsay <name or #userid> <message> - sends private message as a menu panel
    sm_amsay <message> - sends message to admins as a menu panel
    sm_namsay <message> - sends message to non-admins as a menu panel
    sm_hudsay [colour] <message> - sends message to non-admins as a menu panel

    Installation
    Pop the smx file in your <mod dir>/sourcemod/plugins/ directory and change maps.

    Requires
    Sourcemod 1.1 or newer

    Thanks to...
    Tsunami for my n00b questions

    Version History
    1.0 - First release
    1.1 - Fixed nub mistakes
    1.2 - Added sm_namsay for messaging non admins
    2.0 - A tidy up and took 3 functions and made them into one, passing an "identifier" for each option. My n00b coding skills are getting better!
    2.1 - resolved MaxClients issue and added sm_hudsay

    Suggestions?
    I can only think that you may want to address non admins, which I'll add later... DONE in V2.0

    Enjoy!
    Attached Files
    File Type: sp Get Plugin or Get Source (advanced-chat-menus.sp - 3227 views - 10.1 KB)
    __________________

    Last edited by MoggieX; 06-17-2009 at 11:28.
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    SixSicSix
    Senior Member
    Join Date: Jan 2008
    Old 06-05-2008 , 16:29   Re: Menu Say for Admins Only & Private Messages V1.0 [5 Jun 08]
    Reply With Quote #2

    I have a suggestion:

    Allow admins to initiate 1 on 1 private chat with any other player/admin. When the other player types in either team or normal chat, it goes only to the admin with whom the chat is initiated. Just like SourceOP.
    SixSicSix is offline
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 06-05-2008 , 16:32   Re: Menu Say for Admins Only & Private Messages V1.0 [5 Jun 08]
    Reply With Quote #3

    Quote:
    Originally Posted by SixSicSix View Post
    I have a suggestion:

    Allow admins to initiate 1 on 1 private chat with any other player/admin. When the other player types in either team or normal chat, it goes only to the admin with whom the chat is initiated. Just like SourceOP.
    Sorry, that is beyond my copy/paste abilities, if anyone wants to point me in the right direction, I'll have a stab at it though.

    Actually, would something like this be useful?

    In chat: !helpme can an admin help me please?
    Then a menu to admins is created?

    Matt
    __________________

    Last edited by MoggieX; 06-05-2008 at 16:35. Reason: nub cakes
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    SixSicSix
    Senior Member
    Join Date: Jan 2008
    Old 06-05-2008 , 16:36   Re: Menu Say for Admins Only & Private Messages V1.0 [5 Jun 08]
    Reply With Quote #4

    http://forums.alliedmods.net/showthr...072#post635072
    SixSicSix is offline
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 06-05-2008 , 16:39   Re: Menu Say for Admins Only & Private Messages V1.0 [5 Jun 08]
    Reply With Quote #5

    Quote:
    Originally Posted by SixSicSix View Post
    That requires an understanding of sourcepawn that I do not have

    Matt
    __________________
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 06-05-2008 , 17:27   Re: Menu Say for Admins Only & Private Messages V1.1 [5 Jun 08]
    Reply With Quote #6

    Nice! We actually did this in supermenu months ago. We went as far as to do sm_csay and sm_hsay for messages such as "rescue the hostages", "Plant the bomb", and "Get out of Spawn" as a few examples.

    Cool plugin.

    Otto
    ottobohn is offline
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 06-05-2008 , 18:29   Re: Menu Say for Admins Only & Private Messages V1.1 [5 Jun 08]
    Reply With Quote #7

    Quote:
    Originally Posted by ottobohn View Post
    Nice! We actually did this in supermenu months ago. We went as far as to do sm_csay and sm_hsay for messages such as "rescue the hostages", "Plant the bomb", and "Get out of Spawn" as a few examples.

    Cool plugin.

    Otto
    Yea, I got fed up of the poor messaging colours in CSS, you can;t miss a menu!

    Matt
    __________________
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 06-09-2008 , 08:12   Re: Menu Say for Admins Only & Private Messages V1.2 [5 Jun 08]
    Reply With Quote #8

    I think I can make this plugin work more cleanly, with if statements inside a single function, rather than using multiple functions that is bloating it.

    Will post an updated version when complete

    Matt
    __________________
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 06-09-2008 , 13:39   Re: Menu Say for Admins Only & Private Messages V1.2 [5 Jun 08]
    Reply With Quote #9

    Quote:
    Originally Posted by MoggieX View Post
    I think I can make this plugin work more cleanly, with if statements inside a single function, rather than using multiple functions that is bloating it.

    Will post an updated version when complete

    Matt
    Done and uploaded

    Matt
    __________________
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 06-09-2008 , 14:30   Re: Advanced Menu Say for Admins Only, Non-Admins & Private Messages V2.0 [9 Jun 08]
    Reply With Quote #10

    This is really good. I hope they add this to the core.

    Otto
    ottobohn is offline
    Reply


    Thread Tools
    Display Modes

    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 16:32.


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