Jump to content

Bonus

Members
  • Posts

    297
  • Joined

  • Last visited

About Bonus

  • Birthday 17/02/1995

Member Title

  • Patch Contributor

Details

  • Location
    Germany

Recent Profile Visitors

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

Bonus's Achievements

Pee-Wee

Pee-Wee (21/54)

5

Reputation

  1. 1. You mean when the player is in the same dimension, but another position (not in the marker), the output does still come? Are there other player on the server? "l_5_0" is not the player, "thePlayer" is the player. And why don't you just attach the event on the marker (instead of getRootElement())? 2. https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle 126 is "MOVE_DRUNKMAN"
  2. The crosshair-size shows the accuracy of the next shot. If it's the normal size, the next shot will go right where you aim, right through the middle. If the crosshair got bigger, the shot won't go through the middle, it will go somewhere else in a specific radius to the middle-point. So you can do two things: 1. Increase the accuracy of the weapon (with setWeaponProperty) 2. Deactivate the crosshair and draw your own crosshair with dxDrawImage - but then the crosshair won't show the accuracy of the next shot anymore.
  3. Sry, but it's hard to understand what you want, cause your english is pretty bad. What exactly is the problem?
  4. You could name the function "fadeText" and use a boolean for fade-in or fade-out. Also you should maybe use local variables, cause right now there is the risk that this code could break some other clientside codes, if the user used too many global variables, too. I don't like the performance of the script, but I think it won't get used that often.
  5. Damageproof = it gets no damage It's about the RHINO not GETTING damage!
  6. He is talking about disabling damageproof ... I didn't really work with rhinos, but you could use onVehicleDamage and set the Health by yourself.
  7. Freeze the ped ... Make the animation not interruptable ... What do you mean with "stopped"? Why should the ped move while doing the animation?
  8. I think one of the if-statements is false. Just put an outputDebugString/outputChatBox in every line, counting up. That way you can see where the script stops.
  9. Still use getDistanceBetweenPoints3D.
  10. Use always getDistanceBetweenPoints3D to compare positions (or your own calculation)
  11. 1. You should use good names for the variables. I see 1_7_0 etc. everywhere, isn't that confusing? 2. You can compare getElementPosition (which returns 3 values) with numbers like that. If you want to compare them, you have to do it one by one. 3. Don't check the position like that, cause if the player is 0.01 x away from the position, it won't work. Use getDistanceBetweenPoints3D instead. https://wiki.multitheftauto.com/wiki/GetDistanceBetweenPoints3D The distance should be smaller than 2+, whatever you want. But not too less.
  12. Bonus

    newResource

    newResourceName is a table, not a string. Just use the "New resource loaded:" output instead of line 18 (newResources[#newResources + 1] ...). And use getResourceName ( v ) instead of newResourceName. Then you can also remove line 15 (local newResources = {}).
  13. In line 34 "thePlayer" doesn't exist. Use the correct variable.
  14. setTimer(verificar, 1000, 1, THEPLAYER) You have to give the player as an argument.
×
×
  • Create New...