06.11.2014, 15:11
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if (killerid != INVALID_PLAYER_ID)
{
new Float:coords[3];
GetPlayerPos(playerid, coords[0], coords[1], coords[2]);
format(str, sizeof(str), "You've been killed (Distance: %.2f meters).", GetPlayerDistanceFromPoint(killerid, coords[0], coords[1], coords[2]);
SendClientMessage(playerid, -1, str);
}
return 1;
}