Jump to content

#bazooka

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by #bazooka

  1. "Account : "..tostring(getElementData(wc,"Account") addEventHandler("onPlayerLogin", root, function(_, account) setElementData(source, "Account", getAccountName(account)) end) ممممم -
  2. ششششششششششششششششششششششششششششششششششششششششششششيت من ناحية تصميم المآبات يمديني اساعدكم - لكن بالمودات مبتدأ نوعا مآ - # موفقين
  3. Client function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, frameColor) color = color or tocolor(255, 255, 255, 255) frameColor = frameColor or tocolor(0, 0, 0, 255) scale = scale or 1.1 font = font or "default" alignX = alignX or "left" alignY = alignY or "top" clip = clip or false wordBreak = wordBreak or false postGUI = postGUI or false dxDrawText(message, left + 1, top + 1, width + 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left + 1, top - 1, width + 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left - 1, top + 1, width - 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left - 1, top - 1, width - 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) end Rnoteam = 255 Gnoteam = 0 bnoteam = 0 local x, y = guiGetScreenSize() function MedicRender() if getTeamName(getPlayerTeam(localPlayer)) == "Medic" then if getElementDimension(localPlayer) == 55 then return end if getElementData(localPlayer, "LegalStatus")== "Jailed" then return end if getElementData(localPlayer, "LegalStatus")== "Arrested" then return end if getElementData(localPlayer, "Kidnapped") then return end if getElementData(localPlayer, "bag") then return end if isPedInVehicle(localPlayer) then return end if (isPedDead (localPlayer)) then return end if not isPedOnGround(localPlayer) then return end if getElementData(localPlayer, "MStat") == "Open" then dxDrawFramedText("Press : [R] To Delete The Healing Marker Matker !!",x*0.01, y*0.640, x*0.99, y*0.97, tocolor(255, 0, 0, 255), 1, "default-bold", "left", "top", false, false, true, false, false) else dxDrawFramedText("Press : [R] To Create The Healing Marker Matker !!",x*0.01, y*0.640, x*0.99, y*0.97, tocolor(0, 255, 0, 255), 1, "default-bold", "left", "top", false, false, true, false, false) end end end addEventHandler("onClientRender", getRootElement(), MedicRender) ------------------------------- addEventHandler("onClientPlayerDamage", root, function(attacker, weapon) if attacker and getElementType(attacker) == "player" and attacker ~= source then local Model = getElementModel(attacker) local Team = getPlayerTeam(attacker) if Team and (getTeamName(Team) == "Medic") then cancelEvent() if not isTimer(waitTimer[source]) then triggerServerEvent("healPlayer", attacker, source, attacker) waitTimer[source] = setTimer(function(p) waitTimer[p] = nil end, 1500, 1, source) end end end end) function onCompleteKid() triggerServerEvent ("Medic",localPlayer ) end bindKey("R", "down", onCompleteKid) local healAmount = 75 local medicMarker = {} local medicTimer = {} function heal(helled, heller) local money = getElementData(helled, "Money") or 0 if (healAmount <= money) then local health = getElementHealth(helled) local maxHealth = getPlayerMaxHealth(helled) or 100 if (health <= (maxHealth - 25)) then setElementHealth(helled, health + 25) payTheMoney(heller, helled) elseif (health <= (maxHealth - 5)) and (health > (maxHealth - 25)) and (health < maxHealth) then setElementHealth(helled, health + (maxHealth - health)) payTheMoney(heller, helled) end end end addEvent("healPlayer", true) addEventHandler("healPlayer", root, heal) function getPlayerMaxHealth(player) local currentHealth = math.ceil(getElementHealth(player)) setElementHealth(player, 200) local MaxHealth = math.ceil(getElementHealth(player)) setElementHealth(player, currentHealth) return MaxHealth end function payTheMoney(heller, helled) setElementData(helled, "Money", (getElementData(helled, "Money") or 0) - healAmount) setElementData(heller, "Money", (getElementData(heller, "Money") or 0) + healAmount) exports["guimessages"]:outputServer(heller, "#00FFFF[Medic Job] :#00FF00 You have earned $"..healAmount, 0, 255, 0) exports["guimessages"]:outputServer(helled, "#00FFFF[Medic Job] :#FF9900 You've paid $"..healAmount.." for medical services.", 255, 125, 0) end addEvent("Medic", true) addEventHandler("Medic", root, function() local team = getPlayerTeam(source) local medicTeam = getTeamFromName("Medic") if team and medicTeam and team == medicTeam then if isElement(medicMarker[source]) then destroyElement(medicMarker[source]) medicMarker[source] = nil setElementFrozen(source, false) toggleAllControls(source, true) exports["guimessages"]:outputServer(source, "#00FFFF[Medic Job] :#FF0000 Medic marker unloaded successfully.", 255, 255, 0) setElementData(source, "MStat", "Destroy") else if (getElementData(source, "WantLvl") or 0) > 0 then exports["guimessages"]:outputServer(source, "#00FFFF[Medic Job] :#FF0000 Your wanted level prevent you from doing this action.", 255, 0, 0) elseif isPedDead(source) then exports["guimessages"]:outputServer(source, "#00FFFF[Medic Job] :#FF0000 What are you trying to do?!?! only alives can do this action!", 255, 0, 0) elseif getElementData(source, "LegalStatus")== "Jailed" then exports["guimessages"]:outputServer(source, "#00FFFF[Medic Job] :#FF0000 You Are Jailed you Can't do this Action!", 255, 0, 0) elseif getElementData(source, "LegalStatus")== "Arrested" then exports["guimessages"]:outputServer(source, "#00FFFF[Medic Job] :#FF0000 You Are Arrested you Can't do this Action!", 255, 0, 0) elseif isPedInVehicle(source) then exports["guimessages"]:outputServer(source, "#00FFFF[Medic Job] :#FF0000 You must be on foot to do this action.", 255, 0, 0) elseif not isPedOnGround(source) then exports["guimessages"]:outputServer(source, "#00FFFF[Medic Job] :#FF0000 You must be on the ground to do this action.", 255, 0, 0) else setElementFrozen(source, true) toggleAllControls(source, false, true, false) if isTimer(medicTimer[source]) then killTimer(medicTimer[source]) end medicTimer[source] = setTimer(function(source) local x, y, z = getElementPosition(source) if isElement(medicMarker[source]) then destroyElement(medicMarker[source]) medicMarker[source] = nil end medicMarker[source] = createMarker(x, y, z-1, "cylinder", 2.2, 100, 100, 255, 125) setElementInterior(medicMarker[source], getElementInterior(source)) setElementDimension(medicMarker[source], getElementDimension(source)) exports["guimessages"]:outputServer(source, "#00FFFF[Medic Job] :#00FF00 Medic marker created successfully.", 0, 255, 0) setElementData(source, "MStat", "Open") --exports["guimessages"]:outputServer(source, "Do /"..cmd.." again to unload.", 100, 100, 255) end, 200, 1, source) end end end end) function eventCheck() if isElement(medicMarker[source]) then destroyElement(medicMarker[source]) medicMarker[source] = nil setElementFrozen(source, false) toggleAllControls(source, true) end end addEventHandler("onPlayerQuit", root, eventCheck) addEventHandler("onPlayerWasted", root, eventCheck) addEventHandler("onElementDataChange", getRootElement(), function(Date) if Date == "Money" then setPlayerMoney(getElementData(source, "Money")) end end) setTimer(function() for heller, marker in pairs(medicMarker) do for i, helled in ipairs(getElementsWithinColShape(getElementColShape(marker), "player")) do if helled ~= heller then heal(helled, heller) end end end end, 3000, 0) Server
  4. local ID = ??? addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) setTimer ( engineImportTXD ( engineLoadTXD ( "ngr500.txd", ID ), ID ) engineReplaceModel ( engineLoadDFF ( "ngr500.dff", ID ), ID ) end ,1000, 1 ) end )
  5. جآ لاق فبس بالسيرفر # : ههههههههههههههههههه الله يهديك بس
  6. مشكور ع الخدمة بس كلما اسوي الطريقة يعلق المتصفحح ؟@
  7. addEventHandler("onPlayerChat",getRootElement,chatbox) function chatbox() if getElementData(source,"NoSpeak",Everyone) return cancelEvent() end end
  8. تعرف نظام جراند العرب ؟ يعني لما تفتح البنك الي بالشارع تحط فلوس .. تنتظر 20 ثانية ابي كذا ابي كلما افتح البنك انتظر 20 ثانية عشان احط الفلوس .!
  9. شباب .. ابي لما احط فلوس افتح البنك انتظر 20 ثانية عشان احط فلوس يعني لو اقفله وافتحه مرة ثانية انتظر 20 ثانية guiSetEnabled( BanksService.button[1], false ) setTimer (guiSetEnabled, 10000, 1, BanksService.button[1], true ) guiSetVisible (BanksService.window[1],false) showCursor (false) setElementData(localPlayer,"DefaEnable",false) local MoneyToDeposit = guiGetText(BanksService.edit[1]) local money = getPlayerMoney(localPlayer) if tonumber(MoneyToDeposit) > 0 then if money >= tonumber(MoneyToDeposit) then triggerServerEvent ( "AddMoneyToBank", localPlayer, localPlayer, MoneyToDeposit )
  10. addEventHandler("onClientResourceStart", resourceRoot, function() outputChatBox("?????? -", 255, 0, 0, true) end ) : $ كذا كلما تسوي رستارت او تشغله يظهر بالشات اسم المود بس م عندي فكرة عن اظهار اسم الاعب طبعا كل مود تبيه طبعا بملف كلينت
  11. حساب الاعب , ، بس طبعا بلوحة الادمنية حطه الكود
  12. كذا تستعمله حطه بملف سيرفر output = function( text, element, r, g, b, vaule ) exports["guimessages"]:outputServer(element, text, r, g, b) end function start() output('Start Panel By #bazooka was started', root, 0, 255, 0, false ) end addEventHandler('onResourceStart', resourceRoot, start)
  13. elseif ( action == "warp" ) or ( action == "warpto" ) then if getElementData( player ,"Account") == "???" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant warp him", 255, 100, 100) return end function warpPlayer ( p, to ) function warp ( p, to ) local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( action == "warp" ) then if getElementData( player ,"Account") == "???yourAccount" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant warp him", 255, 100, 100) return end warpPlayer ( source, player ) else warpPlayer ( player, data ) mdata = getPlayerName ( data ) end
  14. SpecialCar = { } function MakeVehicles ( player ) if ( SpecialCar [ player ] ) and ( isElement ( SpecialCar [ player ] ) ) then destroyElement ( SpecialCar [ player ] ) SpecialCar [ player ] = nil end SpecialCar [ player ] = createVehicle ( 410, -68.67147064209,-1119.7764892578,1.078125 ) warpPedIntoVehicle ( player,SpecialCar [ player ] ) end addCommandHandler ( 'تفجير', function ( player ) if ( SpecialCar [ player ] ) and ( isElement ( SpecialCar [ player ] ) ) then blowVehicle ( SpecialCar [ player ] ) SpecialCar [ player ] = nil end end ) addEvent('ttt',true) addEventHandler('ttt',root, function ( ) if ( getElementData(source, "Money") > 20000 ) then -- if ( getPlayerMoney ( source ) >= 20000 ) then -- takePlayerMoney ( source,20000 ) setElementData(source, "Money", (getElementData(source, "Money") or 0) - 20000) MakeVehicles ( source ) exports["guimessages"]:outputServer ( source," تم شراء السيارة الملغمة بمبلغ 20000 ", 252, 0, 0, true ) else exports["guimessages"]:outputServer(source, " لاتملك المال الكافي لشراء السيارة الملغمة 20000", 252, 0, 0, true ) end end ) addEventHandler ( 'onVehicleExplode',resourceRoot, function ( ) setTimer ( destroyElement,3000,1,source ) end ) addEventHandler ( 'onPlayerQuit',root, function ( ) if ( SpecialCar [ source ] ) and ( isElement ( SpecialCar [ source ] ) ) then destroyElement ( SpecialCar [ source ] ) SpecialCar [ source ] = nil end end ) ملف سيرفر
  15. السلام عليكم ي شباب ابي كود مثلا لو صار بنق الاعب 100 تنغلق الوحه تلقائي مثلا setTimer(guiSetEnabled,20000,1,GroupBank_Deposit_Button,true) if getPlayerPing(localPlayer) < 100 then if getElementData(localPlayer,"ClosePanelBank") then exports["guimessages"]:outputClient("[Bank-System] : #FF0000Bug Abuse Detected!",0,255,255) return end مع ذالك الوحع تبقى لما يصير البنق 100 شلون مدري فيه حل او مساعدة
  16. اقصد انو الاعبين م يقدرون كلمات غير الي انا اكتبها ! وشكرا فهد #
  17. السلام عليكم ي شباب # لو م في امر ابي اكواد اني امنع كل الكلمات ! الي باف 8 بس انا اكتب الكلمات الي ابيها تنكتب او لو فيه مود مثل كذا ويعطيكم العافيه
  18. 100% لكن ابي الاكواد
  19. السلام عليكم ي شباب الحين انا عندي لوحه بدي الغيها من المناطق الوهميه وش اضيف ع الكود هنا يعني بس بدي اخليها بالعالم 0 والغيها بالمناطق الثانية انا حاولت لكن الوحه تظهر ! شو اضيف bindKey("K", "down", function() if getElementInterior(localPlayer) == 0 and getElementDimension(localPlayer) == 0 then if not isInColExport () then guiSetVisible(Window_VS, not guiGetVisible(Window_VS)) end else exports["guimessages"]:outputClient("you can't use this here!", 255, 0, 0) end end)
  20. السلام عليكم ! شباب ابي كود يخلي الاحتلال بوقتت معين ! يعني مثلا زي سرك , مثلا ابيه 6 مساء حتى 9 مساء وكذا والف عافيه تنزل عليكم !
  21. ok مشكور اخوي انحلت المشكله مع انه جربت ذا الكود بس لما اعطي #: يعطيك الف عافيه
  22. حرب عصابات ! يعني لما الاعب يدخل السيرفر او يموت ويرسبن يعني بكل الحالات !
×
×
  • Create New...