This way, I think.
Code:
public fl(ent)
{
// check if entity isn't valid
if(!pev_valid(ent))
return;
// new variable for origin and get origin of entity
static Floatrigin[3];
pev(ent,pev_origin,origin);
// send the light flash
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(27); // TE_DLIGHT
write_coord(floatround(origin[0])); // x
write_coord(floatround(origin[1])); // y
write_coord(floatround(origin[2])); // z
write_byte(radius); // radius
write_byte(255); // r
write_byte(255); // g
write_byte(255); // b
write_byte(255); // life
write_byte(60); // decay rate
message_end();
}
__________________