Quote:
Originally Posted by Skyld
PHP Code:
//#CLIENTSIDE
function onCreated()
{
this.badwords = {"one", "two", "three"};
}
function onPlayerChats()
{
for (temp.word: player.chat.tokenize())
{
if (temp.word in this.badwords)
{
player.chat = "bzzt";
}
}
}
... to do it using tokens of the player's chat text.
|
What's the : for and what's it mean, so I can use it later? Also, what's a ? used for in some scripts after the name of a string or something... offtopic on that bu wanted to know xD
Quote:
Originally Posted by Novo
PHP Code:
function onPlayerChat()
{
player.chat = "";
}
This'll prevent any vulgar words in any language from being said.
|
lurvsu!