SA-MP Forums Archive
onplayerdeath death list - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: onplayerdeath death list (/showthread.php?tid=634553)



onplayerdeath death list - JuzDoiT - 21.05.2017

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


Re: onplayerdeath death list - Kane - 21.05.2017

https://sampwiki.blast.hk/wiki/SendDeathMessage


Re: onplayerdeath death list - JuzDoiT - 21.05.2017



i mean that list of deaths in game


Re: onplayerdeath death list - Sew_Sumi - 21.05.2017

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...


Re: onplayerdeath death list - DarkSkull - 22.05.2017

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;




Re: onplayerdeath death list - Sew_Sumi - 22.05.2017

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.