public OnPlayerDeath(playerid, killerid, reason) { if(killerid == INVALID_PLAYER_ID) { new name[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "*** %s died.", name); SendClientMessageToAll(COLOR_GREEN, string); } else { new killername[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(killerid, killername, MAX_PLAYER_NAME); GetPlayerName(playerid,playername, MAX_PLAYER_NAME); format(string, sizeof(string), "***%s killed %s!", killername, playername); SendClientMessageToAll(COLOR_GREEN, string); } }