Code:
Light entities
* light
* light_spot
* light_dynamic
* env_projectedtexture
* point_spotlight
* light_environment
* light_directional
Code:
public plugin_init() register_srvcmd("parse", "@parse_Hook")
@parse_Hook(){
static const
_Light_entities[][] = {
"light", "light_spot",
"light_dynamic", "env_projectedtexture",
"point_spotlight", "light_environment",
"light_directional"
}
;
for(new i; i < sizeof _Light_entities; i++)
if(_findEntityByName( _Light_entities[i] )) server_print("Found : %s", _Light_entities[i]);
}
stock _findEntityByName( _className[], _entity = -1 ){
while((_entity = find_ent_by_class(_entity, _className)))
return true;
return false;
}
Edit : I'm still searching if it exist or not or it I should create it ...
I wanted to see if it's just light_environment or the others light entities this is why I tried them all.
Maybe I'm getting something wrong.
__________________
XX was created just for giving evidence and not meant to damage public servers.
&We do not test on public servers.
Thank's.