09.11.2013, 19:54
No, it will not. You never get any position.
Quote:
[..] 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);