Author Topic: [2 mods] [Client] - Mute GUI (v1) and Custom Ban GUI (v1.5)  (Read 5195 times)

Client : Mute-To-Server
Description: A simple GUI for the client to mute someone on the server.
Use: Double click on a name in the player list.


New GUI look: (Ignore the one above)


Hints and warnings:
  • /!\ Server mute mod does not come with this.
  • [0] * Idiot proof - This will strip "/" in case people don't read the warning message.
  • * Test the mute before using this on the server, or you will look like a fool.
  • [0] Don't put spaces, use underscore "_" instead, server commands do not have spaces.
  • You can put your own messages and even change the command.
  • [0] "Forever" box basically sets it to -1, some mute mods will not have this.
  • Remember that some mute mods can only go at a certain limit, if it goes too high it might not even mute, just ban them instead.
In the next version the seconds will tell you how long they have will be muted.

Download: Client_addMute



Client : Custom Ban
Description: Customize your bans without using /ban, longer ban times, and even can guess an expiration date!
Use: Use the ban button in the admin menu like you usually would.





I tested using insane limits, this is what I got


Hints and warnings:
  • Don't go overboard with your bans, this isn't the point. Lots of mods are abusive if the host uses it in that way, so don't complain to me about this being abusive.
In the next version the total minutes will tell you how long they will be banned for.

Download: Client_addBanModifier
--V1.5--
Fixed datetime bugs to get the correct timestring.



Both of these use a function to look up the BL_ID and find the name, if the name is found, it will be in the Ban/Mute window.
« Last Edit: May 28, 2015, 03:59:04 PM by Advanced Bot »


[0] /!\ Server mute mod does not come with this.
Server mute mod does not come with itself. Sweet.

Server mute mod does not come with itself. Sweet.
this is a client mod that will send slash commands without you typing them in, so basically the slash commands only work if the server has them

this is a client mod that will send slash commands without you typing them in, so basically the slash commands only work if the server has them
ohhhh

Well, I need a reliable mute add-on, the one I use right now doesn't work that much

Well, I need a reliable mute add-on, the one I use right now doesn't work that much
What's wrong with the one you use?

What's wrong with the one you use?
the one I use is old and doesn't work sometimes
there's no forever function too, so we just put in a big number
but even that doesn't work as it seems putting numbers around over 1000 just makes the entire thing break, it doesn't mute at all
not to mention after rejoining the player can talk again which is annoying

EDIT: The mute I use is from munk's serverpack
Code: [Select]
//+---------+
//+-Mute
//+---------+
package mute
{

function servercmdMute(%client, %user, %time)
{

if($MSP::Mute == 1 && !%client.isSuperAdmin)
{
messageClient(%client, '', 'You must be a super admin to use this command.');
return;
}

if($MSP::Mute == 2 && !%client.isAdmin)
{
messageClient(%client, '', 'You must be an Admin to use this command.');

return;
}

if($MSP::Mute == 3 && !((isObject(localclientconnection) && %client.getID() == localclientconnection.getID())) || !%client.bl_id == getNumKeyID())
{
messageClient(%client, '', ' You must be the Host to use this command.');
return;
}

if(%time $= "" || %time < 20 || !isInteger(%time))
{
%time = 30;
}

%victim = FindClientByName(%user);
$Mute[%victim.BL_ID] = true;
messageAll("", " "@ %victim.name @" has been muted by "@ %client.name @" for "@ %time @" Seconds");
messageClient(%victim, '', "You have been muted by "@ %Client.name @" for "@ %time @" Seconds");

Cancel($mute::Schedule[%victim.BL_ID]);
$mute::Schedule[%victim.BL_ID] = schedule(%time*1000,0,"unmute", %victim);
}

function unmute(%victim)
{
$Mute[%victim.BL_ID] = false;
MessageClient(%victim, '', "You are now unmuted");
}

function servercmdunmute(%client, %user)
{
%victim = FindClientByName(%user);

if($MSP::Mute == 1 && !%client.isSuperAdmin)
{
messageClient(%client, '', 'You must be a super admin to use this command.');
return;
}

if($MSP::Mute == 2 && !%client.isAdmin)
{
messageClient(%client, '', 'You must be an Admin to use this command.');
return;
}

if($MSP::Mute == 3 && !((isObject(localclientconnection) && %client.getID() == localclientconnection.getID())) || !%client.bl_id == getNumKeyID())
{
messageClient(%client, '', 'You must be the Host to use this command.');
return;
}

if($mute[%victim.BL_ID] == false)
{
messageClient(%client, '', "That player is not muted!");

return;
}
else
{
$Mute[%victim.BL_ID] = false;
messageClient(%victim, '', " You have been unmuted by "@ %client.name);
messageAll("", ""@ %victim.name @" has been unmuted by "@ %client.name);

cancel($mute::Schedule[%victim.BL_ID]);
}
}

function servercmdMessageSent(%client, %text)
{
if($mute[%Client.BL_ID] == true)
{
messageClient(%client, '', " You cannot talk while muted.");

}

else
{
Parent::ServercmdmessageSent(%client, %text);
}
}

function servercmdTeamMessageSent(%client, %text)
{
if($mute[%Client.BL_ID] == true)
{
messageClient(%client, '', "You cannot talk while muted.");
}

else
{
Parent::ServercmdTeammessageSent(%client, %text);
}
}

};
ActivatePackage(mute);
« Last Edit: May 24, 2015, 05:12:17 AM by K3k0m@n »

Just noticed that I could have used mClampF instead of my own fixNumber function.

I don't understand what the mute GUI does.
Is it client-sided, or is it just easing the operation of muting someone?

I don't understand what the mute GUI does.
Is it client-sided, or is it just easing the operation of muting someone?
both

-code-
I'll see if I can get around to making a better one

could you make a server wide script that adds the ban time to any ban reason that an admin does?
« Last Edit: May 24, 2015, 04:09:27 PM by Hawt »

I don't understand what the mute GUI does.
Is it client-sided, or is it just easing the operation of muting someone?
It is client sided

You need a mod that uses /mute though

OT: thanks for the ban mod, will be useful.

could you make a server wide script that adds the ban time to any ban reason that an admin does?
Yes, I'll make that separately. I will also create client/server communication so it doesn't try to use the unban time more than once.