Author Topic: Timing? And Kill  (Read 503 times)

Is there a code for timing in a server like %if30:00 = true, Kthxbai
And also is there an on kill function that keeps total kills but not the ones you get in a row thanks in advance? cookiez :cookie: :cookie:

« Last Edit: January 30, 2008, 11:30:51 AM by Kunit_Yo »

schedule(<time to delay in milliseconds>,0,command,arg1,arg2,...);
will call code after a specified amount of time

or %obj.schedule(<time to delay in milliseconds>,method,arg1,arg2,...);
will call method on %obj after a specified amount of time ( %obj.method(); )

also you can assign a variable to the schedule so you can cancel it.

schedule(10000,0,messageAll,'','Example 1'); //message everyone in your server Example 1 after 10 seconds

%obj.schedule(10000,kill); //kill %obj after 10 seconds

%delete = schedule(10000,delete); //delete %obj after 10 seconds
cancel(%delete); //nvm, dont delete %obj   


}