First, I suggest posting code on the forums inbetween [php][/php] tags. At least we have
some syntax highlighting then.
Second, you got a small but important error in your code. You have to place quotation marks around strings, like light2.png in your case. This should work:
PHP Code:
function onCreated() {
setimg("light2.png");
dontblock();
}
//#CLIENTSIDE
function onPlayerEnters() {
drawaslight();
setcoloreffect(1, 1, 1, .99);
setzoomeffect(3);
}