How to Get Distance when we kill someone

Started by PLAYER, Aug 27, 2024, 02:00 PM

Previous topic - Next topic

PLAYER

Hey Guys I want Distance Function like when someone kill other player the message
[#1FFFF9]>> Gabar[#FFF11B] killed [#FF0000] barosanu[#FFF11B] Weapon: [[#6BFF46]M4[#FFF11B]] [#FFF11B]Ping:[#1FFFF9][166] Distance: ( This )

PLAYER

I want only Distance Function if someone have then share with me

umar4911

DistanceFromPoint(killer.Pos.x, killer.Pos.y, player.Pos.x, player.Pos.y)
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter

vitovc

also for 3d distance killer.Pos.Distance(player.Pos)
...::: vice city :::...
Useful things for vcmp: Relative position and finding an angle (in 3d), 3d line (like laser)