The code works when i am a game multiplayer server using "create game" option (or something like that), but it doesnt work when i use the same code in public servers (im not sure if being an admin changes anything, it was a long time ago).
Because of this i made code that sends server-client event, with all needed data (but without making operations with that data server side like distance in meters) to that one particular player who attacked. That allows me to do the same thing as code i send before, but only when client is on servers with my module. I dont know if that is optimal solution xD
thanks for help and links!!