Quote:
|
Originally Posted by sambro
Inside the logevent function, you use read_data to get a parameter. Try using read_data(0), it may give you the name of the logevent.
|
I think read_data is made for "normal" events, not log events. It crashes when trying to use read_data for log events.
I've got an idea for the other problem though (melee attack on objects). Using client_PreThink, entity_get_int and get_user_weapon I could find out an attacker's ID and weapon. The problem is then to find out if the player is attacking an object, and if this object belongs to his own team or not.