Blocking language at OnPlayerText
#4

You would need to actually check the text that is passed to OnPlayerText and see if it contains Spanish words or symbols. If it does, you can return 0, as Retardedwolf said, to prevent the text from being sent.

Unless you want to write an array of all the Spanish words, then just check for a few common ones or Spanish symbols (for example, n with tilt symbol). Besides that, I cannot think of another way of preventing it. It may have gotten past me here at 2AM, however.
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)