11.03.2012, 23:05
pawn Код:
public OnPlayerDeath( playerid, killerid, reason ) {
if ( killerid != INVALID_PLAYER_ID ) {
new wepName[32];
new deathStr[82];
new killerName[24];
GetPlayerName( killerid, killerName, 24 );
GetWeaponName( reason, wepName, 32 );
format( deathStr, 82, "You were killed by %s using a %s.", killerName );
SendClientMessage( playerid, -1, deathStr );
}
return 1;
}