Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 22/09/19 in all areas

  1. I just needed the cameraFireing function the other parts are already done and now works perfect together with your fix. Thank you!
    1 point
  2. The variable victim contains extra information. It is optional. function cameraFireing(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) iprint("event is fired") if getElementData(localPlayer, "char.inMarkerZone") then iprint("source is in zone") local victim = isElement(hitElement) and getElementType(hitElement) == "player" and hitElement or false local zoneName = getElementData(localPlayer,"char.MarkerZoneName") triggerServerEvent("sendGroupMessage", resourceRoot, victim, victim and getPlayerName(victim), zoneName) end end addEventHandler("onClientPlayerWeaponFire", localPlayer, cameraFireing) addEvent("sendGroupMessage", true) addEventHandler("sendGroupMessage", resourceRoot, function (victim, victimName, zoneName) local message = "#ffffffThe camera: #ca5454(".. zoneName ..") #ffffffdetected shots. " if victimName then message = message .. " You hit this player: " .. victimName end outputChatBox(message, client) if isElement(victim) then outputChatBox(getPlayerName(client) .. " hits you and he doesn't feel sorry for it.", victim) end local players = getElementsByType("player") for i=1, #players do local player = players[i] if player ~= client and player ~= victim then outputChatBox(getPlayerName(client) .. " loves sheeps.", player) end end end, false)
    1 point
  3. Nice work Ein.I hope players play often after this update
    1 point
  4. No that is not possible directly from MTA exe to web-browser. But you can set the clipboard with an specific URL. https://wiki.multitheftauto.com/wiki/SetClipboard You can also add push notifications, which comes closer to what you want: https://web-push-book.gauntface.com/ https://web-push-book.gauntface.com/demos/notification-examples/ But I haven't done it before, so the exploration is all yours. How Youtube does it (concept):
    1 point
  5. The second code is the condition for removing the handler.
    1 point
  6. Do you want to write this code after 8 lines?
    1 point
  7. Block the progress local timeNow = getTickCount() local iProgress = (timeNow - iStartTick)/1000 if iProgress > 1 then iProgress = 1 end Stop the animation 3 seconds after the end time. if ((timeNow - iStartTick) / 1300) >= 1 then
    1 point
  8. السلامم عليكمم ورحمة الله وبرككاته سويت سكربت فكرته هي فيه مقر حق جيش يتم الانتقال اليه وسرقته طبعا الموضوع يختلف , كيف؟ يعني مثلا فيه فرق بين السرقة.. واحد ما معه رتبة VIP يجي يسرق المقر يوم يدخل المنطقة يظهر للي معه الرتبة انه دخل ويتجمد لمدة من 5 الى 20 ثانية علشان يقدر يدخل او يخرج من المقر وطبعا فيه مميزات للي معه الرتبة وهي: ء - يقدر يراقب المقر لمدة دقيقة عبر كتابة كلمة مراقبة بف8 - يقدر ينتقل بسهولة الى المقر عن طريق فتح لوحة عبر كتابة كلمة open بف8 - يقدر يدخل المقر ويخرج بدون ما يتجمد - يوم ينتقل الى المقر من اللوحة ياخذ سلاح ودم - يقدر يعرف من اللوحة مين دخل المقر ومين خرج وهل انسرق ام لا - يوم يسرق المقر ياخذ مبلغ بين 50,000 و 100,000 بينما الشخص العادي بياخذ بين 5,000 و 10,000 وفيه كمان مميزات يمديك تشوفها بنفسكك بس انا قلت اغير من فكرة سرقة البنك الى منشورة كثير يكون شيء جديد وله مميزات حلووهه ء الصور فيه مشاكل فى رفعها صراحة بس بحاول بعدين اعدل علي المنشور وبحط الصور كلمة فتح اللوحة للي معه الرتبة هي : open كلمة مراقبة المقر للي معه الرتبة هي : مراقبة الرتبة الى تحتاجها بفتح اللوحات وتجربة الخصائص هي : VIP حط السكربت بقروب الادمن علشان يشتغل كويس * رابط التحمييل : إضغط هنا لعيؤون @!#NssoR_) @N3xT @!#DesTroyeR_,) @+Source|> @AcTioN_PRO @Mr.Solo @Kareem Amer @Abdul KariM وكل المنتدي ..
    1 point
  9. setPedAnimation (jogador, "CARRY", "liftup", 0, false, false, false, false)
    1 point
  10. Have you noticed that the event system is Asynchronous? (You can't make use of the return keyword functionality after all. Stopping the code with it does work.) And exports are Synchronous. (You can use the return keyword to return values) An understanding of what I am talking about in JavaScript: After you watched this, you know which one is way faster.
    1 point
  11. Looking forward to check out your "new server" ^.^ Anyways, thanks for the update ein.
    1 point
  12. Estoy haciendo un server de estilo GTA V y el "rustler" ahora es un p996 Lazer un caza , pero no puedo cambiarle el sonido con otros scripts ¿hay alguna forma de superponer el sonido? para que no suene así?
    0 points
×
×
  • Create New...