Jump to content

+Source|>

Members
  • Posts

    1,389
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by +Source|>

  1. زيي زيك مددري احطه وحلاص ضض واذا ما حطيته ما يشتغل
  2. GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible( GUIEditor.window[1], false ) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA") GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1) guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83) GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D") GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77") local x, y, z = -- احداثيات الماركر local x2, y2, z2 = -- احداثيات الماركر local x3, y3, z3 = -- احداثيات الماركر marker = createMarker ( x, y, z -1 , "cylinder", 1.5, 155, 0, 0 ) marker = createMarker ( x2, y2, z2 -1 , "cylinder", 1.5, 155, 0, 0 ) marker = createMarker ( x3, y3, z3 -1 , "cylinder", 1.5, 155, 0, 0 ) wndroot = getResourceRootElement() addEventHandler("onClientMarkerHit", marker, function(plr) if plr == localPlayer then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end ) addEventHandler("onClientGUIClick", wndroot, function() if ( source == GUIEditor.button[2] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( false ) end end )
  3. الطلب الأول على حسب المود هذا الكود مع الكيل مسج حق السيرفر الاساسي exports.killmessages:outputmessage
  4. GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(558, 182, 264, 450, "::|[Vehicles]|::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible( GUIEditor.window[1], false ) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0FB4EA") GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 243, 367, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.1) guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicles", 0.83) GUIEditor.button[1] = guiCreateButton(9, 401, 112, 35, "Use", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFEBD40D") GUIEditor.button[2] = guiCreateButton(140, 401, 112, 35, "Close", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFDE1C77") local x, y, z = -- احداثيات ماركرك marker = createMarker ( x, y, z -1 , "cylinder", 1.5, 155, 0, 0 ) wndroot = getResourceRootElement() addEventHandler("onClientMarkerHit", marker, function(plr) if plr == localPlayer then guiSetVisible(GUIEditor.window[1], true) showCursor(true) end end ) addEventHandler("onClientGUIClick", wndroot, function() if ( source == GUIEditor.button[2] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( false ) end end )
  5. بجرب بس الان بمستشفى
  6. شوف يالطيب mma7 = getResourceRootElemen()
  7. mtxt انا معرف بها الايديت بوكس ما يطلع شيئ
  8. لما احدد اللاعب واوزع ما يوزع ملف سيرفر addEvent("moneyforp", true) addEventHandler("moneyforp", root, function(mtxt, player) local player = getPlayerFromName(player) if ( player ) then givePlayerMoney( player, mtxt ) end end ) ملف كلنت addEventHandler("onClientGUIClick", mma7, function() local slctd = guiGridListGetSelectedItem( grid ) local txt = guiGridListGetItemText( grid, slctd, 1 ) local mtxt = guiGetText(GUIEditor.edit[1]) if ( source == GUIEditor.button[2] ) then if ( slctd ~= -1 ) then if mtxt == "" then outputChatBox( " #00ffff[ Gave Money ] #ff0000 الرجاء كتابة مبلغ للتوزيع ", 255, 0, 0, true ) return end triggerServerEvent( "moneyforp",localPlayer, txt, mtxt ) else outputChatBox( " #00ffff[ Gave Money ] #ff0000 الرجاء إخـتيار لاعـب ", 255, 0, 0, true ) end end end )
  9. وكيف اعرفهم بتريقر؟؟؟
  10. المشكله مب بالفلوس المشكله بال giveWeapon id ammo
  11. ما اشتغل الكود ملف سيرفر addEvent("weapon", true) addEventHandler("weapon", root, function( action, ID, ammo ) if ( action == "wpp" ) then giveWeapon( source, ID, ammo, true ) end end ) ملف كلنت local wep = { -- { Weapon / ID / Ammo / Money } -- {"M4", "31", "1000", "9000"}, {"Minigun", "38", "1000", "9000"}, } function refreesh () guiGridListClear( wpgrd ) for i, v in ipairs ( wep ) do local rowwp = guiGridListAddRow( wpgrd ) guiGridListSetItemText( wpgrd, rowwp, 1, tostring( v[1] ), false, false ) guiGridListSetItemData( wpgrd, rowwp, 1,{ ID = v[2] , ammo = v[3] , money = v[4] } ) end end bindKey( "f7", "down", function() if guiGetVisible( GUIEditor.window[1] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor(false) else guiSetVisible( GUIEditor.window[1], true ) showCursor(true) refreesh () end end ) addEventHandler("onClientGUIClick", wshroot, function() local ss = guiGridListGetSelectedItem( wpgrd ) local tt = guiGridListGetItemText( wpgrd, ss, 1 ) if ( source == GUIEditor.button[1] ) then if ( ss ~= -1 ) then triggerServerEvent ( "weapon" , localPlayer , "wpp" ) end end end )
  12. --Client Side addEventHandler("onClientResourceStart", root, function() setTimer( function() setPlayerHudComponentVisible("money", true) end, 1000, 0 ) end )
  13. انا عطيتك الكود من قبل
  14. ادري بس عرفت المشكله كل فريق يسمع نفسه الفريق الاسود ميقدر يسمع الاحمر والعكس شكراا
  15. مشكلة بمود المايك لما اتكلم اضغط z واتكلم العلامه تجي فوقي بالاحمر ومحد يسمع شي
  16. If addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then executeCommandHandler("report") end end ) اعتقد صحيح ولو تبي حق اخفاء شات addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[2] then if ( isChatVisible () == true ) then showChat(false) else showChat(true) end end end ) اعتقد الاكواد صحيحه
  17. bindKey صيغتها غلط بملف سيرفر كذا
  18. شكرا لكم بس شي اخر لاهنتم مسوي زر ابيه يخفي الهود Hud
  19. addEvent("ree", true) addEventHandler("ree", root, function() redirectPlayer( source, 46.105.250.205:25011 ) end ) مشتغل
  20. قلي شي تغير فالكود غير root
  21. شكرا طيب وهذا وش مشكلته addEventHandler("onClientGUIClick", settingroot, function() if source == GUIEditor.button[1] then executeCommandHandler("reconnect") end end )
  22. أعتقد هذذا صحيح |M.r|LooFe| -- Client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == bazzoka ) then triggerServerEvent ( "giveBazzoka", localPlayer ) end end ) -- Server addEvent ( "giveBazzoka", true ) addEventHandler ( "giveBazzoka", root, function ( ) giveWeapon ( root, 35, 99999, true ) outputChatBox ( "#FFE933[GiveWeapon System]: لقد قام اللاعب ( " .. getPlayerName ( source ) .. " ) بتزويع سلاح بازوكا", root, 0, 0, 0, true ) end)
×
×
  • Create New...