public OnPlayerDeath(playerid, killerid, reason)
#1

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        if(!
IsPlayerNPC(playerid))
        {
            new 
name[24], kname[30], string[64];
            
GetPlayerName(playeridname24);
            
GetPlayerName(killeridkname30);
            
format(stringsizeof(string), "%s has been killed by %s with weapon: %s"name,kname,reason);
SendMessageToAllAdmins(string, -1); 
But at weapon name it shows "t"
Reply


Messages In This Thread
public OnPlayerDeath(playerid, killerid, reason) - by Zeus666 - 22.09.2018, 17:16
Re: public OnPlayerDeath(playerid, killerid, reason) - by solstice_ - 22.09.2018, 17:18
Re: public OnPlayerDeath(playerid, killerid, reason) - by VVWVV - 22.09.2018, 17:23
Re: public OnPlayerDeath(playerid, killerid, reason) - by v1k1nG - 22.09.2018, 19:05
Re: public OnPlayerDeath(playerid, killerid, reason) - by TheToretto - 23.09.2018, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)