Author Topic: Muteall  (Read 652 times)

I would like a muteall script thats like /muteall because i find it hard to tell people stuff on my server when everyone is talking
So i thought this would be usefull if you need to tell everyone it.

Obviously extremely abusive


i think i might be able to make this, not sure

Obviously extremely abusive
It's the hosts and the host can do whatever they want.
i think i might be able to make this, not sure
As could I, and it's really simple, infact, it may only be a few lines of code.

Code I just typed down now, and not sure if it works:
Code: [Select]
$SYJDD::allmuted = false;
function serverCmdmuteall(%client)
{
if(%client.isSuperAdmin)
$SYJDD::allmuted = true;
}
function serverCmdunmuteall(%client)
{
if(%client.isSuperAdmin)
$SYJDD::allmuted = false;
}

package chatmutes
{
function servercmdmessagesent(%client,%a,%b,%c,%d,%e)
{
if(!$SYJDD::allmuted)
Parent::servercmdmessagesent(%client,%a,%b,%c,%d,%e);
}
};
activatepackage(chatmutes);
I believe that's all you need, but I haven't tested it.
« Last Edit: November 20, 2010, 09:57:18 PM by DrenDran »

hmm, so what do packages do? why not just use the function?

hmm, so what do packages do? why not just use the function?
It means that no requests to chat go though at all if it's muted.
I don't believe there is a default mute function though.

i don't think there is a default mute function either, just wondering what the package thing means/does, instead of just going and overwriting the function, does it stop that or something?

i don't think there is a default mute function either, just wondering what the package thing means/does, instead of just going and overwriting the function, does it stop that or something?
You don't know what packages are?

just put like a comma

or something... in E tard Filter.

I wanted this because I was hosting my rooftop and all these people get asking me stuff and I was doing something and I got really pissed off and so many questions... Yeah...
But I'm glad you guys seem to be working on this, usualy no one makes my requests :C

You don't know what packages are?
i never had to use them :D
although i might in the future, tell me please

I wanted this because I was hosting my rooftop and all these people get asking me stuff and I was doing something and I got really pissed off and so many questions... Yeah...
But I'm glad you guys seem to be working on this, usualy no one makes my requests :C
I believe it's done, try to use it and tell me what happens.

I believe it's done, try to use it and tell me what happens.
Where's the link?