Blocking language at OnPlayerText
#6

pawn Код:
if( text[ 45 ] == '§' )
{
   SendClientMessage( playerid, WHITE, "You can't use this language" );
   return 0;
}
- You need to use single quotes in order to check for a single symbol.
- You need to return 0 to prevent the text.
Reply


Messages In This Thread
Blocking language at OnPlayerText - by yanir3 - 26.01.2011, 06:09
Re: Blocking language at OnPlayerText - by Retardedwolf - 26.01.2011, 06:09
Re: Blocking language at OnPlayerText - by PeteShag - 26.01.2011, 06:12
Re: Blocking language at OnPlayerText - by Grim_ - 26.01.2011, 06:13
Re: Blocking language at OnPlayerText - by yanir3 - 26.01.2011, 06:15
Re: Blocking language at OnPlayerText - by Grim_ - 26.01.2011, 06:16
Re: Blocking language at OnPlayerText - by yanir3 - 26.01.2011, 06:34
Re: Blocking language at OnPlayerText - by Grim_ - 26.01.2011, 06:39

Forum Jump:


Users browsing this thread: 3 Guest(s)