Random Killer Cash

Started by Zone_Killer, Dec 17, 2016, 10:49 AM

Previous topic - Next topic

Zone_Killer

i made this function but its not working please help.

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

what did u make lol??? Show the codes.

Zone_Killer

#2
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

try it
function onPlayerKill( killer, player, reason, bodypart )
{
     local cash = random (10000,50000);
     IncCash( killer, cash );
}

Zone_Killer

Bohemia Is God Of Punjabi Rap
Yo Yo Honey Singh tou chutiya hai

EK.IceFlake

I'm telling you, you're going to have some serious inflation problems if you give 10000-50000 for each kill.