Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Zone_Killer on Dec 17, 2016, 10:49 AM

Title: Random Killer Cash
Post by: Zone_Killer on Dec 17, 2016, 10:49 AM
i made this function but its not working please help.

function onPlayerKill( killer, player, reason, bodypart )
{
IncCash( killer ); random (10000,50000);
}
Title: Re: Random Killer Cash
Post by: Anik on Dec 17, 2016, 11:03 AM
what did u make lol??? Show the codes.
Title: Re: Random Killer Cash
Post by: Zone_Killer on Dec 17, 2016, 11:10 AM
function IncCash( player, amount )
{
local cash = status[ player.ID ].Cash;
local add = cash + amount;
status[ player.ID ].Cash = add;
player.Cash = add;
}
Title: Re: Random Killer Cash
Post by: Anik on Dec 17, 2016, 11:16 AM
try it
function onPlayerKill( killer, player, reason, bodypart )
{
     local cash = random (10000,50000);
     IncCash( killer, cash );
}
Title: Re: Random Killer Cash
Post by: Zone_Killer on Dec 17, 2016, 11:18 AM
Ty. 8)
Title: Re: Random Killer Cash
Post by: EK.IceFlake on Dec 17, 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.