| Blockland Forums > Suggestions & Requests |
| Disable Chat serverwide. required use to RTB Connect. |
| << < (2/3) > >> |
| Demian:
--- Quote from: Demian on January 05, 2013, 11:17:27 AM ---Oh well, setting Max Chat Lines 0 does the same thing. --- End quote --- Options > Advanced Edit: Oh never mind, you want it serverwide. |
| Cubelands:
update title. |
| Zeblote:
--- Code: ---package nochat { function servercmdmessagesent(%client, %message) { if($chatdisabled && !%client.isadmin) { messageclient(%client,'',"\c6Only Admins may talk."); return; } parent::servercmdmessagesent(%client, %message); } function servercmdteammessagesent(%client, %message) { if($chatdisabled && !%client.isadmin) { messageclient(%client,'',"\c6Only Admins may talk."); return; } parent::servercmdteammessagesent(%client, %message); } }; activatepackage(nochat); function servercmddisablechat(%client) { if(%client.issuperadmin) { if($chatdisabled) { messageclient(%client,'',"\c6Chat is already disabled."); return; } else { messageall('',"\c4" @ %client.name @ "\c6 has disabled the chat. Only admins may talk now."); $chatdisabled = 1; } } } function servercmdenablechat(%client) { if(%client.issuperadmin) { if(!$chatdisabled) { messageclient(%client,'',"\c6Chat is already enabled."); return; } else { messageall('',"\c4" @ %client.name @ "\c6 has enabled the chat. Everyone may talk now."); $chatdisabled = 0; } } } --- End code --- |
| Cubelands:
--- Quote from: Zeblote on January 05, 2013, 11:37:45 AM --- --- End quote --- Why not you release it at add-ons thread? |
| Danny Boy:
I have a client sided version which I made a while back. Basically on any server you can type /togglechat and it will be disabled. I know you were looking for server sided version but this will be useful if you are on other servers. Although I will say that making a server sided version may be a killer for a server because people do like to talk because the atmosphere can make people have more fun on a game. http://dl.dropbox.com/u/19324878/Client_ToggleChat.zip |
| Navigation |
| Message Index |
| Next page |
| Previous page |