alexp2_ad
Scripting Contest Winner
Who love the chocolate?
Posts: 691 Reputation: 26
37 / / –
Joined: May 2004
Status: Away
|
RE: [help] AddTimer to change var
code: var gepraat = Array();
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
if(MessageKind == 1 && Messenger.MyStatus == 7 && Messenger.MyName != Origin && gepraat[Origin] != true)
{
var Message = "Hoi " + Origin +". \n Hier komt zo te staan wat je kan doen:\n 1. Niks\n 2. Ook niks\n 3. Nog steeds niks."
ChatWnd.SendMessage(Message);
gepraat[Origin] = true;
MsgPlus.AddTimer('reset',10000);
}
}
function OnEvent_Timer(sTimerId){
if(sTimerId == 'reset'){ gepraat[Origin] = false; }
}
Should do the trick...
|
|