Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Diamond on Nov 02, 2015, 09:45 AM

Title: Team kill Help!
Post by: Diamond on Nov 02, 2015, 09:45 AM
I wanted to make free skin system, i changed one or to team to -1 or 255 and the players can get killed.. but they did not got money..

and i even didnt entered exception for same team on onPlayerKill..

So, i want to know how can i make the killer get money and who got killed to lose money..
Title: Re: Team kill Help!
Post by: KAKAN on Nov 02, 2015, 09:49 AM
Add this to your script:-
function onPlayerTeamKill( killer, player, reason, bodypart )  onPlayerKill( killer, player, reason, bodypart );Else add this:-
function onPlayerTeamKill( killer, player, reason, bodypart ) {
if( killer.Team == 1 ) onPlayerKill( killer, player, reason, bodypart );
}
Title: Re: Team kill Help!
Post by: Diamond on Nov 02, 2015, 10:02 AM
Thnx.. Solved...