
Cynoq
Members-
Posts
32 -
Joined
-
Last visited
Everything posted by Cynoq
-
Darn you deathwatch, I am a true mandolarion! get back on the damn server i have something to show you Keeps saying connection timed out and can't connect. I'll be on tomorrow, i'm tired
-
Darn you deathwatch, I am a true mandolarion!
-
After reading through this post I noticed this would be a cool thing to try for my DayZ server. When you are done it would be nice if you'd let me use it (If you want) I would be sure to acknowledge you in the server once I get it up!
-
Using this: local blockAnims = { "BOM_Plant", }; -- You will have to do others by yourself! setTimer(function() Block, AnimationName = getPedAnimation(getLocalPlayer()); for _,v in ipairs(blockAnims) do if (AnimationName == v) then setPedAnimation(getLocalPlayer(), false); end end end, 2000, 0); Found the other animations I needed and the problem is fixed, all thanks to you. Thanks for everything man!
-
Nope, doesn't stop any animation
-
a Okay paste all code What? The code I want fixed is at the top.
-
will stay a lifetime in need of help? have to study a little too ... It's not hard for someone who already knows lua to add a "if equal to" to a script c'mon, I'm not asking for much...
-
I don't understand lua, that's the thing. And I don't wanna have to learn a whole language to fix one little problem...
-
(Original) setTimer(function() Anim,_ = getPedAnimation(getLocalPlayer()); if (Anim) then setPedAnimation(getLocalPlayer(), false); end end, 2000, 0); This script stops all animations after 2 seconds. I want it to only stop one certain animation. I do not have any experience with lua so I have no idea on what to do. This is my idea and maybe someone that knows lua could fix the syntax or make a script just like this. \/ (changes on line 3 from original) setTimer(function() Anim,_ = getPedAnimation(getLocalPlayer()); if (Anim) == (AnimationIWantTostop) then setPedAnimation(getLocalPlayer(), false); end end, 2000, 0); Thanks !
-
You fixed it! You are a life saver man! I wish I could thank you more! Thank you! You're welcome. Hey I noticed something about that code. It stops all animations after 2 seconds. Do you know a way to only stop a certain animation?
-
You fixed it! You are a life saver man! I wish I could thank you more! Thank you!
-
I'm new to this. Where would I put this code exactly? Thanks for the help. In client-side. Can't find "client-side"
-
I'm new to this. Where would I put this code exactly? Thanks for the help.
-
I tried using this but it was very buggy and didn't load textures, and has a lot of things I do not want in DayZ.
-
0.6 Nighlty I think it is
-
I am having a glitch with my server, which is pretty much game breaking. I am not very experienced with lua so I cannot not locate the problem. In dayz you survive by drinking water, eating food right? Well essentially whenever a player eats, drinks, blood bags, medkits etc there is a player animation that plays for about 3 seconds, but the problem I am having is the animation won't stop. If anyone has any idea how to fix this a comment would be greatly appreciated. Thanks in advance!
-
Can you show me how? new to scripting sorry
-
As you can see from the title I'm having a problem with my server in which I can't let only admins use certain resources and defaults not able too. Things I have tried: Tried putting this only in Admin group in the ACL Doesn't work Tried putting in Admin group and this in Default: I have also turn this "addEventHandler onResourceStart" to true in both Client and server.lua Can't find anything else on what I could do so I set up this post. Thanks in advance!
-
Can you show me how to do that? (New to scripting) bool addCommandHandler ( string commandName, function handlerFunction, [bool restricted = false, bool caseSensitive = true] ) Check restricted argument. https://wiki.multitheftauto.com/wiki/AddCommandHandler Did not work, I added the client code from that link too but no
-
I was wondering if you could help me with one more thing?
-
Can you show me how to do that? (New to scripting)
-
I figured it out, Thanks for the answer though!
-
As you can see from the title I'm having a problem with my server in which I can't let only admins use certain resources and defaults not able too. Things I have tried: Tried putting this only in Admin group in the ACL <object name="resource.superman"></object> Doesn't work Tried putting <right name="function.superman" access="true"></right> in Admin group and this in Default: <right name="function.superman" access="false"></right> I have also turn this "addEventHandler onResourceStart" to true in both Client and server.lua Can't find anything else on what I could do so I set up this post. Thanks in advance!
-
Thanks so much! It works now. Is there a rep system on this forum?
-
function replaceskin() txd = engineLoadTXD ( "ak47.txd" ) engineImportTXD ( txd, 355 ) dff = engineLoadDFF ( "ak47.dff", 355 ) engineReplaceModel ( dff, 355 ) end No event? This? addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()) replaceskin)