Hello There, Guest! Login or Register


Anti-caps filter
#5
Hello Guys !!!

i suggest to use that code i will do a PR later in Github
Quote:public OnPlayerText(playerid, text[])
{
      new Caps[4][] = {
        "PHP",
        "JSON",
        "ROFL",
        "OMG"
    };

      for (new d = 0; d< sizeof(Caps); d++) {

      for(new i=1; i<strlen(text); i++)
     {
        if(text[i] > 64 && text[i]< 91 && strfind (text, Caps[d], false) != -1) text[i] += 32;
      }
       return 1;
}

Sadly The Founder of This Feature Not Here :(
Reply


Messages In This Thread
Anti-caps filter - by Huracan - 09-01-2016, 12:11 PM
RE: Anti-caps filter - by cake - 09-01-2016, 12:14 PM
RE: Anti-caps filter - by Huracan - 09-01-2016, 12:17 PM
RE: Anti-caps filter - by Russell - 09-01-2016, 02:00 PM
RE: Anti-caps filter - by Yassine - 09-06-2016, 03:11 AM