AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Marquee (Version 1.0) - Send running text through a panel (https://forums.alliedmods.net/showthread.php?t=165970)

Peace-Maker 08-29-2011 09:17

[ANY] Marquee (Version 1.0) - Send running text through a panel
 
3 Attachment(s)
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.

micazoid 08-29-2011 10:24

Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
 
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?

TnTSCS 08-29-2011 10:56

Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
 
very nice indeed... great idea :)

yes, micazoid, it looks like it does - it utilizes the ProcessTargetString

iDragon 08-29-2011 12:12

Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
 
Wow! good idea.
Thank you. :)

gameguysz 08-29-2011 12:39

Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
 
I would say this is sexy but its not... its smexyyyy! :)))

napalm00 08-29-2011 12:47

Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
 
Incredible stuff, I'm impressed.

bzellinger 08-29-2011 15:22

Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
 
Thanks for the plugin. Anyway to send a message to all players?

Peace-Maker 08-29-2011 16:03

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

Originally Posted by bzellinger (Post 1543527)
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

iDragon 08-29-2011 17:21

Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
 
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? :)

Peace-Maker 08-29-2011 19:25

Re: [ANY] Marquee (Version 1.0) - Send running text through a panel
 
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.


All times are GMT -4. The time now is 23:25.

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