i made this function but its not working please help.
function onPlayerKill( killer, player, reason, bodypart )
{
IncCash( killer ); random (10000,50000);
}
what did u make lol??? Show the codes.
function IncCash( player, amount )
{
local cash = status[ player.ID ].Cash;
local add = cash + amount;
status[ player.ID ].Cash = add;
player.Cash = add;
}
try it
function onPlayerKill( killer, player, reason, bodypart )
{
local cash = random (10000,50000);
IncCash( killer, cash );
}
Ty. 8)
I'm telling you, you're going to have some serious inflation problems if you give 10000-50000 for each kill.