PlayerId
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{

    new string[128], kname[MAX_PLAYER_NAME+1], pname[MAX_PLAYER_NAME+1];
    GetPlayerName(killerid, kname, sizeof(kname));
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "> Player %s (ID:%d) has killed Player %s (ID:%d)", kname, killerid, pname, playerid);
    // Do whatever here to send it to whoever you want

    return 1;
}
Reply


Messages In This Thread
PlayerId - by lsreskjn - 14.02.2014, 23:03
Re: PlayerId - by Threshold - 14.02.2014, 23:17
Re: PlayerId - by AnthonyTimmers - 15.02.2014, 00:03
Re: PlayerId - by Abreezy - 15.02.2014, 00:29

Forum Jump:


Users browsing this thread: 1 Guest(s)