Okay so, i took this script from chris posted on forums, and i've added it, yet when players log off the light remains on the ground, how would i prevent that?
Script:
PHP Code:
//#CLIENTSIDE
function onCreated() {
onTimeOut();
}
function onTimeOut() {
for (temp.pl : players) {
showimg(200 + pl.id, "light2.png", pl.x - 2.5, pl.y - 2.0);
changeimgvis(200 + pl.id, 0);
changeimgcolors(200 + pl.id, 1, 8, 8, .8);
}
setTimer(0.05);
}