View Single Post
Author Message
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
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 - 720 views - 34.6 KB)
File Type: smx marquee.smx (13.6 KB, 912 views)
File Type: inc marquee.inc (2.0 KB, 775 views)
__________________

Last edited by Peace-Maker; 11-24-2011 at 05:53.
Peace-Maker is offline