Jump to content

[Release] Trader Kill Notification - 1.0.6


Joshyy

Recommended Posts

If a player is killed within a defined range from a trader there will be a chat message notifying everyone so they can be punished.

 

Step 1:

Make a copy of player_death.sqf in your mission file and change the path in your compiles.sqf

 

Step 2:

Define your trader areas by making an array with the trader position, range, and trader name

DZE_tradersarray = [

// [[position],range,"tradername"],

// [[position],range,"tradername"] -- Don't forget the last one doesn't have a , at the end!

];

Example:

  Reveal hidden contents

Put this in your init.sqf somewhere at the top or put it inside your configVariables.sqf

Step 3: 

Open your custom player_death.sqf

and find

  Reveal hidden contents

Then add this below

 

  Reveal hidden contents

 

The whole block should look like

  Reveal hidden contents

 

Note: This is compatible with 1.0.5.1

 

Comment if you have any problems!

Link to comment
Share on other sites

  • 2 weeks later...

The person getting killed gets kicked for

Value Restriction #0 "remExField" = [,,"spawn",["(Server): TRADER KILL! any killed any when any was 224.19m from Trader city Stary"],{systemChat (_this select 0)}]

Turn off battleye and it works except the message reads "TRADER KILL! any killed any when any was xxxxx from trader city"

Its not picking up the name of either player.

Link to comment
Share on other sites

  On 1/22/2017 at 2:18 PM, lwbuk said:

The person getting killed gets kicked for

Value Restriction #0 "remExField" = [,,"spawn",["(Server): TRADER KILL! any killed any when any was 224.19m from Trader city Stary"],{systemChat (_this select 0)}]

Turn off battleye and it works except the message reads "TRADER KILL! any killed any when any was xxxxx from trader city"

Its not picking up the name of either player.

Expand  

You can use a remote message script, those shouldn't cause BE kicks.

as for the name, make sure _killerName and _victimName are defined (_killerName = name _source;_victimName = name player;) << add this above the script somewhere

 

Edit: updated OP with fix

 

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...
  • 4 weeks later...

player_death.sqf  (this one works)

  Reveal hidden contents

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...