Author Topic: Message filter??  (Read 954 times)

0 Members and 2 Guests are viewing this topic.

Offline iLink

  • Major(1)
  • Posts: 1
Message filter??
« on: August 23, 2010, 01:44:28 pm »
Is there a way to filter messages by word??

Something like this:

function OnPlayerSpeak(ID: Byte; Text: string): boolean;
begin

if ContainsString(Text, 'word') then CANCELPLAYERMESSAGE
//So.. if the message has the 'word' then it doesnt show up

end;

thanks...

Offline freestyler

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 326
Re: Message filter??
« Reply #1 on: August 23, 2010, 02:40:31 pm »
no. you can't.

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: Message filter??
« Reply #2 on: August 24, 2010, 11:06:02 am »
Well, if OnPlayerSpeak looked like you wrote in that post it would be possible.