The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FUNCTION] World Chat with Mute
Author Message
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #1
[FUNCTION] World Chat with Mute
Hello everyone,

I'm going to share some scripts that although have been made for a very peculiar kind of server, some of you may find them interesting and useful and could adapt them to your own servers.

_______________________________________________________________

Basically, this a fully working World Chat through the Yell command (!) with Mute functions.

Typing "! Hello" will, by default, broadcast "Hello" or any other message you'd like to everyone online at the moment.

If you don't like this system under the Yell command (!), you can always replace it with another function, you just need to swap the [SPEECH spk_player] found in the script with [FUNCTION c] for example, and then you can use ".c Hello" rather than "! Hello".

By typing ".chat" you will be able to access this menu:

[Image: Sem_T_tulo.png]

Through this menu you have the option to disable/enable the world chat, what means you will stop hearing what other players write and won't be able to write for them either.

You can also change the color of the chat, being available 4 different colors at the moment. You can change/add/remove them easy in the script.

Under the "Players Muted List" you will have the name of the players you have muted from the world chat, a.k.a. those who may read what you write, in case they haven't muted you as well, but you won't read anything of what they type.

To mute a player all you have to do is type ".playermute <Player Name>". If that player is online and you typed the name correctly, he will be muted.

To unmute a player you can either click the blue button found behind the desired player name in the ".chat" menu or type ".playerunmute <Player Name>". The player doesn't need to be online in order for you to unmute him. You can also click "Unmute all players" to unmute all players currenctly muted.

You can have up to 10 muted players with this script, but you can always change it to more or less to suit your needs.

Staff members also have access to the world chat, but through a different function, so you can not mute them. Well, you can, but it won't do anything because you will still be hearing from them.

Staff members may use ".worldchatmute" to permanently disable the world chat for everyone until they type the same function again to enable it back (".worldchatmute").

Staff members can also type ".mute <Minutes>" to mute a player from the world chat for X minutes. A muted player by a staff member won't be able to speak, but will still be able to read what is being said through the world chat. Players will be unmuted after the X minutes or you can also type ".unmute" to unmute them.

I guess I'm not forgetting anything. Any question just ask.

Cya.


Attached File(s)
.scp  p_wc_mute.scp (Size: 13.55 KB / Downloads: 23)
(This post was last modified: 02-13-2016 06:06 AM by pointhz.)
08-16-2015 03:13 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like pointhz's post
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #2
RE: [FUNCTION] World Chat with Mute
Updated.
02-13-2016 06:07 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)