Have a look at using engfunc with EngFunc_CreateNamedEntity.
PHP Code:
iEnt = engfunc(EngFunc_CreateNamedEntity, server_data[LASER_ENTITY])
server_data[LASER_ENTITY] - should be init by using engfunc(EngFunc_AllocString, "info_target") where "info_target" is classname, which can be changed to suit your needs.
There is no server_data[LASER_ENTITY] initialization in your code, by default all variables in the pawn are initialized to zero.
https://github.com/dreamstalker/rehl....cpp#L901-L902