Distance Shoot
#4

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;
}
Reply


Messages In This Thread
Distance Shoot - by Hostoxide - 06.11.2014, 11:32
Re: Distance Shoot - by scout322 - 06.11.2014, 14:07
Re: Distance Shoot - by scout322 - 06.11.2014, 14:11
Re: Distance Shoot - by Anzipane - 06.11.2014, 15:11

Forum Jump:


Users browsing this thread: 4 Guest(s)