Author Topic: Client side messageAll  (Read 1810 times)

How do you call messageAll's to the server through client side script? I tried but it doesn't show the message.

Why would we tell you how?


You can't. messageAll is a server-side function and is not accessible by the client. You can however do something like:

Code: [Select]
function serverCmdHaxMessageAll(%client,%message)
{
   if(!%client.isAdmin && !%client.isSuperAdmin)
      return;
   messageAll('',%message);
}

On the server, then do /haxmessageall single_message_lol but im sure there's stuff out there to do that without the crappy _ things. I just can't be bothered to re-invent the wheel, here.

To replace the _s you do a StringReplace... can't remember the exact script. Or you could do a ice cream load of variables, each for a different word in the message. (%word1, %word2, etc.)

strReplace(string,what to replace,what to replace with);