Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: W3aPoN^ on Jul 18, 2016, 09:14 AM

Title: Headshot Bonus
Post by: W3aPoN^ on Jul 18, 2016, 09:14 AM
Hello Guys I am Here With Another Problem I Need A Script For 0.4 Server That Give Player Cash Bonus When He Kill A Player With A HEADSHOT Thanks For Your Advance HELP
Title: Re: Headshot Bonus
Post by: Finch Real on Jul 18, 2016, 09:32 AM
Add this onplayerkill
function onPlayerKill( killer, player, reason, bodypart )
{
killer.Score++;
if (bodypart == BODYPART_HEAD) { killer.Cash += 50000; PrivMessage( killer, "Wtf You are pro " ); }
}
Title: Re: Headshot Bonus
Post by: W3aPoN^ on Jul 18, 2016, 04:20 PM
Thanks Buddy For Your HELP
Title: Re: Headshot Bonus
Post by: MEGAMIND on Jul 18, 2016, 04:58 PM
Finch codes always works if u put it on the right path
Title: Re: Headshot Bonus
Post by: W3aPoN^ on Jul 19, 2016, 04:17 PM
Thanks It Really Works Thanks Thanks Thanks