![]() |
Level-Mute
Well, Era's Battle of the Bands is today and we were discussing that spamming could disrupt the event, or lag the level more (since there's going to be a bunch of people there).
So I made this simple toggle-able level mute NPC to throw down and solve the problem. He said he wouldn't use it because the Timeout would "Lag the server". I don't understand how? So if anyone could explain... as well as comment on how I could possibly code this better? Thanks: PHP Code:
|
The first step to making it better is to lose that terrible styling.
PHP Code:
You can't have the toggle bit on clientside, as then it only applies for the specific player. PHP Code:
|
You can use ChatBar.onAction to prevent the player from chatting at all. I've re-factored your code:
PHP Code:
|
Quote:
Makes enough sense I suppose :3.. Thanks. @fp4: Thank you too, its always good to see it done multiple ways. (I didn't like Chris' anyway). |
Quote:
|
I've updated it to include the best of both worlds, for those relentless hackers who would spend the time to try and get around a mute filter.
|
| All times are GMT +2. The time now is 10:37 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.