All pastes #282377 Raw Edit

Something

public text v1 · immutable
#282377 ·published 2006-12-17 15:06 UTC
rendered paste body
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);



}
}