Also: How to use schedules?
Object oriented schedules:
object.schedule(time in ms, function [arg1, arg2, argx...]); - Example %player.schedule(1000, lolfunction, stuff, %cake, %gold); will call %player.lolfunction(stuff,%cake,%gold);
Non-Object oriented schedules:
schedule(time in ms, 0 (no idea what else would go here), function, args and stuff); - example schedule(1000,0,banBLID,%client.bl_id,-1,"hur ur b& 4ever"); will call BanBLID(%client.bl_ID,-1,"hur ur b& 4ever"); after one second.
Schedules can also be applied to global variables and object values in case you need to cancel them for any reason.
global variable or object value = schedule(time in ms, 0, function, args);
or
global variable or object value = object.schedule(time in ms, function, args);
To cancel:
cancel(global variable or object value);
example:
$lolsched = schedule(10000,0,lolfunction);
and somewhere else
cancel($lolsched); will make so lolfunction will NOT be called after 10 seconds.