Author
|
Message
|
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
|
08-29-2011
, 09:17
[ANY] Marquee (Version 1.0) - Send running text through a panel
|
#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.
__________________
Last edited by Peace-Maker; 11-24-2011 at 05:53.
|
|
|
|