Jump to content

Ahmed Ly

Members
  • Posts

    1,304
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Ahmed Ly

  1. https://www.youtube.com/watch?v=-4Uf3_zQL6Y
  2. دا مود مو هاك شوف
  3. CirimnalPed = createPed(46,2916.23950,-1588.47205,11.04688) addEventHandler("onResourceStart",root, function () setPedAnimation(CirimnalPed,"STRIP","PUN_LOOP") end )
  4. انت تبي عند الخروج من الماركر توقف الحركه ؟ setPedAnimation(Player,false)
  5. السلام عليكم ابي اسوي مود تصويب تلقائي يخليك تقتل زومبي بسرعه و لاعبين زي لي في فيديو بدي فكشنات
  6. function remotePlayerJoin() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) then outputChatBox("* " .. getPlayerName(source) .. " has joined the server[Console]",root,0,255,0) end end addEventHandler("onPlayerJoin",root,remotePlayerJoin) كود مش مجربه
  7. مود جميل واصل بدون فواصل بالتوفيق لك
  8. المود رئع استمر يبطل بالتوفيق لك =D> =D> =D> =D>
  9. GUIEditor = { gridlist = {}, window = {}, button = {} } -------alRtb ranks = { {'Assistant console',40}, {'adminstartion',40}, {'king of admins',40}, {'Manager server plus',40}, {'Manager server',40}, {'HED.ADMIN',40}, {'best admin',40}, {'super admin',40}, {'admin.Plus',40}, {'SuperModerator',40}, {'Moderator',40}, {'king of time',25} } ---------- local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow(148, 156, 452, 341, "=[ لوحــة التــرقيـات ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFC8F01") GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 433, 264, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "الرتب", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "عدد الساعات المطلوبه #", 0.5) GUIEditor.button[7] = guiCreateButton(146, 294, 150, 31, "=[ تــرقيـة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFAAAAAA") GUIEditor.button[28] = guiCreateButton(390, 303, 47, 28, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[28], "NormalTextColour", "FF9FB547") -- guiSetVisible (GUIEditor.window[1], false) function open() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end bindKey("F7", "down", open) addEventHandler( "onClientMouseEnter", getRootElement(), function(aX, aY) if source == GUIEditor.button[1] then playSound ('sond.mp3') end end) addEventHandler ('onClientGUIClick',root, function () if source == GUIEditor.button[1] then local rank = guiGridListGetItemText (GUIEditor.gridlist[1],guiGridListGetSelectedItem (GUIEditor.gridlist[1]),1) local Price = guiGridListGetItemText (GUIEditor.gridlist[1],guiGridListGetSelectedItem (GUIEditor.gridlist[1]),2) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent ('setRank',localPlayer,rank,Price) else triggerServerEvent ('error',localPlayer,rank,Price) end elseif source == GUIEditor.button[2] then guiSetVisible (GUIEditor.window[1],false) showCursor (false) end end ) for k,v in ipairs ( ranks ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,''..k..'-',false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[1],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,3,v[2],false,false); guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,255,0); guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,0,255,0) guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,255,255,0); guiGridListSetItemColor(GUIEditor.gridlist[1],row,4,0,255,0); guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); end
  10. GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(151, 132, 482, 359, "##", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1] ,false) GUIEditor.button[1] = guiCreateButton(135, 169, 242, 59, "Give", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") guiSetVisible (GUIEditor.window[1], false) function open() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end bindKey("x", "down", open) function give_w_ () if (source == GUIEditor.button[1] ) then triggerServerEvent ( "Give", localPlayer) end end addEventHandler ( "onClientGUIClick", root,give_w_) function se () giveWeapon ( source , 31 , 200 ) end addEvent ( "Give", true ) addEventHandler ("Give", root,se)
  11. ادا ازرار استخدم =========== -- #Server getPlayerMoney -- تتحقق من فلوس الاعب اذا مساويه لسعر السلاح او اكبر giveWeapon -- تعطيه سلاح takePlayerMoney -- تاخذ فلوس منه Client onClientGUIClick triggerServerEvent
  12. شو تبي تسوي بلضبط يبي يجمع 5 في 3 و تطلع في شات كم
  13. الحدث هدا onClientPedDamage لم تضرب Ped cancelEvent و هاد يكنسل افنت
  14. جطه بملف كلنت وبس addEventHandler ( "onClientPedDamage",root,function() cancelEvent() end) هيك يمكن كل لاعبين لا يموتو جرب هدا local ped = createPed (270,2485.00000,-1667.00000,13.34375) function dmg () cancelEvent() end addEventHandler ( "onClientPedDamage", ped, dmg )
  15. local ped = createPed (270,216.15730,1922.50903,18.64063) addEventHandler("onResourceStart",root, function() setElementFrozen ( ped, true ) end ) جرب
  16. assert هذي تتحقق من شيء و لو ما تحقق تقطع الفنكشن وتطلع خطأ بلدي بق من كتابتك, مثال : function DoThings(Tab) assert(type(Tab) == "table", "the var isn't a table !") for k, v in ipairs(Tab) do print(k, v) end end tostring تحول لك لسترنق مثال tostring(7) بيطلع لك "7" math.max هذا يجيب لك العدد الاكبر من مجموعة اعدادا انت حاطتها مثال : print(math.max(40, 70, 90, 500, 44400, 9000000, 700)) بيرجع لك 9000000 لانه الاكبر فيهم وفيه عكس ل math.max اللي هو math.min نفس كتابة math.max ان شاء الله فهمت شكرا لك
×
×
  • Create New...