Anti_Name[problem]
#5

I know this is a long way to do this, but I'm too lazy to edit it:

pawn Код:
new findname = strfind(pname, "_", true);
    if(findname == -1)
    {
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    new findname2 = strfind(pname, "0", true);
    new findname3 = strfind(pname, "1", true);
    new findname4 = strfind(pname, "2", true);
    new findname5 = strfind(pname, "3", true);
    new findname6 = strfind(pname, "4", true);
    new findname7 = strfind(pname, "5", true);
    new findname8 = strfind(pname, "6", true);
    new findname9 = strfind(pname, "7", true);
    new findname10 = strfind(pname, "8", true);
    new findname11 = strfind(pname, "9", true);
    new findname12 = strfind(pname, "[", true);
    if(findname2 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname12 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname3 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname4 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname5 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname6 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname7 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname8 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname9 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname10 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
    if(findname11 != -1)
    {
        format(string43, sizeof(string43), "%s just got kicked for Non RolePlay Name by **Anti-Cheat System Molov**", pname);
        LocalChat(10000000000.0, playerid, string43, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF, 0xFF0000FF);
        SendClientMessage(playerid, COLOR_RED, "Make a roleplay name. Example: John_Peterson or Maria_Hammington");
        Kick(playerid);
    }
Just replace localchat with SendClientMessageToAll or remove it entirely
Reply


Messages In This Thread
Anti_Name[problem] - by Dan_Barocu - 01.06.2012, 14:01
Re: Anti_Name[problem] - by TzAkS. - 01.06.2012, 14:44
Re: Anti_Name[problem] - by Dan_Barocu - 01.06.2012, 15:14
Re: Anti_Name[problem] - by ViniBorn - 01.06.2012, 15:19
Re: Anti_Name[problem] - by milanosie - 01.06.2012, 15:20
Re: Anti_Name[problem] - by Dan_Barocu - 01.06.2012, 22:10
Re: Anti_Name[problem] - by iggy1 - 01.06.2012, 22:19
Re: Anti_Name[problem] - by Dan_Barocu - 02.06.2012, 12:25
Re: Anti_Name[problem] - by Dan_Barocu - 02.06.2012, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)