Jump to content

' A F .

Members
  • Posts

    2,156
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by ' A F .

  1. متأكد isPlayerInWp DelPlayer انها موجودة ؟
  2. addEventHandler("onMarkerHit",root,function ( hit ) if ( source == marker and getElementType ( hit ) == "player" ) then givePlayerMoney( hit , 5000 ) outputChatBox("في مهمة الركض وقد ربح 500الف " .. getPlayerName(hit) .. " لقد فاز اللاعب",root,255,255,255,true) for i,v in ipairs ( getElementsByType("player") ) do if ( isPlayerInWp ( v ) ) then killPed ( v ) DelPlayer ( v ) end end destroyElement(source) end end );
  3. احط بالحدث حق دخول الماركر لوب يجيب لك اللاعبين الي بالمهمة ثم اقتلهم عن طريق هاذا الفنكشن : killPed ثم أحذفهم من الجدول .
  4. armedVehicles = {[425]=true, [520]=true, [476]=true, [447]=true, [430]=true, [432]=true, [464]=true, [407]=true, [601]=true} function vehicleWeaponFire(key, keyState, vehicleFireType) local vehModel = getElementModel(getPedOccupiedVehicle(localPlayer)) if (armedVehicles[vehModel]) then triggerEvent("onClientVehicleWeaponFire", localPlayer, vehicleFireType, vehModel) end end bindKey("vehicle_fire", "down", vehicleWeaponFire, "primary") bindKey("vehicle_secondary_fire", "down", vehicleWeaponFire, "secondary") addEvent ( "onClientVehicleWeaponFire" , true ) ; addEventHandler ( "onClientVehicleWeaponFire" , root , function ( _ , model ) if ( model == 432 ) then setTimer (playSound,2000,1,"Wow.mp3"); end end ) ;
  5. سيرفر من الطراز العألي , بالتوفيق لكم .
  6. ' A F .

    طلب

    مو شرط يسوي ذا كله يمديه يستخدم addDebugHook واذا الشات مغلق يرجع له 'skip'
  7. العفو حيأك الله , بس خليه كذا عشان تختصر الكود addEventHandler("onClientGUIFocus", search,function () guiSetText( source , "" ) end,false)
  8. local Keys,Dim = {"F1","F2","F3","F4","F5","F6","F7","F9","F10","F12","p","]","[","/"} , 45 ; addEventHandler ( "onClientKey" , root , function ( key , press ) if ( press and getElementDimension ( localPlayer ) == Dim ) then for k,v in ipairs ( Keys ) do if ( v == key ) then outputChatBox("غير مصرح لك بفتح اللوحة الان !",255,255,0,true) cancelEvent() end end end end ) ;
  9. حاول وتعرف , أضغط على الوظيفة وشوف المثال وبس ولو فيه اخطاء نصححها لك .
  10. 'onClientGUIFocus' guiSetText
  11. setWorldSoundEnabled 'onVehicleWeaponFire' -- https://wiki.multitheftauto.com/wiki/OnVehicleWeaponFire playSound
  12. العفو حيأك الله .
  13. addCommandHandler getPlayerAccount isGuestAccount getElementData setElementData setAccountData getAccountData
  14. الكود تمام بس لو يجيك مثلأ 9.000293 أستخدم math.floor عشأن تشيلهم
  15. تحتاج تسوي متغير تجيب حالة المهمة هل هي مشتغلة أو طافية . وتحدث المتغير مع التايمر .
  16. addEventHandler("onClientGUIChanged", root, function () if ( source == search ) then if ( guiGetText ( source ) == "" ) then guiGridListClear(grdPlayers) for i,v in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(grdPlayers) guiGridListSetItemText(grdPlayers,row,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end else guiGridListClear(grdPlayers) for i,v in ipairs(getElementsByType("player")) do if string.find(getPlayerName(v),guiGetText(search)) then local row = guiGridListAddRow(grdPlayers) guiGridListSetItemText(grdPlayers,row,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end end end end ) By @!#NssoR_)
  17. 'onPlayerWasted' getElementData setElementData
  18. tables or setElementData getElementData بالجداول سويه لكل اللاعبين وزيد القيمة +1 كذالك الداتا نفس الشيء .
  19. قلت لك إستخدم الداتا او الجدأول ويوم تدق على الزر سوي ترايقر واستخرج الداتا او الجداول من كل اللاعبين .
×
×
  • Create New...