Code:
public Fwd_PlayerKilled()
{
if( g_iCurrentGame == GAME_NO || g_iCurrentGame == GAME_SPARTA || g_iCurrentGame == GAME_SHARK) //Check if a game is on
return PLUGIN_HANLED; //Stop the function if a game is on
else(getPlayers(CS_TEAM_T) == 1) //Else check if 1 player is alive? i guess
{
StopGame() //Stop game
ColorChat(0, GREY, "Death Match") //Print message
}
}
__________________