Jump to content
  • 0

Antiteam kill script


BetterDeadThanZed

Question

4 answers to this question

Recommended Posts

  • 0

Try this not sure i have not tested this

 

 

/////////////////////////////////////////////////////////////////////////////

//  Call syntax: x=[] execVM "noTeamKill.sqf"                                                                     
//
//  By default, only team members are protected.                                                            
//  If you want to protect team members AND civilians call the script with x=["TC"] execVM "noTeamKill.sqf".      
//  If you want to protect ONLY civilians call the script with x=["C"] execVM "noTeamKill.sqf".                   
//
//  If the function is called with the parameter "NOBOOM", (e.g. x=["C","NOBOOM"] execVM "noTeamKill.sqf")                       
//  there will be no "blow-back" explosion.
//
//  If the function is called with the parameter "DISARM",  (e.g. x=["TC","DISARM"] execVM "noTeamKill.sqf")                                                                      
//  the shooter will also lose his weapon upon a TK violation.  
//
//  If the function is called with the parameter "NODAM",  (e.g. x=["TC","NODAM"] execVM "noTeamKill.sqf")                                                                      
//  the shooter will not receive damage to himself (the blow-back explosion will also be disabled).  
//
//  If the function is called with the parameter "NOMSG", (e.g. x=["NOBOOM","NOMSG"] execVM "noTeamKill.sqf")                       
//  the will be no hint message when a team killer is penalized.
//
//  Requires a Game Logic named "BAS_Server_Logic" to work.
///////////////////////////////////////////////////////////////////////////////////////////////////////

 

by the look of it try opening you init.sqf and under

 

if (!isDedicated) then {
    //Conduct map operations
    0 fadeSound 0;
    waitUntil {!isNil "dayz_loadScreenMsg"};
    dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");

Add here
    [] execVM "custom\noTeamKill.sqf";

 

in your mission pbo/folder make a custom folder if you dont already have 1

 

open the notk zip find noTeamKill.sqf copy it to your custom folder you just made

 

upload and test

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
  • Advertisement
  • Discord

×
×
  • Create New...