Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: asderwin on May 04, 2013, 09:39:59 am

Title: esto es solo para pollitos xDD
Post by: asderwin on May 04, 2013, 09:39:59 am
agarren ayi solo para pollitos para que no les tumben el server con ningun tipo de simbolos.
no olviden comentar.

grab there just for chicks so they do not knock down the server with any kind of symbols.
do not forget to comment.

[pawn]public usuariosinvalidos(c[])
{

   new cde[256]; cde = "UsuariosInval";
   if (strfind(c, "*", true) != -1 ||
       strfind(c, "?", true) != -1 ||
       strfind(c, ":", true) != -1 ||
        strfind(c, "<", true) != -1 ||
       strfind(c, ";", true) != -1 ||
      strfind(c, "{", true) != -1 ||
       strfind(c, ">", true) != -1 ||
       strfind(c, "|", true) != -1 ||
        strfind(c, ".", true) != -1 ||
      strfind(c, ",", true) != -1 ||
        strfind(c, "-", true) != -1 ||
        strfind(c, "%", true) != -1 ||
      strfind(c, "(", true) != -1 ||
        strfind(c, "[", true) != -1 ||
      strfind(c, "]", true) != -1 ||
      strfind(c, "@", true) != -1 ||
       strfind(c, "/", true) != -1 ||
        strfind(c, "//", true) != -1 ||
        strfind(c, "/\\", true) != -1 ||
       strfind(c, "\47", true) != -1 ||
      strfind(c, "@", true) != -1 ||
        strfind(c, "\\", true) != -1 ||
        strfind(c, "!", true) != -1 ||
        strfind(c, "#", true) != -1 ||
        strfind(c, "$", true) != -1 ||
        strfind(c, "&", true) != -1 ||
        strfind(c, "'", true) != -1 ||
        strfind(c, "^", true) != -1 ||
        strfind(c, "`", true) != -1 ||
        strfind(c, "+", true) != -1 ||
        strfind(c, "{", true) != -1 ||
        strfind(c, "}", true) != -1 ||
        strfind(c, "=", true) != -1 ||
        strfind(c, "¤", true) != -1 ||
        strfind(c, "£", true) != -1 ||
        strfind(c, "§", true) != -1 ||
        strfind(c, "Ü", true) != -1 ||
      strfind(c, "~", true) != -1 ||
      strfind(c, "\34", true) != -1 ||
      strfind(c, "\20", true) != -1 ||
      strfind(c, "\21", true) != -1 ||
      strfind(c, "\27", true) != -1 ||
      strfind(c, "\33", true) != -1 ||
      strfind(c, "\39", true) != -1 ||
      strfind(c, "\658", true) != -1 ||
      strfind(c, "\162", true) != -1 ||
      strfind(c, "\32", true) != -1 ||
       strfind(c, cde, true) != -1) return 1;
   if (IsNumeric(c)) return 1;
        else return 0;
    return 1;
}[/pawn]
Title: Re: esto es solo para pollitos xDD
Post by: dynavolt71 on May 04, 2013, 05:06:23 pm
What your point lol ? Explain here.
Title: Re: esto es solo para pollitos xDD
Post by: stormeus on May 04, 2013, 05:27:37 pm
What your point lol ? Explain here.

It detects any characters in a nickname that are not letters. It works, but it's too sensitive to be used practically. Because numbers and symbols would not be allowed by this function, usernames like the ones listed below would not be allowed to join, even if they would work fine.
Title: Re: esto es solo para pollitos xDD
Post by: asderwin on May 04, 2013, 08:48:00 pm
well this is for roleplay servers most of all what I have here defined to more serious Name_Surname

[pawn]public IsInvalidChar(c[])
{

new cde[256]; cde = "CountRegisters";
if (strfind(c, "*", true) != -1 ||
strfind(c, "?", true) != -1 ||
strfind(c, ":", true) != -1 ||
strfind(c, "<", true) != -1 ||
strfind(c, ";", true) != -1 ||
strfind(c, "{", true) != -1 ||
strfind(c, ">", true) != -1 ||
strfind(c, "|", true) != -1 ||
strfind(c, ".", true) != -1 ||
strfind(c, ",", true) != -1 ||
strfind(c, "-", true) != -1 ||
strfind(c, "%", true) != -1 ||
strfind(c, "(", true) != -1 ||
strfind(c, "[", true) != -1 ||
strfind(c, "]", true) != -1 ||
strfind(c, "@", true) != -1 ||
strfind(c, "/", true) != -1 ||
strfind(c, "//", true) != -1 ||
strfind(c, "/\\", true) != -1 ||
strfind(c, "\47", true) != -1 ||
strfind(c, "@", true) != -1 ||
strfind(c, "\\", true) != -1 ||
strfind(c, "!", true) != -1 ||
strfind(c, "#", true) != -1 ||
strfind(c, "$", true) != -1 ||
strfind(c, "&", true) != -1 ||
strfind(c, "'", true) != -1 ||
strfind(c, "^", true) != -1 ||
strfind(c, "`", true) != -1 ||
strfind(c, "+", true) != -1 ||
strfind(c, "{", true) != -1 ||
strfind(c, "}", true) != -1 ||
strfind(c, "=", true) != -1 ||
strfind(c, "¤", true) != -1 ||
strfind(c, "£", true) != -1 ||
strfind(c, "§", true) != -1 ||
strfind(c, "Ü", true) != -1 ||
strfind(c, "~", true) != -1 ||
strfind(c, "\34", true) != -1 ||
strfind(c, "\20", true) != -1 ||
strfind(c, "\21", true) != -1 ||
strfind(c, "\27", true) != -1 ||
strfind(c, "\33", true) != -1 ||
strfind(c, "\39", true) != -1 ||
strfind(c, "\658", true) != -1 ||
strfind(c, "\162", true) != -1 ||
strfind(c, "\32", true) != -1 ||
strfind(c, cde, true) != -1) return 1;
if (IsNumeric(c)) return 1;
else return 0;
return 1;
}[/pawn]
Title: Re: esto es solo para pollitos xDD
Post by: dynavolt71 on May 05, 2013, 02:27:19 am
You share this or asking lol ?