MessageSent *Error Thread*

Author Topic: MessageSent *Error Thread*  (Read 6231 times)

I'm making my custom MessageSent command and this thread is dedicated to my errors that I encounter during my tests.

Added:

  • New Color Scheme
  • New Text Reporting In To Console
  • Word Censoring
  • Team Messages

To Add:

  • Private Message System
  • Word Censoring

To Fix:


  • Team Messages
  • Announcement System
« Last Edit: March 10, 2007, 07:24:44 PM by Jookia »

Can anybody recommend me a good idea for the announcement system?

You need a new command character, so use something like:

$announce Your message here

in the text box.

You need a new command character, so use something like:

$announce Your message here

in the text box.

Any examples, mate?

You need a new command character, so use something like:

$announce Your message here

in the text box.

Any examples, mate?
How about /all or $all or something.

/all would try to do commandtoserver('all');

Use: ! @ $
They're the most popular.

Or go Englis and use £. Everyone likes £ compared to $.

Its impractical and stupid.

Exactly, and me and Ephi are brits too !

What, none of you have a £ key?

No, I don't exactly have a US keyboard.

I fixed my team chat.

rudyman

  • Guest
I posted the word censoring bit in the announcement thread. This might help you with the PM part:

Code: [Select]
$spaceFix="_";  //<--- This is the character you want people type in place of a space for people's names.
function serverCmdPM(%client,%string)
{
%name=strReplace(firstWord(%string),$spaceFix," ");
%msg=restWords(%string);
   for(%i=0;%i<clientGroup.getCount();%i++)
   {
   %c=clientGroup.getObject(%i);
      if(isObject(%c) && %c.name $= %name)
      {
      messageClient(%c,'PM','\c3%1[PM]: %2',%client.name,%msg);
      }
      else if(isObject(%c) && %c.name $= %client.name)
      {
      messageClient(%c,'PM','\c3You[PM - %1]: %2',%name,%msg);
      }
   }
messageClient(%client,'Warning','That player does not exist!');
}
« Last Edit: March 10, 2007, 07:08:01 PM by rudyman »

Why don't you just use the backwards slash instead.

\announce ResonanceCascade winrars.
\pm ResonanceCascade LOLHAXONDISMAPKTHNXROFLCAKEBB Q.