Jump to content

Mega9

Members
  • Posts

    216
  • Joined

  • Last visited

Everything posted by Mega9

  1. Mega9

    Silenced gun

    setWeaponProperty ("silenced", "poor", "damage", xx) xx would be float/int of the new damage value Don't forget other weapon skills (pro & std).
  2. Mega9

    Silenced gun

    Or just change the weapon's 'damage' property using setWeaponProperty
  3. Evo pokusavam , haha Čovjek uspio, svaka mu čast!
  4. By checking if hitPlayer is the localPlayer like here: function setGUIVisible (hitPlayer, dimension) if hitPlayer == localPlayer and dimension then guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( true ) end end addEventHandler ( "onClientMarkerHit", marker1, setGUIVisible )
  5. You need to check the source before processing the handler. For GUI elements with parent, the onClientGUIClick will be triggered even if you click on the parent and not the child element. Explained with the code: guiwindow = guiCreateWindow (...) guielement-button = guiCreateButton(..., guiwindow) -- we set it's parent to the window 'guiwindow' function onGUIClick() -- check if button is the clicked element if source == guielement-button then -- do my stuff end end addEventHandler ("onClientGUIClick", guielement-button, onGUIClick) -- even though we have assigned the event handler to the button element, it will still be triggered if we click it's parent (the window)
  6. Thinking out loud here, but isVehicleOnGround [url=https://wiki.multitheftauto.com/wiki/OnClientVehicleCollision]https://wiki.multitheftauto.com/wiki/On ... eCollision[/url] Perhaps?
  7. Mega9

    DayZ

    There's no magic script that will magically remove the lag, it's either you, or your server resources that are causing major lag. Unless you find the cause, there really is no way to decrease the lag by adding more scripts.
  8. Mega9

    [HELP]Peds

    In addition to this, setPedFrozen is also deprecated, so use setElementFrozen instead. Also, createPed already has rotation argument:
  9. I've made something like this a while back, allowing any amount of trailers, but there would always be a heavy desync after 5th/6th trailer even for local player. Not sure if anything has changed but it was pretty bad back then; it's probably why we don't see them in use on servers. All in all good job!
  10. He wants to hide the chat, not prevent messages from being sent.
  11. Mega9

    Question

    Just a tip, you don't need to define 'localPlayer' it is already hardcoded, so just using localPlayer will do.
  12. Mega9

    Mega9 Scripts

    Bump! ~ Discount ~ Discount of 20% available on all the products in the store using the code: MTA1.5 Click the "Apply promo code" on checkout and type it in for your discount! I know there are not many things, but I work whenever I can get some time to commit to the store which is not much. If you do, however, have an idea what could be added, and that it's not a total rip off from another server feel free to suggest it here I already had couple of successful transactions and happy customers. I will always provide support for my paid products, so don't fear what are you gonna do if it doesn't work on your server straight out of the box. Script store: http://mega9scripts.tictail.com
  13. Just a simple question that I can't answer myself, why does the server use the same scripts (style & logic at least) as Owl? Just a question, don't get offended.
  14. http://i.imgur.com/67fyY88.png
  15. To be honest, MTA runs somewhat better on 10 than on 8.1, did not regret the upgrade.
  16. Does this work for you? local lp = getLocalPlayer() function buy15() if lp ~= localPlayer then return end local player_money = getPlayerMoney(lp) if source == GUNPANEL1.button[15] then if ( player_money >= 100000) then setElementData(lp,"lvl1",false) setElementData(lp,"lvl2",false) setElementData(lp,"lvl3",false) setElementData(lp,"lvl4",false) setElementData(lp,"lvl5",false) setElementData(lp,"lvl6",false) setElementData(lp,"lvl7",false) setElementData(lp,"lvl8",false) setElementData(lp,"lvl9",false) setElementData(lp,"lvl10",false) setElementData(lp,"lvl11",false) setElementData(lp,"lvl12",false) setElementData(lp,"lvl13",false) setElementData(lp,"lvl14",false) setElementData(lp,"lvl15",true) outputChatBox("WEAPON USED",255,0,0) guiSetText(GUNPANEL1.edit[1], "ROCKET LAUCHER") end end end addEventHandler("onClientGUIClick", root, buy15)
  17. Glad someone decided to take this gamemode out of the mud. Updates look promising so far, let's hope you keep the ambition and optimism for that v1.0. Well done indeed
  18. "files/nitro/"..(math.ceil(nitro/5)*5)..".png" I suppose you have thousands of images in that folder?
  19. That would be one of the options, yes.
  20. Tried setting an alpha? local hex = RGBToHex(r,g,b,255)
×
×
  • Create New...