Jump to content

Mhmd.z

Members
  • Posts

    498
  • Joined

  • Last visited

Everything posted by Mhmd.z

  1. عدلت الكود, كان ناقصه شي : addEventHandler("onClientGUIClick",root, function ( ) if ( source == Slap ) then if ( guiGridListGetSelectedItem(grid ) ~= -1 ) then local plr = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid ),1) local myPlayer = getPlayerFromName ( plr ) outputChatBox("You Give To"..plr.." Slap") setElementHealth(myPlayer, 0) end end end )
  2. addEventHandler("onClientGUIClick",root, function ( ) if ( source == Slap ) then if ( guiGridListGetSelectedItem(grid ) ~= -1 ) then local plr = guiGridListGetItemText(grid ,guiGridListGetSelectedItem(grid ),1) local myPlayer = getPlayerFromName ( plr ) outputChatBox("You Give To"..plr.." Slap") setElementHealth(myPlayer, 0, true) end end end )
  3. --server addEvent("refresh",true) addEventHandler("refresh",root,function () for k,v in ipairs (getElementsByType("player")) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)),aclGetGroup("Support")) ) then triggerClientEvent("online",source,getPlayerName(v)) end end end) addEvent("support",true) addEventHandler("support", root,function () if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then triggerClientEvent("sendmessage",source) else triggerClientEvent("sendmessage2",source) end end) --client addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function() local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,getPlayerName(localPlayer), false, false) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,guiGetText(GUIEditor.edit[1]), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 255, 0, 0, 255) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2, 35, 254, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then outputChatBox("[support-System] #FF0000"..getPlayerName(localPlayer).."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end)
  4. triggerClientEvent("sendmessage",) : triggerClientEvent("sendmessage",source) اسم الاعب ييجي بالسبورت لست مو بالليست حقت الشات, ولازم تسوي قسمين لليست قسم فيه اسم الاعب وقسم فيه الكلام يعني كذه: guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "Message", 0.4)
  5. اخوي لازم تضيف فنكشن عند اللوب يعني يصير الكود كذه function() for k,v in ipairs(cars) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,v[1],false,false) guiGridListSetItemText(grid,row,2,v[3],false,false) guiGridListSetItemData(grid,row,1,v[2]) guiGridListSetItemData(grid,row,2,v[3]) end end
  6. guiGetText dxDrawText guiGridListAddRow guiGridListRemoveRow guiGridListGetSelectedItem outputChatBox getPlayerName "onClientGUIClick" "onClientRender" guiGetText يب تنفع, تسوي لها مثل تعريف كذه local text = guiGetText(edit) dxDrawText(x - 300) / 1, (y - 350) / 1, 300, 350, text, 0, 0, 0, tocolor(255,255,255,255), true)
  7. تمت اضافة: createExplosion, showCursor, setCursorAlpha, getCursorAlpha, isCursorShowing, isElement, removePedClothes,addPedClothes, isElementWithinColShape, isElementWithinMarker https://wiki.multitheftauto.com/wiki/AR/createExplosion https://wiki.multitheftauto.com/wiki/AR/showCursor https://wiki.multitheftauto.com/wiki/AR/setCursorAlpha https://wiki.multitheftauto.com/wiki/AR/getCursorAlpha https://wiki.multitheftauto.com/wiki/AR/isElement https://wiki.multitheftauto.com/wiki/AR ... PedClothes https://wiki.multitheftauto.com/wiki/AR/addPedClothes https://wiki.multitheftauto.com/wiki/AR ... inColShape https://wiki.multitheftauto.com/wiki/AR ... thinMarker https://wiki.multitheftauto.com/wiki/AR/isCursorShowing
  8. --client function onClick() if ( source == button) then local row = guiGridListGetSelectedItem( grid_list ) local name = guiGridListGetItemText(grid_list, row, column) if name == "100" then triggerServerEvent("giveMoney_100", localPlayer) end end end addEventHandler("onClientGUIClick", root, onClick) --server function give() givePlayerMoney(source, 100) end addEvent("giveMoney_100", true) addEventHandler("giveMoney_100", root, give)
  9. هههههههههههههههههه # يب كويس
  10. يسلمو , بالنسبه لملف الكلنت كنت اجرب عليه اشياء وما حذفته, ماله داعي الكلنت تقدرو تشيلوه المود فقط ملف سيرفر
  11. السلام عليكم ورحمة الله وبركاته مود النفط عبارة عن انه اول ما يشتغل المود ييجي نفط كل 5 ثوان في المنطقه السوداء, وكل ما تاخذ النفط رح ييجيك فلوس بشكل عشوائي, طبعا النفط هو مثل برميل صغير تروح له مشان تاخذ النفط , بعد ما تاخذه رح ييجي للي بمنطقه النفط اسم الي اخذ النفط وكم فلوس اخذ عليه , وبعد 5 ثوان يكتب بالشات انه جا نفط جديد , اتمنى يعجبكم, طبعا لو في اي خطأ كلموني http://up.top4top.net/downloadf-50p4tb1-zip.html
  12. اوك لكن ما اعرف اسوي ان الاعب ما ينقص دمه لكن بحاول سكربت رائع تم تعديل الرابط والتعديل على المود , الحين الاعب بس يطلع للقمر ما يقدر ياخذ اسلحه وما يموت
  13. كفوك , تقدر تعدل عليه انت
  14. المره الجاي بالمود الجاي
  15. السلام عليكم ورحمة الله وبركاته مود وظيفة الفضاء من برمجتي, شرح المود : اول شيئ في ماركر تروح له بعدها رح يوديك للقمر عن طريق صاروخ , ورح تاخذ سكن فضائي, بعد ما تطلع في ماركرين فوق ماركر يخرجك من القمر وماركر مشان تبدأ الوظيفة , بالتوفيق المود مو مشفر, رابط المود : http://www.mrkzgulf.com/do.php?id=181723
  16. شكرا, ممكن تعطيني فنكشنات الي تسوي صوره فوق الماركر؟
  17. السلام عليكم ورحمة الله وبركاته ابي تصححيح لذا الكود انه يعطي الاعب داتا بشكل عشوائي من ذول الداتا , يعني او بعطيه داتا 1 او داتا 2...... local Data = math.random ( data1, data2, data3, data4, data5 ) setElementData(player, Data, (getElementData(player, Data) or 0) + 1)
  18. السلام عليكم ورحمة الله وبركاته ابي تصحيح كود لحفظ الالمنت , انا مسوي انه يعطي الاعب المنت لما ياخذ الوظيفه كذه: local account = getPlayerAccount ( source ) setElementData( source, "Job", "playerInJob", true ) setAccountData( account,"Job",tostring( getElementData( source, "Job", true ))) ذي بس ياخذ الوظيفه الحين لو الاعب دخل وخرج ما تحفظ, انا جربت احفظها بالاكونت وكذه طلع معي function onPlayerQuit() local playerAccount = getPlayerAccount(source) if (playerAccount) then local jobPlayer = getElementData( source, "Job" ) setAccountData(playerAccount, "playerJob", jobPlayer) end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) -- add an event handler function onPlayerLogin() local playerAccount = getPlayerAccount(source) if (playerAccount) then local jobPlayer = getAccountData(playerAccount, "playerJob") if (jobPlayer) then setAccountData( source,"Job") end end end addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin)
  19. مو فاهم , وضح , والمثال وش دخله بالايديت
  20. السلام عليكم ورحمة الله وبركاته ابي كود تحديد لو كان الكلام الي بالايديت ارقام مو كلمات يكمل الحدث
  21. مشكلة .... جربت المود مع شخص يوم اقتل الحرامي الشرطه والحراميه يفوزو, وش الحل function () if getElementData ( resourceRoot, "rvgtime" ) < 1990 then for i, robberPlayers in ipairs(TableRobber) do givePlayerMoney(robberPlayers, 25000) outputChatBox ( "#....robbers....", getRootElement(), 255, 255, 255, true ) triggerEvent("onRobbersWin", source) end end end ) addEventHandler("onPlayerWasted", root, function () if getElementData ( resourceRoot, "rvgtime" ) < 1990 then for i, policePlayers in ipairs(TablePolice) do givePlayerMoney(policePlayers, 25000) outputChatBox ( "#....police....", getRootElement(), 255, 255, 255, true ) triggerEvent("onPoliceWin", source) end end end ) وبالنسبه انه يحط الاعب بالجدول او يشيله سويتها كذه table.insert(TableRobber, source) table.remove(TableRobber, source)
×
×
  • Create New...