How to block Names and Abusive Words.
I know it is easy for most of us but from what I saw today with a certain user , looks like I gotta post these simple tutorials to help you all.
Requirements
Notepad/Notepad ++(recommended)
A brain
GunZ Client
System.mrs decompiled
Difficulity - 0/10
Purpose - to make users better understand abuse.txt
When you open your Abuse.txt you see a series of 1 or 2's and some names
Now into the contents of the '1' in abuse.txt
The '1' is the number for when a specified word is probitied to be sent through the chat string
-Pic Coming Soon-
The '2' is responible for probiting any names under Maiet as seen in my example to be made
-Pic Coming Soon-
Glad I cloud help
Re: How to block Names and Abusive Words.
Someones posted this already, i remember seeing it.
Its not really something a thread needs to be made on, but i guess it is usefull to some people. But i don't think most servers even use Abuse.txt
Re: How to block Names and Abusive Words.
Re: How to block Names and Abusive Words.
I was bored so I made my first tutorial...
Re: How to block Names and Abusive Words.
I've seen this posted a few times, I personally find it quite useless but I'm sure some people would want to use it, so thanks for your effort in writing this up. Just search to see if such a tutorial already exists next time.
Re: How to block Names and Abusive Words.
in my abuse.txt i dont see a 1. or a 2.
i only see this
"END"
Re: How to block Names and Abusive Words.
Quote:
Originally Posted by
gsterv900
in my abuse.txt i dont see a 1. or a 2.
i only see this
"END"
It means nothing is in it. End is the end of the list (obviously) so if nothings before it, its empty. Most servers don't use Abuse.txt like i said so they're usually always empty
1 means words you can't use
2 is names
as he said.
For example, ijjis would has stuff like
1,ass
2,GM
and so forth
Re: How to block Names and Abusive Words.
ha ha, you must've been real bored if you decided to make this your first tutorial xD. Anyways, helpful to the new commers who want to know how to do this and can't search if their life depended on it :P.
Re: How to block Names and Abusive Words.
kk so i would do like
1,ass
1,bitch
2,gm
2,admin
? or does it have to be
1,
2,
1,
2,
???
Re: How to block Names and Abusive Words.
Use the DB for block words(a stored proc.)
Re: How to block Names and Abusive Words.
Quote:
Originally Posted by
Arcelor
Lawl, really?
I was about the post the same thing.
Re: How to block Names and Abusive Words.
This has been posted before. Requesting a thread close.
Re: How to block Names and Abusive Words.
How to block abusive words (in channel)
Code:
CDetour MMatchServer__OnChannelChatDet;
void WINAPI MMatchServer__OnChannelChatHook( MUID* uidPlayer, MUID* uidChannel, char *szMessage )
{
char* szBlocked[] = { "nigger", "spick" };
MMatchObject* lpObject = MMatchServer::GetInstance()->GetObjectA( uidPlayer );
if( !lpObject )
return;
int nString = strlen( szMessage );
char szStrCopy[1024];
strcpy( szStrCopy, szMessage );
_strlwr( szStrCopy );
for( int i = 0; i != sizeof( szBlocked ) / sizeof(char*); i++ )
{
if( strstr( szMessage, szBlocked[i] ) )
{
*szMessage = NULL;
}
}
MMatchServer__OnChannelChatDet.Org( uidPlayer, uidChannel, szMessage );
}
Re: How to block Names and Abusive Words.
Quote:
Originally Posted by
Your Master
How to block abusive words (in channel)
Code:
CDetour MMatchServer__OnChannelChatDet;
void WINAPI MMatchServer__OnChannelChatHook( MUID* uidPlayer, MUID* uidChannel, char *szMessage )
{
char* szBlocked[] = { "nigger", "spick" };
MMatchObject* lpObject = MMatchServer::GetInstance()->GetObjectA( uidPlayer );
if( !lpObject )
return;
int nString = strlen( szMessage );
char szStrCopy[1024];
strcpy( szStrCopy, szMessage );
_strlwr( szStrCopy );
for( int i = 0; i != sizeof( szBlocked ) / sizeof(char*); i++ )
{
if( strstr( szMessage, szBlocked[i] ) )
{
*szMessage = NULL;
}
}
MMatchServer__OnChannelChatDet.Org( uidPlayer, uidChannel, szMessage );
}
Omg why to use this ?
The other way(abuse.txt) it's easier.. :/
Re: How to block Names and Abusive Words.
Quote:
Originally Posted by
alish1558
Omg why to use this ?
The other way(abuse.txt) it's easier.. :/
well , I like this way better