Still needs some modifications but it should be a good start:
PHP Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <cstrike>
#pragma semicolon 1
#pragma newdecls required
public void OnMapStart()
{
HookEvent("player_death", OnPlayerDeathPost);
}
public void OnPlayerDeathPost(Event hEvent, const char[] szName, bool bDontBroadcast)
{
int iAttacker = GetClientOfUserId(hEvent.GetInt("attacker"));
if (IsClientInGame(iAttacker) && IsPlayerAlive(iAttacker))
{
int iHealth = GetClientHealth(iAttacker) + 5;
if (iHealth >= 200)
{
// Optional
SetEntityHealth(iAttacker, 200);
PrintToChatAll("Player %N won the round !", iAttacker);
CS_TerminateRound(3.0, CSRoundEnd_Draw);
}
else
{
SetEntityHealth(iAttacker, iHealth);
}
}
}
__________________