Jump to content

Dreft

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by Dreft

  1. Ok, thanks for such detailed answer ? I,ll try my best
  2. Hmm, I check later what client side event returns for loss and is it different from client side..
  3. Hello. Using onPlayerDamage(attacker, weapon, bodypart, loss), for example when I have 100hp and shot near me with rocket launcher, loss is 75, but if I have for example 50hp and shot rocket launcher, loss is 50(because thats how much HP I have). How to get same 75 loss/damage with low hp, because rocket launcher does that damage? I know that loss could not be more than I have HP, but maybe there is a way to get real damage that weapon does despite HP I have ?
  4. Thanks a lot. Works like a charm ?
  5. Im using async version of the function passVerify. How to pass some parameters to callback which is called after passVerify function completes? As for now I have: function someFunction() passwordVerify( password, hashedPassword, {}, passVerificationComplete ) end function passVerificationComplete(matched) if matched then -- passwords matched else -- passwords mismatch end end in "passVerificationComplete" parameter "matched" is the value which is true or false, depends on what passwordVerify returned, how to pass some other parameters to passVerificationComplete callback? Something like this: function someFunction() passwordVerify( password, hashedPassword, {}, passVerificationComplete(someOtherParam) ) end function passVerificationComplete(matched, someOtherParam) if matched then outputDebugString(someOtherParam) -- passwords matched else -- passwords mismatch end end
  6. if getElementData(source, "wwacc.timesSpawned") == nil or getElementData(source, "wwacc.timesSpawned") == false then setElementData(source, "wwacc.timesSpawned", 0) end local timesSpawned = getElementData(source, "wwacc.timesSpawned") + 1 setElementData(source, "wwacc.timesSpawned", timesSpawned) Here ya go
  7. Ok, then how to create dff and txd files with that picture I want to replace with model ?
  8. How to create image in 3D World, for example on building wall or something like that ?
  9. Dreft

    MTA quits after a while.

    i think its more GTA than MTA problem.. so.. Huh? I thought there is nothing impossible to MTA
  10. Dreft

    MTA quits after a while.

    I don't use any mods. Well, I hope it will be fixed someday
  11. After ~20 minutes of playing MTA quit's automatically. I've had this on zombie infestation server and on XIII(this name if I'm right). On my local server I haven't that problem. Is it possible to fix ?
  12. I don't have problems with center position.. But with others it's hard.. :\
  13. Absolute for all? Even GUI window ? o_O When one time before I used absolute values, they fit just to that screen, on which I created dialog. On others it was totally different and messed up.
  14. Here is the code: http://pastebin.com/0BuP3Xbs http://pics.lt/images/mta-screen%202010 ... -11-11.png (1024x768 screen) http://pics.lt/images/mta-screen%202010 ... -12-36.png (1152x864 screen) http://pics.lt/images/mta-screen%202010 ... -17-08.png (1280x1024 screen) Look at all screen size pictures, as you can see everything is going of it's places. For example look at radio buttons at 1024x768 and 1280x1024, big difference right?.. All GUI created with GUIeditor on 1024x768 screen, everything is relative position's) Is it possible to do something that GUI won't be so different on different screen sizes?(I thought that relative positions for all elements would do the work, but difference still exists )
  15. I've using setCameraMatrix() in food shop to see sales-man in first person view. Then I showing GUI window where player chooses what he want's to buy. Food increase health, so I wanted HUD that player see how much HP he have. Maybe I insert label in GUI window with "Current health: [HP HERE]".. How I can redraw HUD using dx functions ?
  16. Is it possible to show HUD elements after using setCameraMatrix() ? Because after setCameraMatrix() all HUD is hidden. https://wiki.multitheftauto.com/wiki/Sho ... dComponent doesn't work to do that.
  17. On server side script I use setPedFrozen and freeze NPC. If I use setPedFrozen to unfreeze that NPC on some client side script, that Ped will be unfreezed just for that player on which client side I unfreezed that NPC ? And also: It's impossible to set animation on ped while it's freezed ?
  18. OK I've "played" a little with Z values and now arrow seems to be normal, as it should. Thx all for trying to help.
  19. When I changed marker type to "cylinder" then marker was at half of doors height, so in my opinion arrows is bugged. P.S. There was few times when arrow was in OK position, but when I entered > leave building, same arrow was underground. Well, I don't know if someone else have these problems, but I'm using cylinders now, till arrows will be fixed. Mods can /lock topic
  20. The script: http://pastebin.com/Wy3UetCH
  21. Video shows the problem: As you can see after restart server marker is in correct position, but then it goes underground. Is there anything I can do ?
  22. No I'm not making it for 65k dimensions.. I just asked "for all possible" because I thought that there is some way without adding element > setting dimension > adding another element > setting dimension and so on. Thx for help.
  23. This doesn't work. This loops set dimension to: object = 1 then object = 2, not 1. After that object = 3, not 2 And at the end object = 65534, so if I won't be in 65534 dimension, i won't see it.
  24. How to create element(marker,object etc.) which will be shown in all possible dimensions ?
×
×
  • Create New...