ok
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
let currentAnim = this.animations[_id];
|
let currentAnim = this.animations[_id];
|
||||||
let { id, name, animDict, animName, playOnStream, loop, flag } = currentAnim;
|
let { id, name, animDict, animName, playOnStream, loop, flag } = currentAnim;
|
||||||
|
|
||||||
|
mp.gui.chat.push("load anim dict");
|
||||||
|
mp.game.wait(100);
|
||||||
loadAnimDict(animDict, function () {
|
loadAnimDict(animDict, function () {
|
||||||
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, -1, parseInt(flag), 1, !1, !1, !1)
|
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, -1, parseInt(flag), 1, !1, !1, !1)
|
||||||
});
|
});
|
||||||
@@ -62,11 +64,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
mp.events.addDataHandler("AnimationData", (entity, string) => {
|
mp.events.addDataHandler("AnimationData", (entity, string) => {
|
||||||
let data = string ? string : "";
|
|
||||||
|
|
||||||
animationSync.stopAnim(entity);
|
animationSync.stopAnim(entity);
|
||||||
|
|
||||||
let animData = animationSync.animations.find(anim => anim.name == data);
|
let animData = animationSync.animations.find(anim => anim.name == string);
|
||||||
if (!animData)
|
if (!animData)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
{
|
{
|
||||||
#region Todo
|
#region Todo
|
||||||
|
|
||||||
[Command("syncanim", "~m~Benutzung: ~s~/anim [animName]")]
|
[Command("syncanim", "~m~Benutzung: ~s~/syncanim [animName]")]
|
||||||
public void CmdSncAnim(Player player, string animName)
|
public void CmdSncAnim(Player player, string animName)
|
||||||
{
|
{
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||||
|
|||||||
Reference in New Issue
Block a user