Kick name UTF8 symbol

Сообщения
31
Реакции
4
hi steam players add unknown characters to the name. I want to kick and kick them.
 
Сообщения
1,701
Реакции
1,512
Помог
26 раз(а)
Сообщения
31
Реакции
4
example name: քʟǟʏɛʀ ( fake steam flood )
 
Последнее редактирование модератором:
Сообщения
31
Реакции
4
Последнее редактирование модератором:
Сообщения
31
Реакции
4
not working :(

Im create plugins, not working :S

Код:
#include <amxmodx>
#include <time>
#include <amxmisc>

new const gwhiteletters[][]=
{
"q",
"w",
"e",
"r",
"t",
"y",
"u",
"o",
"p",
"a",
"s",
"d",
"f",
"g",
"h",
"j",
"k",
"l",
"i",
"z",
"x",
"c",
"v",
"b",
"n",
"m",
"Q",
"W",
"E",
"R",
"T",
"Y",
"U",
"O",
"P",
"A",
"S",
"D",
"F",
"G",
"H",
"J",
"K",
"L",
"I",
"Z",
"X",
"C",
"V",
"B",
"N",
"M",
".",
"<",
">",
"/",
"!",
"-",
"~",
"|",
"[",
"]",
"$"

}

public plugin_init()
{
register_plugin("Sembolik Karakter Yasak", "1.0", "Ghost95V & popeye10 & JazZ.");
}

/*
public client_command(Client)
{
static Cmd[6], Said[100];
read_args(Said,99);
remove_quotes(Said);
read_argv(0,Cmd,5);
if(equali(Cmd,"Say_team",3)&&containi(Said,"% ")!=-1){
    ColorPrint(Client,"!g[AMXX] !tNo Characters percent allowed !!!");
    return 1;
}
if(equali(Cmd,"Say_team",3)&&containi(Said,"# ")!=-1)
{
    ColorPrint(Client,"!g[AMXX] !tCharacters not allowed !!!");
    return 1;
}
if(equali(Cmd,"Say",3)&&containi(Said,"%")!=-1){
    ColorPrint(Client,"!g[AMXX] !tNo Characters percent allowed !!!");
    return 1;
}
if(equali(Cmd,"Say",3)&&containi(Said,"#")!=-1)
{
    ColorPrint(Client,"!g[AMXX] !tCharacters not allowed !!!");
    return 1;
}
return PLUGIN_CONTINUE;
}
*/


public client_putinserver(id)
{
if (is_user_connected(id))
{
    new szName[64];
    get_user_name(id, szName, 63);
    for(new i = 0; i < sizeof(gwhiteletters); i++) {
        if(!containi(szName, gwhiteletters[i]) != -1){
            
            server_cmd("kick #%d ^"Bilinmeyen Karakter Algilandi^"", get_user_userid(id));
            return 1;
            
            }else{
//
        }
    }
    
}
return 0;
}

public client_infochanged(id)
{
static const name[] = "name";
static szNewName[32], szOldName[32];
get_user_info(id, name, szNewName, 31 );
get_user_name(id, szOldName, 31 );

for(new i = 0; i < sizeof(gwhiteletters); i++){
    if(!containi(szNewName, gwhiteletters[i]) != -1)
    {
        replace_all( szNewName, 32, gwhiteletters[i], "" );
        set_user_info(id, name, "Selam ben SkyNLexX" );
    }
}
}

stock ColorPrint(const id, const input[], any:...)
{
new count = 1, players[32]

static msg[191]

vformat(msg, 190, input, 3)

replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "!t2", "^0")

if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
    if (is_user_connected(players[i]))
    {
        message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
        write_byte(players[i])
        write_string(msg)
        message_end()
    }
}
}
}
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу