My last post was kind of sloppy so I'll rewrite it.
You'll want to use
seteffect(r,g,b,a); I'm not sure if you're talking about creating a fade effect or not but if you are you'll need to modify the alpha in a loop to get the desired effect. If you want to test it in the offline editor you'll have to use seteffect r,g,b,a;
PHP Code:
//#CLIENTSIDE
function onCreated(){
setEffect(0.4,0.9,0.2,.8); // setEffect(red,green,blue,alpha)
}
Alternatively you can use backpals if you want to get punched in the face.