function onPlayerKill( killer, killed, weapon, bodypart )
{
EchoMessage(killer+" killed "+killed);
local event = HGet("Events","type");
local event2 = HGet("Events","price");
local plrprice = HGet("FBSFinance",player.Name+"cash");
if (event == "on")
{
HAdd("FBSFinnance",player.Name+"cash",plrprice+event2);
PrivMessage("Reward "+event2,player);
}
else
{
local tog = HGet("FBSStats",killer.Name+"Toggle");
local kl = HGet("FBSStats",killer.Name+"Kills");
if ( tog == "on")
{
HAdd("FBSStats",killer.Name+"Kills",kl + 1);
HAdd("FBSFinance",player.Name+"cash",5000);
PrivMessage("Reward 5000 $",player);
}
else
{
HAdd("FBSM",killer.Name+"none",1);
}
}
}