
03-31-2008, 07:48 PM
|
|
ǝɔɐɹq ʎןɹnɔ
|
 |
Join Date: Dec 2006
Location: Germany
Posts: 5,153
|
|
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.");
}
|
Ah ;D |
|
|
|