• Welcome to Vice City Multiplayer.
 

hmm i think this thing is buged

Started by scripter_pawn, April 15, 2011, 06:07:48 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

scripter_pawn

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);
   }
   }
}