This topic was marked solved by its starter, on December 17th, 2016, 11:18 AM

Zone_Killer

  • Jr. Member
  • K.D.M No.1
  • Posts: 99
Random Killer Cash
« on December 17th, 2016, 10:49 AM »Last edited on December 17th, 2016, 11:21 AM
i made this function but its not working please help.

Code: [Select]
function onPlayerKill( killer, player, reason, bodypart )
{
IncCash( killer ); random (10000,50000);
}
Bohemia Is God Of Punjabi Rap
Yo Yo Honey Singh tou chutiya hai

Anik

  • Sr. Member
  • Posts: 355
Re: Random Killer Cash
« Reply #1, on December 17th, 2016, 11:03 AM »
what did u make lol??? Show the codes.

Zone_Killer

  • Jr. Member
  • K.D.M No.1
  • Posts: 99
Re: Random Killer Cash
« Reply #2, on December 17th, 2016, 11:10 AM »Last edited on December 17th, 2016, 11:20 AM
Code: [Select]
function IncCash( player, amount )
{
local cash = status[ player.ID ].Cash;
local add = cash + amount;
status[ player.ID ].Cash = add;
player.Cash = add;
}
Bohemia Is God Of Punjabi Rap
Yo Yo Honey Singh tou chutiya hai

Anik

  • Sr. Member
  • Posts: 355
Re: Random Killer Cash
« Reply #3, on December 17th, 2016, 11:16 AM »
try it
Code: [Select]
function onPlayerKill( killer, player, reason, bodypart )
{
     local cash = random (10000,50000);
     IncCash( killer, cash );
}

Zone_Killer

  • Jr. Member
  • K.D.M No.1
  • Posts: 99
Bohemia Is God Of Punjabi Rap
Yo Yo Honey Singh tou chutiya hai

EK.IceFlake

  • Hero Member
  • "We are the champions my fellahs" - Sufyan/VK.SuFy
  • Posts: 1,757
Re: Random Killer Cash
« Reply #5, on December 17th, 2016, 01:48 PM »
I'm telling you, you're going to have some serious inflation problems if you give 10000-50000 for each kill.