How can I get variable value from other players?

When somebody hit me I need boolean value (true or false) from who hitting me how can I take value?