[FilterScript] Mute Em' - Mute system
#1

[Information]
Hello again friends, I have made a filterscript which allows the admin to mute a player and check if the player is muted. This filterscript also allows you to mute a player if they are clicked on the scoreboard.

The filterscript was made to allow server admins to mute a player and unmute them with the same command.
[ChangeLog]
  • -If a player is muted, and they log out; when they log back in they will still be muted.
[Installation]
1. Inside of scriptfiles, add a folder called MuteEm.
2. Install the filterscript along with all the needed plugins/includes
(You will need zcmd sscanf2 y_ini)
3. Add MUTE to your server properties filterscript line.

[ScreenShots]
http://i.imgur.com/Uxzs0xY.jpg
In this screenshot, we show you that you can toggle mute with one command.

http://i.imgur.com/nBVRLRN.jpg
In the next screenshot, the player will receive a message telling them they are muted when they try and chat.

http://i.imgur.com/7wcYLVl.jpg
This screenshot shows the muted command which will tell the admin whether a specific player is muted or not.

http://i.imgur.com/pb33LJG.jpg
Here we show you that you can mute players by clicking their name in the scoreboard(tab menu)

[Features/HowTo]
/mute - This command will mute a player, and unmute a player if the player is already muted
/muted - Check if a player is muted
Click on a player in the scoreboard to mute a player
[Terms]
You may:
Use this in your server
Take the whole script and put it inside of your gamemode(LEAVE CREDIT)

You may not:
Take credit for my work
Take parts of my code as yours

[Download]
Pastebin:
V3 http://pastebin.com/WQMtMmmv
V2 http://pastebin.com/ST0W0MC8
V1. http://pastebin.com/mKaC6t59
Reply
#2

You aren't resetting the variable 'playermuted'
That means, if ID 0 (or any other ID) was muted and quit, and another player logged in and got the same ID, will be muted.

You should add
pawn Code:
playermuted[playerid] = 0;
to OnPlayerConnect or OnPlayerDisconnect.
Reply
#3

Quote:
Originally Posted by Stinged
View Post
You aren't resetting the variable 'playermuted'
That means, if ID 0 (or any other ID) was muted and quit, and another player logged in and got the same ID, will be muted.

You should add
pawn Code:
playermuted[playerid] = 0;
to OnPlayerConnect or OnPlayerDisconnect.
Ooo thank you. I did let that slip my mind.
Reply
#4

Nice .
Reply
#5

Quote:
Originally Posted by DhO0m
View Post
Nice .
Thank you man!


Also, I've updated the filterscript. Seek the changelog.
Reply
#6

Later will be a big update,

Upcoming
Quote:

-If a player is muted and they log out, when they log back in they will still be muted.
-Players muted variable is saved to a file.
-A installation section on the thread will be made.

Reply
#7

Version 3 is now available, I have tested it on myself as I have no friends who will test it with me (I actually have no friends at all)

If you discover and bugs, please let me know. Also if you feel something could be improved.

Please read the changelog.
Reply
#8

Good and simple for coding a mute system
Reply
#9

Quote:
Originally Posted by ReD_DeVi
View Post
Good and simple for coding a mute system
Thank you for the kind words, +rep
Reply
#10

nice filterscript + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)