hmm i tried that but i didnt had any effect of changeing the color.
It did compile without errors or Warnings.
-
Code:
public function(id)
{
new red[12], green[12], blue[12]
read_argv(1, red, 11);
read_argv(2, green, 11);
read_argv(3, blue, 11);
//creating the Entity is also here done
new Float:colorvec[3];
colorvec[0] = Float:floatstr(red)
colorvec[1] = Float:floatstr(green)
colorvec[2] = Float:floatstr(blue)
entity_set_vector(avatar[id], EV_VEC_rendercolor, colorvec )
return PLUGIN_HANDLED
}
__________________