onplayerdeath death list
#1

hey how do i show onplayerdeath death list in game here's my onplayerdeath func..

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        new 
string[128], weapon[32], killerName[MAX_PLAYER_NAME], playerName[MAX_PLAYER_NAME],
        
Float:pXFloat:pYFloat:pZFloatPfPDistance;
        
GetPlayerName(killeridkillerNamesizeof(killerName));
        
GetPlayerName(playeridplayerNamesizeof(playerName));
        
GetWeaponName(reasonweaponsizeof(weapon));
        
GetPlayerPos(playeridpXpYpZ);
        
PfPDistance GetPlayerDistanceFromPoint(killeridpXpYpZ);
        
format(stringsizeof(string), "%s (%i) Killed %s (%i) - %s From %0.2fm Away."killerNamekilleridplayerNameplayeridweaponPfPDistance);
        
SendClientMessageToAll(0x9D000096string);
        
//
        
PlayerInfo[killerid][pKills]++;
    }
    
DeadPlayer[playerid] = 0;
    
SetPlayerColor(playeridCOLOR_DEAD);
    
PlayerInfo[playerid][pDeaths]++;
    
    
TextDrawHideForPlayer(playerid,Clock);
    
TextDrawHideForPlayer(playeridDaysOfWeek);
    
TextDrawHideForPlayer(playeridFpsAndPing[playerid]);
    
TextDrawHideForPlayer(playeridZoneName[playerid]);
    
HideTDs(playerid);
    return 
1;



exc mike vegas killed joker
Reply
#2

https://sampwiki.blast.hk/wiki/SendDeathMessage
Reply
#3



i mean that list of deaths in game
Reply
#4

Quote:
Originally Posted by JuzDoiT
Посмотреть сообщение


i mean that list of deaths in game
That is what he linked to... At least read what's provided before thinking it's not what you want...
Reply
#5

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        new 
string[128], weapon[32], killerName[MAX_PLAYER_NAME], playerName[MAX_PLAYER_NAME],
        
Float:pXFloat:pYFloat:pZFloatPfPDistance;
        
GetPlayerName(killeridkillerNamesizeof(killerName));
        
GetPlayerName(playeridplayerNamesizeof(playerName));
        
GetWeaponName(reasonweaponsizeof(weapon));
        
GetPlayerPos(playeridpXpYpZ);
        
PfPDistance GetPlayerDistanceFromPoint(killeridpXpYpZ);
        
format(stringsizeof(string), "%s (%i) Killed %s (%i) - %s From %0.2fm Away."killerNamekilleridplayerNameplayeridweaponPfPDistance);
        
SendClientMessageToAll(0x9D000096string);
        
SendDeathMessage(killeridplayeridreason);
        
//
        
PlayerInfo[killerid][pKills]++;
    }
    
DeadPlayer[playerid] = 0;
    
SetPlayerColor(playeridCOLOR_DEAD);
    
PlayerInfo[playerid][pDeaths]++;
    
    
TextDrawHideForPlayer(playerid,Clock);
    
TextDrawHideForPlayer(playeridDaysOfWeek);
    
TextDrawHideForPlayer(playeridFpsAndPing[playerid]);
    
TextDrawHideForPlayer(playeridZoneName[playerid]);
    
HideTDs(playerid);
    return 
1;

Reply
#6

You added one line... Yet quote the whole code, and don't even highlight where it was added.

It also doesn't cover killing themselves.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)