Jump to content

AMARANT

Members
  • Posts

    748
  • Joined

  • Last visited

Everything posted by AMARANT

  1. Купить чит... Даже не знаю кому это надо.
  2. Я не знаю кто его делал, мне все равно. Факт остается фактом, что добавлен браузер, а не исправлены старые косяки.
  3. Честно говоря, согласен с вышесказанным. Явно не в то русло зашли. Старые баги, вроде открывающихся дверей машин, хреновой синхронизации трейлеров и прочие мелочи как будто бы просто позабыли. А скорее, просто забили. Если уж выбирать между браузером или кастомными анимациями, то я однозначно выбираю второе, куда полезнее.
  4. Actually it was the only one argument - thePlayer. You see, the event "onPlayerLogin" returns player element named as source. So you don't need thePlayer argument anymore, especially when it returns nil (like in your case). Here you can find that source element and learn what it means. Btw, On MTA Wikia you can find every source element of every event.
  5. Because client version of takePlayerMoney doesn't need thePlayer argument. And moreover, this function must not be used client-side. Never. Do it only server-side.
  6. function toggleGodMode() local account = getPlayerAccount(source) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(source,"invincible") then setElementData(source,"invincible",false) outputChatBox("GOD if off",source,0,255,0) else setElementData(source,"invincible",true) outputChatBox("GOD is on",source,0,255,0) end end end addEventHandler("onPlayerLogin",getRootElement(),toggleGodMode)
  7. Я понимаю что руками, поэтому и спросил может быть есть какой-нибудь файл где есть эти координаты, ведь они как-то заданы в самой GTA. Просто жизнь облегчить хотел.
  8. Спасибо, кажется, то что надо. getZoneName Не подходит, т.к. нужно создать radar area по координатам зон, а не просто узнать имя.
  9. Народ, подскажите где можно узнать координаты всех зон из игры, включая их длину и ширину. Например, координаты Red County, Ganton, Ocean Docks, ну и т.п.
  10. AMARANT

    Question

    Then destroy it when you quit and spawn when log in. It's simple. These are the functions you're gonna need: destroyElement createVehicle Events: onPlayerQuit onPlayerLogin
  11. AMARANT

    Question

    Almost everything is possible including this. Please give more details about what you want to do.
  12. You helped a lot. Thank you!
  13. Hi there. I need to format my string (actually it is a number) to time formatted string, e.g. "300" to "05:00", "16" to "00:16", etc. Please help me.
  14. Если вкратце, то скрипт жалуется на неправильный аргумент при создании маркеров. А именно аргумент №9 в функции createMarker. Там у тебя стоит getRootElement(), а должен стоять аргумент, отвечающий за прозрачность цвета маркера (число от 0 до 255, где 0 - полная прозрачность, 255 - напротив). Исправь это в каждой такой функции.
  15. I think you should script it by yourself.
  16. Of course everyone knows what those dayz scripts are. Maybe you show us your code first?
  17. Btw, I wouldn't recommend you to use dbQuery in UPDATE statements. Use dbExec instead.
  18. local colradiat = createColCuboid(1648.9276, 2820.2937, -31.4780, 805.5, 581, 90) local zoneeeeee = createRadarArea (1648.9276, 2820.2937, 805.5, 581, 255,0,0, 255 ) local player = getLocalPlayer() function onPlayerIntroareaRadiativa(theElement) if theElement == getLocalPlayer() then outputChatBox ("Este local é Radioativo, recomenda-se uso de roupa especial!",255,255,255,true) triggerEvent("vignetTte", getLocalPlayer()) playerentro = true end end addEventHandler("onClientColShapeHit", colradiat, onPlayerIntroareaRadiativa)
  19. AMARANT

    Handsup

    That's not surprising. You're binding 'L' button for 'source'. But where is that 'source' defined? This variable can't be used without event handler. You need to loop every player and only then bind your key via bindKey function for every player.
  20. AMARANT

    Handsup

    Is this just a piece of the code or the full code?
  21. local vehicles = getElementsByType("vehicle") for _,vehicle in pairs(vehicles) do setVehicleDamageProof(vehicle,true) end function onDamageProof(vehicle,seat,jacked) setVehicleDamageProof(vehicle,false) end addEventHandler("onPlayerVehicleEnter",root,onDamageProof)
  22. You can pass these variables to the server with that function I provided.
  23. https://wiki.multitheftauto.com/wiki/TriggerServerEvent
  24. Because you set the first argument to 'source' which is your GUI button pressed. You need to delete your first argument at all because client-side givePlayerMoney needs only the integer parameter. But! I strongly recommend you to use this function ONLY server-side! And please check MTA wiki to see function arguments.
  25. Exactly. Just tested. It's very hard to detect it without checking in-game btw.
×
×
  • Create New...