I don't quite understand why gani's won't check for the light effects enabled featured
PHP Code:
SCRIPT
function onPlayerEnters()
{
if (lighteffectsenabled)
{
if (client.options_disabledaynight == NULL)
{
if (playerdir == 0) this.lightx = 5;
if (playerdir == 1) this.lightx = 6;
if (playerdir == 3) this.lightx = 4;
if (playerdir == 2) this.lightx = 5;
onTimeout();
}
}
else //I added this just as a ''futher-more'' check
{
hideimgs(200, 202);
}
}
function onTimeout()
{
if (hours in |0, 7| || hours in |18, 24|)
{
showimg(200, "era_lamplight_1.png", playerx - this.lightx, playery - 10);
changeimgcolors(200, 0.976, 0.988, 0.705, 0.25);
changeimgvis(200, 3);
changeimgzoom(200, 1);
showimg(201, "light2.png", playerx - this.lightx + 2.5, playery - 3);
changeimgcolors(201, 0.976, 0.988, 0.705, 0.55);
changeimgvis(201, 3);
changeimgzoom(201, 4);
}
else
{
hideimgs(200, 202);
}
setTimer(10);
}
SCRIPTEND
If anyone knows please help, thanks.
Ahh, I found the problem, before I posted this it was in GS1, swapping it all over the GS2 managed to fix the problem. Thanks
