12.04.2015, 10:15
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new gunname[32],string[128],Name[MAX_PLAYER_NAME],kName[MAX_PLAYER_NAME];
GetWeaponName(reason,gunname,sizeof gunname);
GetPlayerName(playerid,Name,MAX_PLAYER_NAME);
GetPlayerName(killerid,kName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has been killed by player %s with %s",Name,kName,gunname);
SendClientMessageToAll(-1,string);
return 1;
}