Jump to content

فاّرس

Members
  • Posts

    4,805
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by فاّرس

  1. Este es sólo un ejemplo, addCommandHandler("pos", function(player) setElementPosition(player,x,y,z) end)
  2. ^ والله شرحح برستيج الله يعطيه العافيه شرك كافي ووافي 6 صفحات !!! ترا هي سهله مثلها مثل تركيب الايفنت وكذآ, اقرا الـ السينتاكس وراح تفهم بإذن واحدٍ احد.
  3. No this will find any ped in the server and set the anim . so how to do it? if you try this : for i,v in ipairs(getElementsByType("player")) do bindKey(v, "e", "down", "arrest") end function onPlayerTarget (player) setPedAnimation( player, "ped", "handsup") end end addCommandHandler("arrest", onPlayerTarget) this for player only.
  4. for i,v in ipairs(getElementsByType("player")) do bindKey(v, "e", "down", "arrest") end function onPlayerTarget (ped) for k,v in ipairs(getElementType("ped")) do setPedAnimation( v, "ped", "handsup") end end addCommandHandler("arrest", onPlayerTarget) Try it.
  5. اعتقد انه واضح, وهذا مثال, addEventHandler("onClientRrsourceStart",resourceRoot, function() Health(player) end) function Health(player) if getElementType(player) == 'player' then setElementHealth(player,math.min(50,-99,1)) end end ان ما وصلت المعلومه آمسك, انتبه عليه تراه بـ $3.99
  6. هذي تفيدك انك تربط فنكشن مع فنكشن آخر, مثآل, function onKill() -- nothing end مثلا تبي تربطه مع الفنكشن الثاني, function onSpawn() outputChatBox(...) onKill() end addEventHandler("...."...) الزبده تسهل عليك تختصر,
  7. رح خذ شوب بشر وتعلم منه مع إنه اكثره اخطاء, لكن تعلم ,
  8. إن شاء الله نشوفها من اطلق الاستضافات بالتوفيق ,
  9. for i,v in ipairs(getElementsByType("player")) do bindKey(v, "e", "down", "arrest") end function onPlayerTarget (ped) if getElementType(ped) == 'ped' then setPedAnimation( ped, "ped", "handsup") end end addCommandHandler("arrest", onPlayerTarget) Try it. If it wrong use for k,v in ipiras...
  10. The animation("handsup") not in wiki.
  11. عمرك فتحت الويكي؟
  12. اصلا ما عرف يسوي كود النافذه مدري كيف بيتعلم, الله يعين,
  13. اذا قصدك تبيها في اديت , جرب, addEventHandler("onClientGUIClick",Grid, function() local Get = guiGridListGetItemText(Grid, guiGridListGetSelectedItem(Grid), 1) guiSetText(EditName, Get) end) ^ ما جربته ذذ
  14. GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(458,158,572,555,"",false) guiSetVisible ( GUIEditor_Window[1], false ) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Grid[1] = guiCreateGridList(13,32,192,514,false,GUIEditor_Window[1]) function List() if ( guiGetVisible(GUIEditor_Window[1]) == true ) then guiGridListSetSelectionMode(GUIEditor_Grid[1], 2) local Column = guiGridListAddColumn(GUIEditor_Grid[1], "Players List...", 0.85); for _,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) NamePlayer = guiGridListSetItemText(GUIEditor_Grid[1], row, Column, getPlayerName(player), false, false) setTimer(List,10000,0) end end end
  15. شرحنا بما فيه الكفايه, جرب الكود وشوفه وانت بتفهم بإذن الله,
  16. في طريقه ثآنيه, بس حق عناد اسهل, وافضل بالنسبه للثآنيه, function List() Grid = guiCreateGridList(...); if ( guiGetVisible(Window) == true ) then local Column = guiGridListAddColumn(Grid, "Players List...", 0.85); for _,player in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(Grid) NamePlayer = guiGridListSetItemText(Grid, row, Column, getPlayerName(player), false, false) setTimer(List,10000,0) end end end مآ جربته ذذ
  17. ^ والي ما يعرف ما يتعلم؟ الغلط مننا نساعدك وانت تبيها نسخ + لصق
  18. ما كنت ادري وش نظام المود,, + الغلط منه يستخدم مود ما يعرف له ,
  19. مشكور لكن معلش لو طولت معاك ابي كود جروب سيستم الي منضم في الجروب ينتقل الى مكان وانا احط الأحدثيات وشكراً isObjectInACLGroup setElementPosition
  20. ^ اذا ما تقرا الويكي ما راح تعرف تسوي نص كود,
  21. برستيج باقي زعلان من امس ههه, آسف اذا زعلتكك بس لحظه انفعال + Scorpio @ ليش معطيك الاكواد هذي؟
  22. 'onClientGUIClick' -- اذا ضغط على الزر guiSetVisible -- يخفي النافذه ويظهر الثانية
  23. ^ انت وش تحس فيه؟ نبيه يتعلم تجي تسوي له؟
  24. في وظائف DX اي نوع ؟ اذا الكتابة dxDrawText = مثل اللبل ولكن يمتاز بخطوط جميله, الجريد ليست, هي رائعه نوعا مآ, تقدر تضيف اسماء اللاعبين او السيارات او الشخصيات او اي شيء, + في وظائف كثير للجريد ليست,
×
×
  • Create New...