Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

onplayerdeath death list

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

PHP Code:

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

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>