This is your problem inside function:
client_PreThink(id)
Code:
message_begin(MSG_ONE, SVC_TEMPENTITY, {0,0,0}, id)
write_byte(TE_DLIGHT)
write_coord(pos[0])
write_coord(pos[1])
write_coord(pos[2])
write_byte(80)
write_byte(200)
write_byte(200)
write_byte(200)
write_byte(5)
write_byte(10)
message_end()
This function is called very frequently not as frequent as ServerFrame, but still it's dangerous to create constant messages inside of this type of function.
The 2nd to last byte is how long this message will last in 10's.
Also when creating messages it's best to use an unreliable type, in this case MSG_ONE_UNRELIABLE to stop client overflow problems. Obviously there is cases where you need to make sure the message is reliable.
__________________