Jump to content

Mhmd.z

Members
  • Posts

    498
  • Joined

  • Last visited

Everything posted by Mhmd.z

  1. فيه اكواد ثانيه ما تتعلق بالكود ذا
  2. "onClientGUIChanged" ايش تتوقع ؟ الحدث كلنت يعني الملف كلنت
  3. مو من الميتا, الملف شغال لكن الكود مو شغال
  4. تصحيح كود ... الدي بق ما يجيب شي addEventHandler("onClientGUIChanged", root, function() if source == Servermemo then if guiGetText(source) == "1" then outputChatBox("1",255,0,0) end end end)
  5. مو حاط احداثيات عند مركز الشرطه ومو مغلق الجدول, ناقصك اند end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end MKAN = { {"البداية",3490.43726,-1940.38354,12.18125}, {"الحلبه",2817.75806,-1743.10510,9.97133}, {"البنك",1478.26538,-1705.67419,14.04688}, {"مركز الشرطة",0,0,0} } function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end MKAN = { {"البداية",3490.43726,-1940.38354,12.18125}, {"الحلبه",2817.75806,-1743.10510,9.97133}, {"البنك",1478.26538,-1705.67419,14.04688}, {"مركز الشرطة",1521.77258,-1677.03223,13.54688}, {"المجمع السكني",3393.76758,-1732.79016,10.90000}, {"حارة سي جي",2491.12109375, -1667.4482421875, 13.34375}, {"السد الكبير",-887.02734375, 2000.9217529297, 60.654315948486}, {"الدائري",1678.33533, 1447.70569, 10.77515}, {"شارع النخيل",2068.1389160156, 1008.2157592773, 10.671875}, {"شارع الفروسيه",2878.1115722656, -1110.029296875, 10.882762908936}, {"شارع الغروب",662.55310058594, 1936.7479248047, 5.5052728652954}, {"ساحه التفجير",-2051.4926757813, -173.29304504395, 35.3203125}, {"الجسر المعلق", -1160.81372,1078.04163,40.23039}, {"معرض السيارات 1", -1988.24353,287.47321,34.30679}, {"معرض السيارات 2", 2128.78906,-1126.25452,25.53082}, {"معرض السيارات 3", 544.69055,-1273.57458,17.24824}, {"معرض السيارات 4", 1917.88013,2070.78638,10.82031}, {"السينما",-2012.24548,441.59763,35.17188}, } ------------ bindKey("f6","down", function () guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end ) for i,mk in ipairs(MKAN) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,mk[1],false,false) guiGridListSetItemData(grid,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(grid,row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(grid) if source == move then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(grid,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("* الرجاء اختيار مكان",255,0,0) end end end ) addEventHandler("onClientGUIClick",root, function () if ( source == move ) then guiSetVisible(wnd,false) showCursor(false) end end )
  6. القسم غلط ..# خذ: 1- bindKey("sprint", "down", function(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) local weaponSolt = getPlayerWeaponSlot(localPlayer) local widh, height = guiGetScreenSize() local x, y, z = getPedWeaponMuzzlePosition(localPlayer) local cax , cay, caz = getCameraMatrix() local tx , ty, tz = getWorldFromScreenPosition(widh/1.89,height/2.5,7) local sx, sy, sz = (tx-cax)/5, (ty-cay)/5, (tz-caz)/5 if weaponSolt then createProjectile(localPlayer, 19, x, y, z, 1, nil, 0, 0, 360-getPedRotation(localPlayer), sx, sy, sz) end end ) 2- setWorldSpecialPropertyEnabled("extrajump ", true) 3- function onDamage() cancelEvent() end addEventHandler("onClientPlayerDamage", root, onDamage)
  7. بس هو مو شارح عن اللعبه MTA, لآنه حاط الفاصله بعد كل كود واللعبه ما نحط فاصله, واللعبه كذه تكون الاكواد : "CREATE TABLE IF NOT EXISTS TableName (account TEXT, team TEXT)" لكن شرحه كذه: CREATE TABLE programmers ( account TEXT , team TEXT );
  8. طيب وين اقدر استخدم الاس كيو ال واستفيد منها؟
  9. كودك شغال, بس انه اللوحه اول ما تشغل المود تظهر لك, خله كذه: GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(443, 85, 550, 456, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(9, 65, 230, 37, "Goood", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(9, 402, 230, 37, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(187, 214, 298, 41, "", false, GUIEditor.window[1]) addEventHandler("onClientGUIClick",root, function ( ) if ( source == GUIEditor.button[1] ) then setWeather ( 9 ) end end ) guiSetVisible (GUIEditor.window[1], false ) function OpenWin() if guiGetVisible (GUIEditor.window[1]) then guiSetVisible (GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible (GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down", OpenWin)
  10. دوران البيد , يحرك البيد ل اتجاه ثاني , تحطها ما بين ال 0 - 270
  11. ped = createPed(23, 0,0,0) setElementRotation(ped, 90)
  12. addCommandHandler ( "c.c", function () triggerServerEvent("OpenWin",localPlayer) end ) addEvent("Open",true) addEventHandler("Open", root, function() if guiGetVisible(window) then guiSetVisible (window, true) showCursor(true) else guiSetVisible(window, false) showCursor(false) end end )
  13. طيب كودك وكودي يلي قبل ضبطو, وهو يقول ما ضبط ...# وليش حاط التعريف وهو مو مستعمله
  14. ليش مسوي ترايقر؟ function onLogin() showChat(source, false) end addEventHandler("onPlayerLogin", root, onLogin)
  15. addEvent( "loginn", true ) addEventHandler( "loginn", root, function ( u, p ) showChat (false) end )
  16. --server function onChat( message ) if message == "فلوس" then outputChatBox ( "#[TeamsSysteam] Abdoi Added to team by Adham",source,0, 255, 0, true ) outputChatBox ( "#[TeamsSysteam] Abdoi Added to team by Adham",source,0, 255, 0, true ) outputChatBox ( "#[TeamsSysteam] Abdoi Added to team by Adham",source,0, 255, 0, true ) outputChatBox ( "#[TeamsSysteam] Abdoi Added to team by Adham",source,0, 255, 0, true ) end end addEventHandler("onPlayerChat", root, onChat)
  17. منورين # حبايبي
  18. لحقت تشوفه ذذ # منور الموضوع
  19. وظيفة سارق البيوت, تسرق تلفاز من البيت, وبعدها تروح لمكان الوظيفة وتبيع التلفاز , وطبعا لو معك التلفاز ما تقدر تركض او تقفز او اتجلس, ومشان تشيل التلفاز تككتب ب اف 8 DropTV المود مو مشفر ..... عدلو كيف ما تبون http://up.top4top.net/downloadf-107ns6r1-zip.html
  20. يب ذا يلي ابيه, او لو في طريقه انه التايمر يضل شغال حتى لو انه مو بالسيرفر
×
×
  • Create New...