Jump to content

monday

Members
  • Posts

    34
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

monday's Achievements

Rat

Rat (9/54)

0

Reputation

  1. Hi, at the begining of my script (outside of any function) I use something like: GREEN_COLOR = "#4ED451" RED_COLOR = "#D4644E" Is this being read all the time or only once? I'm wondering if it would be more efficient to put it in a function called upon loggin in.
  2. I'm sure that the WhoAttacksFirst function is called because the message is displayed in the chat. It's a clientside script. Btw is there any limitation in terms of how many "if then else" statements you can use within each other? In other part of the same script there is like 20 of the following within each other: if then else if then else if then else end end end Edit: Fixed the problem, one "end" was missing in one place and there was one unwaned in another place. Thank you anyway If anyone has a similar problem, I found this tool very helpful: http://ideone.com/
  3. Hi, it looks like my function is not called when it needs to be. The script is a bit too long to paste for deep examination but here are the essential parts of it: function WhoAttacksFirst(_attackNumber) outputChatBox("--------reached WhoAttacksFirst stage 1") -- This information is displayed in game BoostMultiplier(1,1) outputChatBox("--------reached WhoAttacksFirst stage 2") -- This isn't (...) function BoostMultiplier(_number, _type) outputChatBox("--------reached BoostMultiplier stage 1") -- This isn't Is it because I should somehow initialise the function before calling it? Can it be the problem that I have another function named "Boost"? In case if it matters here's the whole function
  4. http://saesrpg.net/topic/4863-mta-lua-scripting-guide/ I find this very useful, It's made using simple language unlike some of the other tutorials
  5. Hi, I was trying to create my own model in 3ds Max but it didn't go well. I'd appreciate if someone could give me some advice about what I did wrong. That's the outcome: The legs are bugged, one of the arms + tail are not there + the skin is not visible even that I replaced the original txd with 2 textures from http://roestudios.co.uk/project/3d-poke ... s/151-mew/
  6. Hi, I'm not an expert but you could use this: setPedAnimation(yourDude, "ped", "run_player", -1, true, true, false) The first "true" stands for the loop and as far as I know the animation should flow over and over again https://wiki.multitheftauto.com/wiki/SetPedAnimation List of animations: https://wiki.multitheftauto.com/wiki/Animations#ped
  7. I did but nothing hanged. I copied the whole code to another text file and it was in original form without any abnormalities, then copied it back and it solved the problem. Btw I realised that clicking "show all icons" button causes this thing but without deleting first letters.
  8. Hi, I was developing my script and suddenly every line under my cursor has been changed. First letter has been deleted in every line of the script + some weird black letters appeared. Any help would be appreciated because there's like 2500 lines affected and it would take some time to change it back, thanks in advance
  9. Hi, I was looking for a similar thing lately and according to wiki "anim_group" is "get only" so it's not possible to set it. Maybe there is another way to do it but that's just my observation. https://wiki.multitheftauto.com/wiki/GetWeaponProperty
  10. Hi, is there any simple way to disable shooting or to disable effects associated with it, such as bullets, sparks and fire-light? Thanks in advance
  11. I was struggling to make it work properly but changing this: return x+dx, y+dy; into this: return x+dx, y-dy; made it working properly for me
  12. Thanks for the answer. Btw i replaced the model using Modloader resource. I also changed it to "is a throwing weapon" but can't throw it anyway. It looks like it's not possible to set some weapon properties according to https://wiki.multitheftauto.com/wiki/GetWeaponProperty because some of them are "get only" including "fire_type" and "anim_group"
  13. Hi, is it possible to have 2 or more grenades in separate slots for example by replacing m4's specificactions with grenade's?
×
×
  • Create New...