way to stop adverting?
#10

pawn Код:
public OnPlayerText(playerid, text[])
{
  new dotcount =0;
  new coloncount =0;
  for(new a=1; a <strlen(text); a++)
  {
    if(text[a] == ':')
    {
      coloncount ++;
    }
    else
    if(text[a] == '.')
    {
      dotcount ++;
    }
  }
  if(dotcount == 3 && coloncount == 1)
  {
    // kick?
    return 0;
  }
}
Pretty basic way of doing it
Reply


Messages In This Thread
way to stop adverting? - by DiddyBop - 23.12.2009, 18:52
Re: way to stop adverting? - by mamorunl - 23.12.2009, 18:54
Re: way to stop adverting? - by Striker_Moe - 23.12.2009, 18:56
Re: way to stop adverting? - by Correlli - 23.12.2009, 18:57
Re: way to stop adverting? - by Striker_Moe - 23.12.2009, 18:59
Re: way to stop adverting? - by DiddyBop - 23.12.2009, 19:06
Re: way to stop adverting? - by Correlli - 23.12.2009, 19:07
Re: way to stop adverting? - by DiddyBop - 23.12.2009, 19:13
Re: way to stop adverting? - by Niixie - 23.12.2009, 19:15
Re: way to stop adverting? - by BMUK - 23.12.2009, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)