Author Topic: esto es solo para pollitos xDD  (Read 3260 times)

0 Members and 1 Guest are viewing this topic.

Offline asderwin

  • Street Thug
  • *
  • Posts: 15
    • View Profile
esto es solo para pollitos xDD
« 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]

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: esto es solo para pollitos xDD
« Reply #1 on: May 04, 2013, 05:06:23 pm »
What your point lol ? Explain here.
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: esto es solo para pollitos xDD
« Reply #2 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.
  • Storm3us
  • [CLAN]Stormeus
  • =CLAN=Stormeus
  • CLAN.Stormeus
  • (CLAN)Stormeus
  • #CLAN#Stormeus
  • {CLAN}Stormeus
« Last Edit: May 04, 2013, 05:29:43 pm by stormeus »
Do not PM me for support.




Offline asderwin

  • Street Thug
  • *
  • Posts: 15
    • View Profile
Re: esto es solo para pollitos xDD
« Reply #3 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]
« Last Edit: May 04, 2013, 08:59:52 pm by asderwin »

Offline dynavolt71

  • Crime Boss
  • ****
  • Posts: 371
    • View Profile
    • My Blog
Re: esto es solo para pollitos xDD
« Reply #4 on: May 05, 2013, 02:27:19 am »
You share this or asking lol ?
[PAWNO]Fix Error " Failed to set data for "" " - http://forum.vicecitymultiplayer.com/index.php?topic=5743.0



:'(