PHP Code:
stock get_last_player_alive()
{
new players[32], pnum;
get_players(players, pnum,"ah")
if(pnum == 1) return players[0];
return 0;
}
public event_DeathMsg( ) {
new iVictim = get_last_player_alive();
if(!iVictim) return;
......
__________________