RaceProUK
Elite Member
Posts: 6073 Reputation: 57
39 / /
Joined: Oct 2003
|
RE: Delay a function
code: function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
MsgPlus.AddTimer("yoyo", 1000)
if (Message == "=D") {
ChatWnd.SendMessage(":')");
}
}
function OnEvent_Timer(TimerId)
{
if (TimerId == "yoyo") {
ChatWnd.SendMessage("jeej");
}
}
|
|