Raised This Month: $188 Target: $400
 47% 

[ANY] Marquee (Version 1.0) - Send running text through a panel


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Plugin ID:
2524
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    33 
    Plugin Description:
    Send players a big text running through the menu.
    Old 08-29-2011 , 09:17   [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #1

    Marquee

    This plugin allows you to send a running text to some players screen in a panel. It'll scroll from right to left which is pretty eye catching.
    I got the idea and borrowed the l33t font from an eventscript called runningline by sega74rus. He has some great ideas

    There's one command available:
    • sm_marquee <#userid|steamid|name> "text"

    Remember to put the "quotes" around your message! Players won't be able to change their weapons with the number keys while the text is running, so don't spam them ;)

    You get the idea by watching sega74rus' video!

    [IMG]http://img829.**************/img829/2676/marqueejl.jpg[/IMG]

    Plugin authors may use the following natives to send their own marquee messages:
    PHP Code:
    /**
     * Starts a marquee on a list of clients.
     *
     * @param clients        An array of clients to send to.
     * @param numClients    Number of players in the array.
     * @param message        The message to display.
     * @param intercept        Stop any currently running marquee and start this one.
     * @return                True if started, false otherwise.
     */
    native bool:Marquee_Start(const clients[], numClients, const String:message[], bool:intercept=true);
     
    /**
     * Starts a marquee on a client.
     *
     * @param client        The client to send the panel to.
     * @param message        The message to display.
     * @param intercept        Stop any currently running marquee and start this one.
     * @return                True if started, false otherwise.
     */
    native bool:Marquee_StartOne(client, const String:message[], bool:intercept=true);

    /**
     * Starts a marquee on all clients.
     *
     * @param message        The message to display.
     * @param intercept        Stop any currently running marquee and start this one.
     * @return                True if started, false otherwise.
     */
    native bool:Marquee_StartAll(const String:message[], bool:intercept=true);

    /**
     * Stops the marquee currently running on a client.
     *
     * @param client        The client to stop the marquee from.
     * @noreturn
     */
    native Marquee_Stop(client);

    /**
     * Checks, whether a client is currently watching a marquee.
     *
     * @param client        The client to check.
     * @return                True if he's watching a marquee, false otherwise.
     */
    native bool:Marquee_IsRunning(client);

    /**
     * Called when a marquee message is about to start on a client.
     *
     * @param client            Client index of player to send to.
     * @param sMessage            Message to send.
     * @return                    Action to handle the message.
     */
    forward Action:Marquee_OnStart(client, const String:sMessage[]); 
    The plugin won't compile on the forums due to the custom include. If you want to compile yourself, put marquee.inc inside your scripting/include folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (marquee.sp - 401 views - 34.6 KB)
    File Type: smx marquee.smx (13.6 KB, 410 views)
    File Type: inc marquee.inc (2.0 KB, 319 views)
    __________________

    Last edited by Peace-Maker; 11-24-2011 at 05:53.
    Peace-Maker is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 08-29-2011 , 10:24   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #2

    Nice one!

    This is definite an eyecatcher. I will check this out asap. I have in mind to use this as warningsystem.

    Does @blue @red @all and so on work with this?
    __________________
    micazoid is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 08-29-2011 , 10:56   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #3

    very nice indeed... great idea

    yes, micazoid, it looks like it does - it utilizes the ProcessTargetString
    TnTSCS is offline
    iDragon
    Member
    Join Date: Aug 2010
    Old 08-29-2011 , 12:12   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #4

    Wow! good idea.
    Thank you.
    __________________
    Sorry for my bad english.
    iDragon is offline
    gameguysz
    Member
    Join Date: Aug 2011
    Location: USA
    Old 08-29-2011 , 12:39   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #5

    I would say this is sexy but its not... its smexyyyy! ))
    gameguysz is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 08-29-2011 , 12:47   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #6

    Incredible stuff, I'm impressed.
    __________________
    napalm00 is offline
    bzellinger
    Member
    Join Date: Sep 2010
    Old 08-29-2011 , 15:22   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #7

    Thanks for the plugin. Anyway to send a message to all players?
    bzellinger is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 08-29-2011 , 16:03   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #8

    Quote:
    Originally Posted by bzellinger View Post
    Thanks for the plugin. Anyway to send a message to all players?
    Code:
    sm_marquee @all "hi there"
    http://wiki.alliedmods.net/Admin_Com...#How_to_Target
    __________________
    Peace-Maker is offline
    iDragon
    Member
    Join Date: Aug 2010
    Old 08-29-2011 , 17:21   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #9

    The plugin works great! but some of the players in my server are seeing "square" characters instead the "text" I'm writing.
    I searched and found that people with non-english computer's operating system (or that their "Language for Non-Unicode programs" is not English) can't see the text.
    Is there a way to fix it?
    __________________
    Sorry for my bad english.
    iDragon is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 08-29-2011 , 19:25   Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
    Reply With Quote #10

    Uhm, don't know. You could recompile using ascii characters instead of the full-width utf8 ones. Just change the 2 defines at the top, but it wouldn't look that good anymore.
    __________________
    Peace-Maker 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 18:59.


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