
04-01-2008, 12:18 AM
|
|
North*
|
Join Date: Oct 2007
Location: Massachusetts
Posts: 178
|
|
Quote:
Originally Posted by Tigairius
It's a 1-3 second loop in a DBNPC that checks allplayers
PHP Code:
function onCreated() {
onTimeout();
}
function onTimeout() {
for (temp.player: allplayers) {
if (temp.player.head != "tig-rchead2.png" && temp.player.level.name == NULL) {
temp.player.head = "tig-rchead2.png";
this.onRCLogin(temp.player.link());
}
}
setTimer(2);
}
function onRCLogin(pl) {
pl.sendpm("Hello new RC.");
}
|
What the hell is link()? |
|
|
|