Jump to content

d43dr4

Members
  • Posts

    319
  • Joined

  • Last visited

Everything posted by d43dr4

  1. ملف ال كلينت Client : root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#000000===[#ff0000Shop Panel #000000v.1 #ff0000BY #000000===|#ff0000Na#000000IF|=== & ===|NaIF|=== #000000| #000000Press #ff0000F2 #000000To Open It #000000]===",0,255,0,true) shopWindow = guiCreateWindow(400,70,540,610,"Shop Panel BY ===|OSAMA|=== & ===|$AFAH|=== ",false) guiSetVisible (shopWindow, false) guiWindowSetSizable(shopWindow,false) guiWindowSetMovable(shopWindow,true) tabPanel = guiCreateTabPanel(11,23,599,600,false,shopWindow) ------------------------------------------------------------------------------------------------------- tab2 = guiCreateTab("Weapons",tabPanel) --------- ????? 1 -line 1 ------------------------------------------------------------------------------------ guiCreateStaticImage( 10,10,90,75, "weapon/21.png", false,tab2 ) weapButton_14 = guiCreateButton(10,80,90,30,"Pistol $600",false,tab2 ) guiCreateStaticImage( 110,10,90,75, "weapon/2.png", false,tab2 ) weapButton_18 = guiCreateButton(110,80,85,30,"Silenced $700",false,tab2 ) --------------------------------- guiCreateStaticImage( 210,10,90,75, "weapon/24.png", false,tab2 ) weapButton_1 = guiCreateButton(210,80,95,30,"Desert Eeagle $700",false,tab2) --------------------------------- guiCreateStaticImage( 310,10,90,75, "weapon/31.png", false,tab2 ) weapButton_2 = guiCreateButton(310,80,90,30,"M4 $750",false,tab2) -------------------------------- guiCreateStaticImage( 410,10,90,75, "weapon/19.png", false,tab2 ) weapButton_17 = guiCreateButton(410,80,95,30,"Fire Extinguisher 400$",false,tab2 ) -------------------------2 ?????----------------------------------------------------------------------------------------------------------- guiCreateStaticImage( 10,110,90,80, "weapon/5.png", false,tab2 ) weapButton_4 = guiCreateButton(10,190,90,30,"AK-47 $700",false,tab2) guiCreateStaticImage( 110,110,90,80, "weapon/6.png", false,tab2 ) weapButton_5 = guiCreateButton(110,190,90,30,"MP5 $600",false,tab2) guiCreateStaticImage( 210,110,90,80, "weapon/7.png", false,tab2 ) weapButton_11 = guiCreateButton(210,190,90,30,"Sawn off $750",false,tab2 ) guiCreateStaticImage( 310,110,90,80, "weapon/8.png", false,tab2 ) weapButton_6 = guiCreateButton(310,190,90,30,"TEC-9 $600",false,tab2 ) guiCreateStaticImage( 410,110,90,80, "weapon/26.png", false,tab2 ) weapButton_24 = guiCreateButton(410,190,90,30,"Katana $400",false,tab2 ) -------------------------------------------------------------------------- line 3 guiCreateStaticImage( 10,220,90,80, "weapon/11.png", false,tab2 ) weapButton_8 = guiCreateButton(10,300,90,30,"Uzi $650",false,tab2) guiCreateStaticImage( 110,220,90,80, "weapon/17.png", false,tab2 ) weapButton_10 = guiCreateButton(110,300,90,30,"Shotgun $600",false,tab2) guiCreateStaticImage( 210,220,90,80, "weapon/10.png", false,tab2 ) weapButton_12 = guiCreateButton(210,300,90,30,"Combat $700",false,tab2 ) guiCreateStaticImage( 310,220,90,75, "weapon/3.png", false,tab2 ) weapButton_35 = guiCreateButton(310,300,90,30,"Rifle $1800",false,tab2) guiCreateStaticImage( 410,220,90,80, "weapon/14.png", false,tab2 ) weapButton_7 = guiCreateButton(410,300,90,30,"Sniper $700",false,tab2) --------------------------------------------------------------------------------------line 4 guiCreateStaticImage( 10,330,90,80, "weapon/18.png", false,tab2 ) weapButton_15 = guiCreateButton(10,410,90,30,"Chainsaw $500",false,tab2 ) guiCreateStaticImage( 110,330,90,80, "weapon/1.png", false,tab2 ) weapButton_13 = guiCreateButton(110,410,90,30,"Knife $500",false,tab2 ) guiCreateStaticImage( 210,330,90,80, "weapon/13.png", false,tab2 ) weapButton_16 = guiCreateButton(210,410,90,30,"Tear gas $1500",false,tab2 ) guiCreateStaticImage( 310,330,90,75, "weapon/20.png", false,tab2 ) weapButton_3 = guiCreateButton(310,410,90,30,"Grenade $1800",false,tab2) guiCreateStaticImage( 410,330,90,80, "weapon/9.png", false,tab2 ) weapButton_19 = guiCreateButton(410,410,90,30,"Satchel $2000",false,tab2 ) --------------------------------------------------------------------------------------line 5 guiCreateStaticImage( 10,440,90,80, "weapon/23.png", false,tab2 ) weapButton_23 = guiCreateButton(10,520,90,30,"Spraycan $500",false,tab2 ) guiCreateStaticImage( 110,440,90,80, "weapon/16.png", false,tab2 ) weapButton_9 = guiCreateButton(110,520,90,30,"Parachute $250",false,tab2) guiCreateStaticImage( 210,440,90,80, "weapon/15.png", false,tab2 ) weapButton_20 = guiCreateButton(210,520,90,30,"Minigun $2500",false,tab2 ) guiCreateStaticImage( 310,440,102,80, "weapon/25.png", false,tab2 ) weapButton_21 = guiCreateButton(310,520,98,30,"Rocket Launcher $2500",false,tab2 ) guiCreateStaticImage( 410,440,105,80, "weapon/22.png", false,tab2 ) weapButton_22 = guiCreateButton(410,520,103,30,"Heat-Seeking RPG $3000",false,tab2 ) --------------------------------------الشوب-------------------------------------------------3tab tab3 = guiCreateTab("Shop-1",tabPanel) --------------------------------------------------------------------------------------------------------- -------------------------------- --------------------------------------الشوب-------------------------------------------------4tab tab4 = guiCreateTab("Shop-2",tabPanel) --------------------------------------------------------------------------------------------------------- -------------------------------- ----------------------------------------------------------------------------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("xOSAMA.mp3") end end ) ------------------------------------------------------------------------------------------------------ -------------------------------------------------------------------بدايه ربط الازرار بالسيرفر server---------- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == weapButton_1 ) then triggerServerEvent("gived",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == weapButton_2 ) then triggerServerEvent("givem4",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == weapButton_3 ) then triggerServerEvent("givegrn",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == weapButton_4 ) then triggerServerEvent("givemk",getLocalPlayer()) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY)
  2. شوب العقرب او سعد المهم ذاك اللي فيه عصابات GX- HD- MFI
  3. عاشق الشرق الشوب مشفر *-* F2 لكنه ينفتح ب الاسلحة مسموحة في ساحة القتال فقط : ـ كود المنطقة الخضراء بالرادار local hillRadar = createRadarArea ( -3112.8400878906, -3183.6437988281, 200, 86, 0, 255, 0, 175 ) احداثيات الساحة :ـ -3113.6340332031 -- اقصى اليسار X -3183.6298828125 -- اقصى الجنوب Y -2916.1879882813 -- اقصى اليمين X -3107.737065469 -- اقصى الشمال Y ارقـآم الاسلحة :ـ "4", "9", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "16", "17" شكرا مسبقا على المساعدة
  4. اقصد اذا ممكن كود كامل حق تختفى الاسللحة و يطفى الشوب لما تطلع برا الساحة
  5. ليه شباب الله يعافيكم ممكن المود ذا ؟؟
  6. السلام عليكم شباب عندي كود حق الماركر اللي يعطي السيارات addEventHandler("onMarkerHit", marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then warpPedIntoVehicle(player, createVehicle(541, getElementPosition(player))) end end) هذا جزء بس انا مسوي 5 ماركرات كل وحده تعطي سيارة لكن المشكل لما يجون الزوار يدخلون الماركر كل شوي والسيارات تتكاثر هناك وتصير حالة فوضى الرجاء ممكن حل يعني اذا دخل واحد الماركر تروح سيارته الاولى و تجي سيارة اخرى وشكرا مسبقا
  7. شكراااا سورا و كلكم شباب الله يجعلها في ميزان حسناتكم
  8. يا طلال ماني مبرمج ولا اعرف كيف اسوي ذا اذا ممكن تسويو لي المود لاهنتو اذا تبون احداثيات ساحة القتال قولون ...
  9. اخ عناد تراني مو مبرمج سالت سورا وقالي نفس الشيء تعطي صلاحية مدري وش اذا ممكن الطريقة او شرح ؟
  10. اها شكرا انا ارفع من اف تي بي
  11. شباب عندي استفسار مهم و يا ليت تجاوبون كيف اشغل مود في سيرفر بدون ما اسوي ريستارت للسيرفر والله طفش كل شوي ريستارت تفقد الزوار و كل شيء اذا ممكن الحل و شكرا مسبقا
  12. يا عاشق الشرق لهنت السكربت كامل لمنع الاسلحة و الشوب خارج الساحة
  13. السلام عليكم اخوان كيف الاحوال .. ان شاء الله بخير المهم لدي استفسار و هو حول كيفية انشاء ماركر لما تدخل فيه يعطيك موتر او سيارة هو شفته في بدايات كثيرة حاولت اسويه من الماب اديتور و ما زبط ممكن الطريقة الصحيحة و شكرا لكم مسبقا
  14. السلام عليكم و رحمة الله تعالى و بركاته شباب بدي اطلب مود .. صراحة مو مود واحد الاول اللي يخلي الاسلحة تختفي و الشوب يطفى بعد ما تطلع من ساحة القتال بشوفه في سيرفرات .. في اف 11 تشوف مكان ساحة القتال منطقة خضراء F2 عندي شوب حق سعد او العقرب ، ينفتح ب _________________________________________________________ اما المود الثاني هو اللي يمنع اسلحة معينة مثلا المينيجن و البازوكا عندي واحد بس فيه خلل يعني لما تمنع المينيجن (ID:38) يمنع السيف كمان (ID: لان 8 رقم من 38 الكود حق السكربت : "meta.xml" : <meta> <info author="Tockra" version="1.2" type="misc" name="Forbid Weapons (runs with freeroam and other Resources)" description="You can forbid some weapons on your server by changing the settings.xml" /> <script src="start.lua" type="server" /> </meta> "settings.xml" : <settings> <WeaponIDs>38,37,36,10,11,39,40,4,9</WeaponIDs> </settings> "start.lua" : local settingFile = xmlLoadFile ( "settings.xml" ) local node = xmlFindChild(settingFile,"WeaponIDs",0) local ids = tostring(xmlNodeGetValue ( node )) function forbidWeapons( previousWeaponID, currentWeaponID ) local s,st = string.find(ids,tostring(currentWeaponID) ) if(s) then setTimer(takeWeapon,50,1,source,currentWeaponID) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), forbidWeapons ) ابي المود الاول عاجل واذا ممكن تصحيح للمود الثاني
  15. Doesn't work .. Thx anyway Waiting for another script !
  16. Hello guys, I have a probleme or a bug on a script , that script can forbid some weapons by their ids When you get this forbidden weapon it will auto hiden from you weapons .. But there is a problem .. As exemple : When i forbid a weapon id is : 38 (Minigun) The weapons that contain numbers 3 (Nightstick) and 8 (Katana) will forbidden else . What should i do !? Here is the "meta.xml" file <meta> <info author="Tockra" version="1.2" type="misc" name="Forbid Weapons (runs with freeroam and other Resources)" description="You can forbid some weapons on your server by changing the settings.xml" /> <script src="start.lua" type="server" /> </meta> and the "settings.xml" file : <settings> <WeaponIDs>38,37,36,10,11,39,40,4,9</WeaponIDs> </settings> and the "start.lua" file : local settingFile = xmlLoadFile ( "settings.xml" ) local node = xmlFindChild(settingFile,"WeaponIDs",0) local ids = tostring(xmlNodeGetValue ( node )) function forbidWeapons( previousWeaponID, currentWeaponID ) local s,st = string.find(ids,tostring(currentWeaponID) ) if(s) then setTimer(takeWeapon,50,1,source,currentWeaponID) end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), forbidWeapons ) Please Help me .. how can fix it ? If u have another script for this function please give me .
×
×
  • Create New...