Author Topic: MegaPhone  (Read 1226 times)

can somebody make a megaphone that sits in your hand for a commercial i want to shoot.

Almost too easy. Just use the sword script, Change the model name, Get rid of everything in the script except for the part that holds it, and BEWM joo has a mega phone. Now if you wanted to make it that when you use it, It makes an announcement as your type, BUT ill make it only available to SUPER-admins.


I'm so going to try and fail to make this an admin tool (announce)



CAN YOU HEAR ME NOW?
[/size]

It should make admins speak in massive font or something to catch people's attention. :cookieMonster:

Alternately it could let you speak in a local chat only server or something.

It should make admins speak in massive font or something to catch people's attention. :cookieMonster:
And this would be achieved how, exactly?

No clue. But I have the script done. Just send me the model Kaje.

... Theres a link under his post ...

Whoops. Link for script will be up later. Making Museum build right nao.


It should make admins speak in massive font or something to catch people's attention. :cookieMonster:
And this would be achieved how, exactly?
That's easy. Edit servercmdMessageSent, check if your player exists, you are an admin and holding a megaphone, then make it do a messageall using the style push/pop and font tags.

EDIT: Here. I haven't added anything like the Flood Protection or other filters yet, but this is just an example. If you are holding something that is called "megaphoneimage" and are an admin/Super Admin, when you talk it will appear in a large font. Impact 64 is probably a bit over the top, though. It doesn't mess up people's chat after yours and actually keeps their chat size settings instead of resetting it to size 24, which some people didn't like.
Code: [Select]
package yell
{
 function servercmdmessagesent(%client,%m)
 {
  if((%client.isAdmin || %client.isSuperAdmin) && isObject(%client.player) && %client.player.getMountedImage(0).getName() $= "megaphoneImage")
  {   
   //Add the swearing/E-Tard/Flood Protection filters?
   
   %m = getSubStr(%m,0,$Pref::Server::MaxChatLen);
   %m = stripMLControlChars(%m);
   %m = trim(%m);
   if(%m $= ""){return;}
   messageAll('',"\c7" @ %client.clanPrefix @ "\c3" @ %client.name @ "\c7" @ %client.clanSuffix @ "\c6: <spush><font:Impact:64>" @ %m @ "<spop>");
  }
  Parent::servercmdmessagesent(%client,%m);
 }
};activatepackage(yell);
« Last Edit: April 26, 2008, 05:08:08 AM by Space Guy »