How Can I make anti MG
#1

like the title i want make anti MG ( Metal Gamming ) like this:
-a : hello b
-b : hello a @@
when the message have any Special Characters that send A message " Messages can not send or / b to avoid MG"
I can make a list with special characters
Reply
#2

Don't know if it really works but you can still test it.

Код:
new Symbols [] = //You can add more symbols in this array
{
    "@",
    "$"
};

public OnPlayerText(playerid, text[])
{
    for(new i = 0; i < sizeof(Symbols); i++)
    {
        if(strfind(text, Symbols[i], true) != -1)
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "> You message here <");
            return 0;
        }
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by K0P
Посмотреть сообщение
Don't know if it really works but you can still test it.

Код:
new Symbols [] = //You can add more symbols in this array
{
    "@",
    "$"
};

public OnPlayerText(playerid, text[])
{
    for(new i = 0; i < sizeof(Symbols); i++)
    {
        if(strfind(text, Symbols[i], true) != -1)
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "> You message here <");
            return 0;
        }
    }
    return 1;
}
thanks
Reply
#4

"@",
"$" what mean ,
Reply
#5

Quote:
Originally Posted by thienle7090
Посмотреть сообщение
"@",
"$" what mean ,
It means that if you type any of these symbols in the chat,it will show the error message
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)