killer distance ?
#8

No, it will not. You never get any position.

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
[..] Get the position of the player who died and then use the above function for the killer and the position of the player who died. It returns the distance between the two players.
pawn Код:
new Float:x, Float:y, Float:z, Float:fDistance, szMessage[44];
GetPlayerPos(playerid, x, y, z);
fDistance = GetPlayerDistanceFromPoint(killerid, x, y, z);
format(szMessage, sizeof(szMessage), "%s has killed %s from the distance of %0.2f", killerid, playerid, fDistance);
SendClientMessage(playerid, 0xA9C4E4FF, szMessage);
Reply


Messages In This Thread
killer distance ? - by Champ - 09.11.2013, 19:19
Re: killer distance ? - by Konstantinos - 09.11.2013, 19:24
Re: killer distance ? - by erminpr0 - 09.11.2013, 19:29
Re: killer distance ? - by Pottus - 09.11.2013, 19:33
Re: killer distance ? - by Champ - 09.11.2013, 19:40
Re: killer distance ? - by Champ - 09.11.2013, 19:50
Re: killer distance ? - by iZN - 09.11.2013, 19:53
Re: killer distance ? - by Konstantinos - 09.11.2013, 19:54
Re: killer distance ? - by Champ - 09.11.2013, 20:08
Re: killer distance ? - by Konstantinos - 09.11.2013, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)