code:
var started = 0;
function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{
var RandomWordList = new Array("****", "****", "****", "****", "****", "***", "***", "*****", "***");
var pie = (RandomWordList[Math.floor(Math.random() * RandomWordList.length)]);
if(Message.charAt(0)!="/")
{
if(started==1)
{
if(Message=='stop!')
{
started=0;
return '';
}
else
{
return Message+" *cough* "+pie;
}
}
else if(started==0)
{
if(Message=='start!')
{
started=1;
return '';
}
}
}
else
{
return Message;
}
}
i think that says all
start! for activating it and stop! to disable it