Quote:
Originally Posted by Pandar
PHP Code:
function onTimeOut() { for (i:allplayers) { if (i.level == this.level) { i.client.lnpcn = this.name; } } setTimer(1); }
|
why not just use
PHP Code:
for (i:players) {
i.client.lnpcn = this.name;
}
or better
PHP Code:
function onPlayerEnters() {
player.client.lnpcn = this.name;
//on clientside then this.n = player.client.lnpcn;
}
?
also, wouldnt this stop working if you use several npcs? i'd just suggest to stick with the setshape/triggeraction version like you mentioned it