Mute Em' - Mute system -
Pawnify - 03.09.2014
[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
Re: Mute Em' - Mute system -
Stinged - 03.09.2014
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.
Re: Mute Em' - Mute system -
Pawnify - 03.09.2014
Quote:
Originally Posted by Stinged
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.
Re: Mute Em' - Mute system -
DhO0m - 04.09.2014
Nice .
Re: Mute Em' - Mute system -
Pawnify - 04.09.2014
Quote:
Originally Posted by DhO0m
Nice .
|
Thank you man!
Also, I've updated the filterscript. Seek the changelog.
Re: Mute Em' - Mute system -
Pawnify - 07.09.2014
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.
|
Re: Mute Em' - Mute system -
Pawnify - 08.09.2014
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.
Re: Mute Em' - Mute system -
ReD_DeVi - 08.09.2014
Good and simple for coding a mute system
Re: Mute Em' - Mute system -
Pawnify - 08.09.2014
Quote:
Originally Posted by ReD_DeVi
Good and simple for coding a mute system
|
Thank you for the kind words, +rep
Re: Mute Em' - Mute system -
Eth - 08.09.2014
nice filterscript
+ rep