Quote:
Originally Posted by cbk1994
Something like this is generally preferable to the above as it's not using old Gscript. Note that it will only work online.
PHP Code:
function onCreated() {
this.dontBlock();
}
//#CLIENTSIDE
function onCreated() {
this.dontBlock();
this.drawOverPlayer();
if (lighteffectsenabled) {
this.setColorEffect(0, 1, 0, 0.8); // red, green, blue, alpha
} else {
this.hide();
}
}
Give it an image (usually light2.png or light3.png).
|
Ah sorry. Setting a bad example. The method above if far better than mine. I just thought that if I tried to explain this, he wouldn't know where to put it.