Las Venturas Playground
highlighting - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: highlighting (/thread-25341.html)



highlighting - Tpimp - 10-16-2010

alias masshl var %x $$1- | while ($nick(#,$0)) tokenize 32 $1- $v1 | say $remove($2-,$me) $+ : %x


cmd: /masshl [Text]

I dunno if you already have something like it, but i thought i posted to get more testers..


Re: highlighting - Matthias - 10-16-2010

Might be useful, good job!


Re: highlighting - Rien - 10-16-2010

/masshl ? as in "[08:33:20] <03Tpimp> Jay Fireburn iCk Peter Rien : Hi" ?

In that case, thanks, but no thanks.




Re: highlighting - Tpimp - 10-16-2010

(10-16-2010, 10:38 AM)Rien link Wrote: /masshl ? as in "[08:33:20] <03Tpimp> Jay Fireburn iCk Peter Rien : Hi" ?

In that case, thanks, but no thanks.
I actually have nothing to use it for, so i thought i'd give it to you guys. Did it alert you? If it did then it works.


Re: highlighting - Cyrix404 - 10-16-2010

found an issue if the message is longer than 1 word, it snips the first word and posts it at the beginning
Example /masshl Hi, I like pie, the output is (Nickname) I like pie nick1 nick 2,... lastnick: Hi, I like pie

Dunno what's really wrong with it it, but I found code that does work fine @ http://www.hawkee.com/snippet/7520/
Code:
alias masshl {
  var %x, %y 1
  while ($nick(#,%y)) {
    if ($v1 != $me) {
      %x = %x $v1
    }
    inc %y
  }
  msg # $v1 %x $+ : $$1-
}



Re: highlighting - Tpimp - 10-16-2010

Nice man. I'll start using that now sense you found another one :D