Jump to content

Tete omar

Members
  • Posts

    3,267
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tete omar

  1. المشكلة هنا انك حاط >= هذي حقت الحسابات يعني اكبر من أو يساوي لازم تحط زي كذا if( Name == "AkoN" ) then
  2. كل موقع الام تي اي يكرهوك حتى اقل واحد اشوفه يقولي MOJRM-511 the person who put the virus on community ? فعلاً .. اسم على مسمى , مجرم
  3. لا هو يبي كود الليزر الي يطلع من السلاح
  4. بس مدري , استنى الردود
  5. addEvent('JetPack',true) addEventHandler('JetPack', root, function () if (getPlayerMoney(source) >= 3000) then takePlayerMoney (source,3000) setElementHealth(source,100) outputChatBox("* #0099ccSuccessfully bought Health #000000[ #ff0000$2500#000000]#00ff00 !",source,0,255,0,true) else outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end )
  6. if ( PlayerMoney > 2000 ) then هذي راح ياخذ 2000 اذا الاعب معه اكثر من الفين وبس if ( PlayerMoney >= 2000 ) then هذي راح ياخذ الفلوس 2000 او اكثر
  7. correct function onGuiClick (button, state, absoluteX, absoluteY) if ( source == shop222 ) then sBatEl = getElementData(getLocalPlayer(),"superBat") if sBatEl == false then local PlayerMoney = getPlayerMoney() if ( PlayerMoney >= 2000 ) then takePlayerMoney(2000) outputChatBox("SuperBat Well End After #ffffff[#00ff00 1:00#ffffff ] #ff0000Minutes",255,0,0,true) outputChatBox("Go Go Go !!!",255,0,0) setElementData(getLocalPlayer(),"superBat",true) triggerServerEvent("sBat", getLocalPlayer()) function superBat(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) triggerServerEvent("killPed",getLocalPlayer(),hitElement,weapon) end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), superFist) setTimer(function ()setElementData(getLocalPlayer(),"superBat",false) removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), superBat) outputChatBox("*** [ Super Bat ] HAS END ***",255,255,0) end,35000,1, true) else outputChatBox("Error #ffff00You don't have #00ff00[ $2000 ] #ff0000 to buy SuperBat #ffffff| #ffff00u have money #00ff00[ $".. PlayerMoney.. " ]",255,0,0,true) end outputChatBox("Error You Already Have Super Bat !!!",255,0,0) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)
  8. client function onGUIClick(button, state, absoluteX, absoluteY) if ( source == shop222 ) then guiSetVisible ( Window ,false ) showCursor (false ) guiSetInputEnabled(false) end end addEventHandler("onClientGUIClick", root, onGUIClick) sBatEl = getElementData(getLocalPlayer(),"superBat") if sBatEl == false then local PlayerMoney = getPlayerMoney() if ( PlayerMoney > 2000 ) then takePlayerMoney(2000) outputChatBox("SuperBat Well End After #ffffff[#00ff00 1:00#ffffff ] #ff0000Minutes",255,0,0,true) outputChatBox("Go Go Go !!!",255,0,0) setElementData(getLocalPlayer(),"superBat",true) triggerServerEvent("sBat", getLocalPlayer()) function superBat(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) triggerServerEvent("killPed",getLocalPlayer(),hitElement,weapon) end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), superFist) setTimer(function ()setElementData(getLocalPlayer(),"superBat",false) removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), superBat) outputChatBox("*** [ Super Bat ] HAS END ***",255,255,0) end,35000,1, true) else outputChatBox("Error #ffff00You don't have #00ff00[ $2000 ] #ff0000 to buy SuperBat #ffffff| #ffff00u have money #00ff00[ $".. PlayerMoney.. " ]",255,0,0,true) end else outputChatBox("Error You Already Have Super Bat !!!",255,0,0) end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) server addEvent("killPed",true) addEventHandler("killPed", root, function(hitElement,weapon) if ( weapon == 5 and getElementType(hitElement)=="player" ) then if not ( getPlayerTeam(source) == getPlayerTeam(hitElement) ) then killPed(hitElement,source,weapon) end end end)
  9. اعرض ملف ال server side
  10. function onGUIClick(button, state, absoluteX, absoluteY) if ( source == shop222 ) then guiSetVisible ( Window ,false ) showCursor (false ) guiSetInputEnabled(false) end end addEventHandler("onClientGUIClick", root, onGUIClick) sBatEl = getElementData(getLocalPlayer(),"superBat") if sBatEl == false then local PlayerMoney = getPlayerMoney() if ( PlayerMoney > 2000 ) then takePlayerMoney(2000) outputChatBox("SuperBat Well End After #ffffff[#00ff00 1:00#ffffff ] #ff0000Minutes",255,0,0,true) outputChatBox("Go Go Go !!!",255,0,0) setElementData(getLocalPlayer(),"superBat",true) triggerServerEvent("sBat", getLocalPlayer()) function superBat(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) if ( weapon == 5 and getElementType(hitElement)=="player" ) then triggerServerEvent("killPed",getLocalPlayer(),hitElement,weapon) end end addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), superFist) setTimer(function ()setElementData(getLocalPlayer(),"superBat",false) removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), superBat) outputChatBox("*** [ Super Bat ] HAS END ***",255,255,0) end,35000,1, true) else outputChatBox("Error #ffff00You don't have #00ff00[ $2000 ] #ff0000 to buy SuperBat #ffffff| #ffff00u have money #00ff00[ $".. PlayerMoney.. " ]",255,0,0,true) end else outputChatBox("Error You Already Have Super Bat !!!",255,0,0) end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) الكود صحيح بس انت ناسي end و بعض الاقواس صلحتها لك
  11. وضح اكثر ما فهمتك ؟؟؟ تقصد اذا لاعب ضرب الاعب الثاني بالعصا يموت على طول ؟
  12. عفواً في بعض الاخطاء جرب ذا addEventHandler("onClientRender", root, function( ) local money = getPlayerMoney(localPlayer) if( money >= 5 ) then guiSetText(label, "1") elseif( money >= 10 ) then guiSetText(label, "2") end end) عفواً
  13. اذا تقصد label استخدم guiLabelSetColor لو تبي تلون الزر استخدم setElementData
  14. هههههه تسلم حبيبي لاكن عندي طلب آخر اذا ماعليك آمر انا مسوي Label وفيه رقم 0 ابي لما يكون فلوسك 5 يجيك على اليبل زياده 1 واذا كان فلوسك 10 يجيك على اليبل زياده 1 ويصيون الي في اليبل 2 وتسلم والله ماتقصر addEventHandler("onClientRender", root, function( ) local money = getPlayerMoney(localPlayer) if( money >= 5 ) then guiSetText(label, 1) elseif( money >= 10 ) then guiSetText(label, 2) end end) حط اسم اليبل الي انت مسويها بدال label هذا الي فهمته من كلامك ... بس ان شاء الله يساعد : ) ويا ليت تقرا ذي https://wiki.multitheftauto.com/wiki/AR/ ... 8.AF.D8.AB
  15. مع انه كود بسيط لاكن عندك اغلاط كبييرة تفضل name = guiCreateButton(157,236,120,31,"1111",false,window) guiSetVisible(name,false) addEventHandler("onClientRender", root, function( ) local money = getPlayerMoney(localPlayer) if (money >= 2) then guiSetVisible(name,true) end end)
  16. Client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Image = {} GUIEditor_Scrollpane = {} GUIEditor_Window[1] = guiCreateWindow(414,125,327,392,"شوب ريس/مستر الكارثه الاصدار الاول",false) GUIEditor_Image[1] = guiCreateStaticImage(0.052,0.1046,0.3609,0.2066,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(247,-563,0,0,false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(0.0581,0.4184,0.37,0.2066,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(0.5688,0.2959,0.3639,0,"images/mtalogo.png",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5229,0.1046,0.4281,0.1888,"اصلاح السياره",true,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(0.5291,0.4158,0.422,0.1888,"نيترو",true,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(0.5413,0.7347,0.419,0.1862,"تعديل",true,GUIEditor_Window[1]) GUIEditor_Image[4] = guiCreateStaticImage(0.0734,0.7117,0.367,0.2117,"images/mtalogo.png",true,GUIEditor_Window[1]) guiSetVisible (GUIEditor_Window[1], false) ------------------------------------------------------انهاء النافذه-------------------------------------------------- addEventHandler ("onClientGUIClick", root, function( ) if ( source == buyNitro ) then triggerServerEvent("1",getLocalPlayer()) elseif( source == buyRepair ) then triggerServerEvent("2",getLocalPlayer()) elseif( source == buyFlip ) then triggerServerEvent("3",getLocalPlayer()) end end bindKey("F7","down",function( ) if guiGetVisible ( GUIEditor_Window[1] ) == false then guiSetVisible ( GUIEditor_Window[1] , true ) showCursor ( true ) else guiSetVisible ( GUIEditor_Window[1] , false ) showCursor ( false ) guiSetInputEnabled ( false ) end end) server addEvent("1", true) addEventHandler("1", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) addVehicleUpgrade(getPedOccupiedVehicle(source),1010) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) end end) addEvent("2", true) addEventHandler( "2", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) fixVehicle(getPedOccupiedVehicle(source)) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ 3,000 ]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) end end addEvent("3", true) addEventHandler( "3", root, function( ) if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 3000 ) then takePlayerMoney(source, 3000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) outputChatBox("[ ".. getPlayerName(source) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 255, true) else outputChatBox("You Dont Have [ 3,000 ]", source, 255, 255, 255, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) end end ملاحظة : انا لقيتك تسوي افراق كبييييييرة بين كل سطر وسطر هذا احياناً ما يكون مضبوط if source == ... then triggerServerEvent يا ليت تخليه منظم ثاني مرة
  17. الوظائف setTimer createProjectile -- يطللع قنابل من السلاح , صواريخ الخ .. takePlayerMoney -- اخذ فلوس اللاعب ( المبلغ الي تبيه ) ــ الحدث onClientPedWeaponFire الوظائف setTimer setElementHealth takePlayerMoney -- اخذ فلوس اللاعب ( المبلغ الي تبيه ) ــ الحدث onClientPlayerDamage الوظائف setVehicleRotation takePlayerMoney -- اخذ فلوس اللاعب ( المبلغ الي تبيه ) ــ الحدث onClientGUIClick بعد صناعة الزر الوظائف setTimer givePedJetPack takePlayerMoney -- اخذ فلوس اللاعب ( المبلغ الي تبيه ) ــ الحدث onClientGUIClick بعد صناعة الزر
  18. lol karthik , is there a trojan called ransom ? 'Trojan-Ransom'
×
×
  • Create New...