Greentexter
3 Attachment(s)
First and probably only plugin, just something stupid one of my users requested so I figured I'd try and make it, so here ya go, the ability to Greentext.
http://www.quora.com/What-is-greentexting HOW USE /g "text" sm_g "text" Compiles with http://forums.alliedmods.net/showthread.php?t=96831 Colors |
Re: Greentexter
1 Attachment(s)
Fun little idea, however when I tried this out on servers for a couple of mods I host it doesn't seem to print any text after the first space (see attached image).
I haven't changed anything with the code, I did compile it myself though using sourcemod 1.4.3 (not sure this matters). Both mods are source 2007 based. EDIT: Just tried with the smx you posted and still get the same result. |
Re: Greentexter
2 Attachment(s)
It's because he is using
Code:
Code:
Use QuickDiff to see the differences. |
Re: Greentexter
Yup that sorted it, thanks for your help.
|
Re: Greentexter
Quote:
|
Re: Greentexter
Quote:
|
Re: Greentexter
Why not check if their message starts with ">"? That's what I do for mine.
...And it looks like I need to start releasing more plugins, as other people keep releasing stuff that I've already done for myself. |
Re: Greentexter
This is extremely trivial...but...wouldn't it make more sense to use {olive} rather than {green} ?
|
Re: Greentexter
Quote:
|
Re: Greentexter
The regex would be something simple, like this:
Code:
(\s+)?<.+> |
All times are GMT -4. The time now is 12:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.