196
Games / Re: Garry's Mod
« on: September 23, 2008, 06:53:40 PM »Since when is 'tank' a verb?
Since World of Warcraft?
Actually, before that.
Diablo?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Since when is 'tank' a verb?
That's weird.
just because this is "The Internet" doesn't mean you should take it less seriously than anywhere else.
You get AIDS* MegaScience inserts mouse fur *
God:
What do you look like?
Me:
ass
God:
Interesting gossip: god said I AN ASS.
You're grammar makes the machine break for 10 minutes.* MegaScience inserts arm *
For clientside mods, put the code in a client.cs file instead of server.cs. You cannot use server commands (/commands) or functions that affect existing objects (e.g. move a player around) clientsided.
You'll need to be able to intercept incoming chat messages (package newChatSO::addLine(%this,%line)), use string functions to decide whether it's a player chat message or something else (e.g. death messages shouldn't be ignored) and find the player's name. If it matches one on your ignore list, exit the function, otherwise call Parent::addLine to add the message to the chat.
For the list itself, try packaging NMH_Type::send(%this) and checking the first word of %this.getValue() and see whether it's something like "/ignorename" - if it is, add the rest of that message to the Ignore list, and exit the function instead of sending /ignorename as a normal /command.
Look up on the Internet how Torquescript packages work, you'll need them. Also note that an "ignore" done in this style might break with servers that have mods editing the chat.
i mean what should i put as the server.cs
Let me tell you you're barking up the wrong tree, for a start. An ignore script should be client-side and it should allow you to ignore super admins or admins because half the time they're the ones spamming crap.
//------ ------- ------
//Ethos' Ignore Script
//------ ------- ------
function clientCmdignorehelp(%client)
{
messageclient(%client,'',"\c2V9 Ignore functions are as follows");
messageclient(%client,'',"\c3/Ignore Playername ");
messageclient(%client,'',"\c3/Listen Playername ");
}
function clientCmdignore(%client)(%victim)
{
if(!%victim.isAdmin);
{
messageclient(%client,'',"\c3 You can't ignore Admins or Super Admins");
}
else
{Bandwidth is handicappedly cheap.Touché.
stuff pisses me off.
Why the hell do you people have to post that ?
It is stupid to post and annoying to see, just stop it.