Author Topic: hmm i think this thing is buged  (Read 1724 times)

0 Members and 1 Guest are viewing this topic.

Offline scripter_pawn

  • Street Thug
  • *
  • Posts: 30
    • View Profile
hmm i think this thing is buged
« on: April 15, 2011, 08:07:48 pm »
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);
   }
   }
}