void OnPlayerTakeDamage(PlayerSession session, EntityEffectSourceData dataSource)
{
if (session == null || dataSource == null)
{
return;
}
else
{
EntityStats stats = session.WorldPlayerEntity.GetComponent<EntityStats>();
string name = session.Name;
string tmpName = GetNameOfObject(dataSource.EntitySource);
if (tmpName != string.Empty && !tmpName.Contains("Creatures"))
{
string KillerName = tmpName.Remove(tmpName.Length - 3);
Clan myClan = getClan(session);
if (myClan != null && myClan.clanff == 0)
{
List<PlayerSession> clanSessions = getMembersOnline_byClan(myClan);
foreach (PlayerSession ses in clanSessions)
{
if (ses.Name == KillerName && ses.Name != session.Name)
{
dataSource.Value = 0;
Singleton<AlertManager>.Instance.GenericTextNotificationServer("Do not hurt your teammate!", getSession(KillerName).Player);
return;
}
}
}
return;
}
return;
}
}
Najlepsze posty napisane przez kekw
-
RE: HW Clans 1.3.4 problem
Najnowszy post utworzony przez kekw
-
RE: LiveServer or ServerProject?
Money is not the problem, I need good ddos protection
-
RE: LiveServer or ServerProject?
I had liveserver for 2-3 months, and server fps was shit with 60 players. Liveserver got all the populated servers on the same machine.
-
RE: noescape
@PanTadeusz napisał w noescape:
tak i w logach info takie :
Load requested for plugin which is already loading: NoEscape (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37) NoEscape was compiled successfully in 1580ms (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37) Non platform assembly: data-0x22c37c90 (this message is harmless) Fallback handler could not load library /clients/s38972/Hurtworld_Data/Mono/x86_64/data-0x22c37c90.so Unable to find main plugin class: NoEscape (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37) No previous version to rollback plugin: NoEscape (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37) NoEscape was compiled successfully in 410ms (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37) Non platform assembly: data-0x1eff6180 (this message is harmless) Fallback handler could not load library /clients/s38972/Hurtworld_Data/Mono/x86_64/data-0x1eff6180.so [NoEscape] Creating new config file for NoEscape... (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37) Could not initialize plugin 'NoEscape v1.1.1' (JsonSerializationException: A member with the name 'RaidBlock at Explosixe(not enabled)' already exists on 'Oxide.Plugins.NoEscape+Configuration'. Use the JsonPropertyAttribute to specify another name.) at Newtonsoft.Json.Serialization.JsonPropertyCollection.AddProperty (Newtonsoft.Json.Serialization.JsonProperty property) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateProperties (System.Type type, MemberSerialization memberSerialization) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract (System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract (System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract (System.Type type) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe (System.Object value) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <filename unknown>:0 at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[Configuration] (Oxide.Plugins.Configuration config, Boolean sync, System.String filename) [0x00000] in <filename unknown>:0 at Oxide.Plugins.NoEscape.SaveConfig () [0x00000] in <filename unknown>:0 at Oxide.Plugins.NoEscape.LoadDefaultConfig () [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.LoadConfig () [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0 at Oxide.Plugins.HurtworldPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0 at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0 (Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
-
RE: Great Work old oxide version!
Latest legacy build works fine, you just need to update your plugins
-
Need someone to translate few words :D
Can someone translate me this to polish?
Spine, Chest, LeftArm, LeftForearm, LeftHand, RightArm, RightForearm, RightHand, Head, Stomach, Hips, LeftLeg, LeftCalf, RightLeg, RightCalf, LeftFoot, RightFoot, Heart, None
-
RE: HW Clans 1.3.4 problem
void OnPlayerTakeDamage(PlayerSession session, EntityEffectSourceData dataSource) { if (session == null || dataSource == null) { return; } else { EntityStats stats = session.WorldPlayerEntity.GetComponent<EntityStats>(); string name = session.Name; string tmpName = GetNameOfObject(dataSource.EntitySource); if (tmpName != string.Empty && !tmpName.Contains("Creatures")) { string KillerName = tmpName.Remove(tmpName.Length - 3); Clan myClan = getClan(session); if (myClan != null && myClan.clanff == 0) { List<PlayerSession> clanSessions = getMembersOnline_byClan(myClan); foreach (PlayerSession ses in clanSessions) { if (ses.Name == KillerName && ses.Name != session.Name) { dataSource.Value = 0; Singleton<AlertManager>.Instance.GenericTextNotificationServer("Do not hurt your teammate!", getSession(KillerName).Player); return; } } } return; } return; } }
-
RE: HW Clans 1.3.4 problem
In OnPlayerTakeDamage hook something is null and it shouldn't be. But even with this error plugin should work.