i got this nifty code:
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
}
}
but now i want after 10 secs, that the gepraat[Origin] value gets resetted to false again. does anybody know how to implent the AddTimer function?