Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: NicusorN5 on Jan 24, 2016, 12:41 PM

Title: How do i increase player money
Post by: NicusorN5 on Jan 24, 2016, 12:41 PM
I tried
function onPlayerKill( player, killer, reason, bodypart )
{
 killer.Money +=1000 ;
}

Also i changed my name , connected to my server and i found that i cant kill the other character :( .

Can u help me :D ?
Title: Re: How do i increase player money
Post by: KAKAN on Jan 24, 2016, 12:49 PM
Well, use this:-
onPlayerKill( killer, player, reason, bodypart ){
//Do shits here
}
Title: Re: How do i increase player money
Post by: jayant on Jan 24, 2016, 01:03 PM
function onPlayerKill( player, killer, reason, bodypart )
{
 killer.Cash += 1000 ;//Increase the killer's money to 1000
 player.Cash -=500;//Decrease 500 from player who got killed
}
Title: Re: How do i increase player money
Post by: NicusorN5 on Jan 24, 2016, 01:21 PM
Thanks :D