- Timestamp:
- Jul 28, 2014, 11:27:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/TelnetCommands/Kill.cs
r113 r114 20 20 public override void Run (string[] _params) 21 21 { 22 m_Console.SendResult("Command \"kill\" is currently not implemented!");23 return;24 /*25 22 try { 26 23 if (_params.Length != 1) { … … 29 26 } 30 27 31 ClientInfo ci = CommonMappingFunctions.GetClientInfoFromNameOrID (_params[0], false);28 ClientInfo ci = CommonMappingFunctions.GetClientInfoFromNameOrID (_params [0], false); 32 29 33 30 if (ci == null) { … … 36 33 } 37 34 38 EntityPlayer p = CommonMappingFunctions.GetEntityPlayer(ci); 39 p.Stats.Health.Value = 1; 40 p.Stats.SendAll(); 41 m_Console.SendResult ("Killed player " + _params[0]); 35 EntityPlayer p = CommonMappingFunctions.GetEntityPlayer (ci); 36 p.DamageEntity(new DamageSource(EnumDamageSourceType.Bullet), 9999, false); 37 m_Console.SendResult ("Killed player " + _params [0]); 42 38 } catch (Exception e) { 43 39 Log.Out ("Error in Kill.Run: " + e); 44 } */40 } 45 41 } 46 42 }
Note:
See TracChangeset
for help on using the changeset viewer.