Jump to content

SycroX

Members
  • Posts

    2,141
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by SycroX

  1. + لو سمحت لما تيجي تطرح الأكواد استعمل [lua.] [/lua] شيل ال نقطة طبعا الي في خلها كدا [lua]
  2. روح ملف mta sa1.5 /mods/deathmatch/resources و دور علي ملف skc_vehiclelights و احذفو
  3. هو قالك تخفي اللوحه ماقالك تخفي الماوس بعد طيب لو أغلق اللوحة هيضل عالق بلماوس و ما يقدر يتحرك
  4. سوي مثل ما قال لك الوحش
  5. setElementData getElementData guiSetEnabled سوي فللوحة لما اللاعب يختار حد و يعطيه ميوت يعطيه معه داتا و سوي تحقق لو اللاعب معه الداتا ده يغلق زر فك الميوت
  6. اخرت الأكواد الجاهزة كود بسسيط مثل هاد ما قدر يسويه :- الكود كلو سطر اصلن :-
  7. روح جروب Console و ضيف هاد user.Console
  8. هو انتا قصدك مثل الي في طاره [6ArH- Gta-Ar]??
  9. setTimer ( function ( ) for k,v in ipairs (getElementsByType("player")) do if ( getElementInterior ( v ) == 15 ) then setElementInterior(v, 0) setElementPosition(v,2202.63672,1846.10718,10.82031) outputChatBox("The Mission End|المهمة انتهت",v,250,255,0) end end end,600000,1)
  10. وين تعريف الـ killer انتا مسوي بس _,killer لازم تتحق ان الkiller ده لاعب و انو مو source هيك يعني if killer and killer ~= source and getElementType(killer) == "player" then
  11. x,y = guiGetScreenSize()-- guiSetInputMode("no_binds_when_editing") client = getLocalPlayer() GUIEditor = { label = {}, memo = {} } Groups_Window = guiCreateWindow(143, 39, 550, 453, "Group-System", false) guiWindowSetSizable(Groups_Window, false) guiSetAlpha(Groups_Window, 1.00) guiSetVisible ( Groups_Window, false ) Create_Group_Edit = guiCreateEdit(160, 56, 208, 33, "", false, Groups_Window) Create_Group_Button = guiCreateButton(381, 56, 102, 37, "Create Group", false, Groups_Window) guiSetProperty(Create_Group_Button, "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(212, 30, 110, 16, "Create Group:", false, Groups_Window) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(0, 99, 545, 15, "__________________________________________________________________________________", false, Groups_Window) Members_Group_Button = guiCreateButton(170, 124, 235, 36, "View My Group Members", false, Groups_Window) guiSetFont(Members_Group_Button, "default-bold-small") guiSetProperty(Members_Group_Button, "NormalTextColour", "FFAAAAAA") myInvites_Group_Button = guiCreateButton(10, 248, 202, 31, "View My Group Invites", false, Groups_Window) guiSetFont(myInvites_Group_Button, "default-bold-small") guiSetProperty(myInvites_Group_Button, "NormalTextColour", "FFAAAAAA") InfoEdit_Group_Button = guiCreateButton(175, 173, 226, 37, "View/Edit My Group Info", false, Groups_Window) guiSetFont(InfoEdit_Group_Button, "default-bold-small") guiSetProperty(InfoEdit_Group_Button, "NormalTextColour", "FFAAAAAA") Leave_Group_Button = guiCreateButton(420, 414, 121, 32, "Leave Group", false, Groups_Window) guiSetFont(Leave_Group_Button, "default-bold-small") guiSetProperty(Leave_Group_Button, "NormalTextColour", "FFAAAAAA") GUIEditor.label[3] = guiCreateLabel(8, 340, 536, 15, "________________________________________________________________________________________________________________________________________", false, Groups_Window) GroupList_Group_Button = guiCreateButton(412, 248, 128, 32, "Group List", false, Groups_Window) guiSetFont(GroupList_Group_Button, "default-bold-small") guiSetProperty(GroupList_Group_Button, "NormalTextColour", "FFAAAAAA") Close_Group_Button = guiCreateButton(221, 414, 188, 30, "Close Window", false, Groups_Window) guiSetFont(Close_Group_Button, "default-bold-small") guiSetProperty(Close_Group_Button, "NormalTextColour", "FFAAAAAA") GUIEditor.label[4] = guiCreateLabel(12, 299, 154, 15, "Group Administration:", false, Groups_Window) guiSetFont(GUIEditor.label[4], "default-bold-small") InvitesPlayer_Group_Button = guiCreateButton(220, 248, 189, 34, "Invite Player to Group", false, Groups_Window) guiSetFont(InvitesPlayer_Group_Button, "default-bold-small") guiSetProperty(InvitesPlayer_Group_Button, "NormalTextColour", "FFAAAAAA") Group_History_Button = guiCreateButton(417, 314, 123, 31, "Group History", false, Groups_Window) guiSetFont(Group_History_Button, "default-bold-small") guiSetProperty(Group_History_Button, "NormalTextColour", "FFAAAAAA") Group_Rank_Button = guiCreateButton(9, 315, 201, 31, "Manage Group Rank", false, Groups_Window) guiSetFont(Group_Rank_Button, "default-bold-small") guiSetProperty(Group_Rank_Button, "NormalTextColour", "FFAAAAAA") Group_Bank_Button = guiCreateButton(10, 366, 201, 30, "Group Bank", false, Groups_Window) guiSetFont(Group_Bank_Button, "default-bold-small") guiSetProperty(Group_Bank_Button, "NormalTextColour", "FFAAAAAA") Group_TopTurf_Button = guiCreateButton(221, 366, 192, 30, "Groups Top Turf", false, Groups_Window) guiSetFont(Group_TopTurf_Button, "default-bold-small") guiSetProperty(Group_TopTurf_Button, "NormalTextColour", "FFAAAAAA") Group_TopBank_Button = guiCreateButton(418, 366, 122, 30, "Groups Top Bank", false, Groups_Window) guiSetFont(Group_TopBank_Button, "default-bold-small") guiSetProperty(Group_TopBank_Button, "NormalTextColour", "FFAAAAAA") Group_BlackList_Button = guiCreateButton(221, 314, 191, 32, "Manage Group Black List", false, Groups_Window) guiSetFont(Group_BlackList_Button, "default-bold-small") guiSetProperty(Group_BlackList_Button, "NormalTextColour", "FFAAAAAA") Admin_Group_Button = guiCreateButton(10, 413, 201, 30, "Delete Group", false, Groups_Window) guiSetFont(Admin_Group_Button, "default-bold-small") guiSetProperty(Admin_Group_Button, "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(10, 36, 143, 18, "Group Name: No Group", false, Groups_Window) myInvites_Group_Label = guiCreateLabel(15, 228, 143, 13, "Group Invites: 0", false, Groups_Window) GUIEditor.label[8] = guiCreateLabel(0, 208, 545, 15, "__________________________________________________________________________________", false, Groups_Window) GUIEditor.label[9] = guiCreateLabel(5, 274, 545, 15, "__________________________________________________________________________________", false, Groups_Window) GUIEditor.label[10] = guiCreateLabel(4, 396, 536, 15, "________________________________________________________________________________________________________________________________________", false, Groups_Window) GUIEditor.label[11] = guiCreateLabel(10, 93, 422, 16, "Crate Group System By $100000", false, Groups_Window) GUIEditor.memo[1] = guiCreateMemo(9, 122, 156, 79, "New Group System\n\nEdit By ja[b]er[X]Pro\n\n\n\n-------------------------\nمود الجروبات الجديد\n\nمن قبل جابر\n\n:)", false, Groups_Window) GUIEditor.memo[2] = guiCreateMemo(404, 124, 136, 79, "Group System v1.1\n\nEdit\n\nBy ja[b]er[X]Pro", false, Groups_Window) + لو سمحت اكتب مود الجروب الجديد من تعديل : عشان المود من برمجة تابل و حرام يروح تعبو
  12. طبعا في moveObject createObject
  13. ض1 مهمة بحالها دي تبا له اشياء كتيرة استخدم الفانكشنات الي عطيتها لجابر و لو ما عرفت سوي اي شي و نحن نساعدك
  14. addEventHandler("onMarkerHit", Marker, function(player) setTimer(function() if getElementType(player) == "player" and not isPedInVehicle(player) then setElementFrozen(player) end,120000,1) end)
  15. addEventHandler("onMarkerHit", Marker, function(player) if getElementType(player) == "player" and not isPedInVehicle(player) then if source == Marker then local team = getPlayerTeam(player) if team and getTeamName(team) == "No Team" then setElementPosition(player, x, y, z) setElementDimension(player, 1) setElementHealth(player, 100) end end end end)
  16. addEventHandler = 'onMarkerHit' addEventHandler = 'onClientPlayerDamage' cancelEvent setElementData getElementData getPlayerMoney setPlayerMoney setElementPosition setElementDimension setElementInterior
  17. كيف تباها تشتغل و انتا حاطت حدث onClientRender في ملف سيرفر شيلو من ملف سيرفر و حطو كلنت text = { {"Mission Last Man",2224.30151,1838.87183,10.82031, -- x,y,z pos 255,0,255},-- r,g,b color } addEventHandler ( "onClientRender", root, function (v) for _,v in ipairs (text) do local x,y,z = getElementPosition ( localPlayer ) if ( getDistanceBetweenPoints3D (v[2],v[3],v[4], x,y,z ) ) < 50 then local pos = { getScreenFromWorldPosition ( v[2],v[3],v[4]) } if (isLineOfSightClear (v[2],v[3],v[4], x,y,z, true, true, false, true)) then if pos[1] and pos[2] then dxDrawText (v[1], pos[1],pos[2],pos[1],pos[2], tocolor(v[5],v[6],v[7]), 2, "default-bold" ) end end end end end)
  18. الخطا عندكم كان فسطر 23 مو مسوين تخقق من الأليمنات هي true ولا false Marker = createMarker (2226.6999511719,1838.3000488281,9.8000001907349, "cylinder", 1.5, 48, 206, 97, 0 ) setElementData ( Marker ,"Hit", true ) Timer = setTimer ( function ( ) if Timer and isTimer(Timer) or isElement(Timer) then setElementData(Marker,"Hit",true) end end,1200000,1 ); addEventHandler("onMarkerHit",Marker, function (HitElem) if getElementData(HitElem, "Hit") == true then local rand = math.random(1, 12) if rand ==1 then setElementPosition ( source, 2220.82104,-1152.29944,1025.79688) elseif rand == 2 then setElementPosition ( source, 2223.53076,-1146.58630,1025.79688) elseif rand == 3 then setElementPosition ( source, 2228.42969,-1140.57678,1029.79688) elseif rand == 4 then setElementPosition ( source, 2231.60132,-1150.41760,1029.79688) elseif rand == 5 then setElementPosition ( source, 2237.60278,-1159.64636,1029.79688) elseif rand == 6 then setElementPosition ( source, 2245.54712,-1189.38806,1029.80432) elseif rand == 7 then setElementPosition ( source, 2240.68823,-1189.95288,1033.79688) elseif rand == 8 then setElementPosition ( source, 2226.09644,-1181.82043,1029.79688) elseif rand == 9 then setElementPosition ( source, 2209.90698,-1192.10559,1029.79688) elseif rand == 10 then setElementPosition ( source, 2229.25854,-1188.43433,1029.79688) elseif rand == 11 then setElementPosition ( source, 2241.62891,-1189.13782,1029.79688) elseif rand == 12 then setElementPosition ( source, 2231.00024,-1170.52417,1029.79688) elseif rand == 13 then setElementPosition ( source, 2203.62476,-1144.56409,1033.71802) outputChatBox ("تم نقلك للمهمة",HitElem) else outputChatBox ("لم تبدأ المهمة بعد",HitElem) end end end ); Timer = setTimer ( function ( ) if Timer and isTimer(Timer) or isElement(Timer) then setElementData(Marker,"Hit",false) end end,120000,1 ); function() setElementData(Marker,"Hit",true) outputChatBox("تم تشغيل المهمة",HitElem) end addCommandHendral("start1mission",Marker) جرب الحين
  19. ميتا شو و سيتا شو بس كل المشكلة انو حاطت في اخر رو فل Table , لهيك ما ضاف شي للجريد لست بدل الكلنت حقك بدي GUIEditor = { staticimage = {}, label = {}, button = {}, window = {}, scrollbar = {}, gridlist = {} } local Shilat = { {"http://cdn.top4top.net/d_6633b77e561.mp3","حبيبي شارب شاهي"}, {"http://cdn.top4top.net/d_11668d4a9b1.mp3","شيلة المعنى"}, {"http://cdn.top4top.net/d_c7fc5e3aeb1.mp3","شيلة رآعي الجيب "}, {"http://cdn.top4top.net/d_c36a05a5251.mp3","شيلة حالتي حالة"}, {"http://cdn.top4top.net/d_93f673b3ce1.mp3","شيلة وداعة الله"}, {"http://cdn.top4top.net/d_46e047a2951.mp3","شيلة صبلي يانور"}, {"http://cdn.top4top.net/d_dd9ad629251.mp3","شيلة أبرق الريش"}, {"http://cdn.top4top.net/d_8f86e81d9a1.mp3","ي صعي والله"}, {"http://cdn.top4top.net/d_8f86e81d9a2.mp3","البيت جنب"}, {"http://cdn.top4top.net/d_8f86e81d9a3.mp3","الفجر الجديد"}, {"http://cdn.top4top.net/d_3ebeb787751.mp3"," صدتك عني غريبة"}, {"http://cdn.top4top.net/d_8f86e81d9a9.mp3"," شيلة مسموح ترحل"}, {"http://cdn.top4top.net/d_8f86e81d9a10.mp3","شيلة ي حظ"}, {"http://cdn.top4top.net/d_cb12531a141.mp3","شيلة شرهات النشاما"}, {"http://cdn.top4top.net/d_8f86e81d9a6.mp3","شيلة علوم الرجاجيل "}, {"http://cdn.top4top.net/d_8f86e81d9a5.mp3","شيلة اللكزس"}, {"http://cdn.top4top.net/d_8f86e81d9a4.mp3","شيلة البارحه"}, {"http://cdn.top4top.net/d_73f1e0acdd1.mp3","شيلة هزني في الحشا"}, {"http://cdn.top4top.net/d_73f1e0acdd2.mp3","شيلة ابشر"}, {"http://cdn.top4top.net/d_73f1e0acdd4.mp3","شيلة الرفق"}, {"http://cdn.top4top.net/d_73f1e0acdd5.mp3","شيلة العيد"}, {"http://cdn.top4top.net/d_73f1e0acdd6.mp3","شيلة امحق وجيه"}, {"http://cdn.top4top.net/d_3c2ff0dfce1.mp3","شيلة لا زهمني"}, {"http://cdn.top4top.net/d_3c2ff0dfce2.mp3","شيلة لي صاحب"}, {"http://cdn.top4top.net/d_3c2ff0dfce3.mp3","شيلة ما عاد فيها ي نشاما"}, {"http://cdn.top4top.net/d_3c2ff0dfce4.mp3","شيلة ي مرحبا"}, {"http://cdn.top4top.net/d_3c2ff0dfce5.mp3","شيلة ي زين سلم"}, {"http://cdn.top4top.net/d_3c2ff0dfce6.mp3","شيلة ي صاحبي"}, {"http://cdn.top4top.net/d_3c2ff0dfce7.mp3","شيلة ي طير غنيت"}, {"http://cdn.top4top.net/d_73f1e0acdd9.mp3","شيلة ي ما شكيت الهم"}, {"http://cdn.top4top.net/d_3c2ff0dfce9.mp3","شيلة الرنج"}, {"http://cdn.top4top.net/d_3c2ff0dfce10.mp3","شيلة لاتحسب اني"}, {"http://cdn.top4top.net/d_e2ce8f39521.mp3","شيلة لبيه لبيه"}, {"http://cdn.top4top.net/d_e2ce8f39522.mp3","شيلة لجل الغلا"}, {"http://cdn.top4top.net/d_9ce35d63e01.mp3","شيلة ي خيالي"}, {"http://cdn.top4top.net/d_e2ce8f39525.mp3","شيلة ي بري حالي"}, {"http://cdn.top4top.net/d_e2ce8f39526.mp3","شيلة ي وليفي"}, {"http://cdn.top4top.net/d_e2ce8f39527.mp3","شيلة يقولون الهوى ظالم"}, {"http://cdn.top4top.net/d_ada35faaca1.mp3","شيلة ي فرج"}, {"http://cdn.top4top.net/d_7ea4f660c71.mp3","شيلة ي طير السعد"}, {"http://cdn.top4top.net/d_1bfeb68ce91.mp3","شيلةاجرح حبيبك حلالك"}, {"http://cdn.top4top.net/d_ad77806d7c1.mp3","شيلة شيخ المكارم"}, {"http://cdn.top4top.net/d_1bdeddfd2f2.mp3","شيلة ي فرج"}, {"http://cdn.top4top.net/d_1bdeddfd2f3.mp3","شيلة ي عبدالغني"}, {"http://cdn.top4top.net/d_1bdeddfd2f4.mp3","شيلة لاضاق صدري"}, {"http://cdn.top4top.net/d_df66c98fef1.mp3","شيلة ي سعد ربعي"}, {"http://cdn.top4top.net/d_022ff6fb194.mp3","شيلة صديت اصحابي"}, {"http://cdn.top4top.net/d_57f03999705.mp3","شيلة اجمل غلا"}, {"http://cdn.top4top.net/d_abf5200a461.mp3","شيلة الحب"}, {"http://cdn.top4top.net/d_57f03999703.mp3","شيلة عسير الهول"}, {"http://cdn.top4top.net/d_abf5200a462.mp3","شيلة الزعامة"} } function centerWindow(center_window,xx,yy) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy guiSetPosition(center_window,x,y,false) end GUIEditor = { staticimage = {}, label = {}, button = {}, window = {}, scrollbar = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(398, 99, 609, 595, "=! (لـــوحـــة آلشـيـلآت ~ | ~ Panel-Shilat) !=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FEE90000") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 23, 590, 562, "logo.png", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:3EB70000 tr:3EB70000 bl:3EB70000 br:3EB70000") GUIEditor.label[1] = guiCreateLabel(78, 20, 435, 54, "=! (لـــوحـــة آلشـيـلآت ~ | ~ Panel-Shilat) !=", false, GUIEditor.staticimage[1]) local font0_seguisym = guiCreateFont("seguisym.ttf", 17) guiSetFont(GUIEditor.label[1], font0_seguisym) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) GUIEditor.gridlist[1] = guiCreateGridList(74, 84, 458, 367, false, GUIEditor.staticimage[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Shilat", 0.9) for i = 1, 20 do guiGridListAddRow(GUIEditor.gridlist[1]) end GUIEditor.button[1] = guiCreateButton(379, 387, 18, 30, "", false, GUIEditor.gridlist[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(405, 470, 164, 48, "تـشـغيل#", false, GUIEditor.staticimage[1]) local font1_seguisym = guiCreateFont("seguisym.ttf", 23) guiSetFont(GUIEditor.button[2], font1_seguisym) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FEE90000") GUIEditor.button[3] = guiCreateButton(405, 524, 164, 38, "#آيـقآف", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[3], font1_seguisym) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FEE90000") GUIEditor.scrollbar[1] = guiCreateScrollBar(58, 532, 282, 20, true, false, GUIEditor.staticimage[1]) GUIEditor.label[2] = guiCreateLabel(84, 467, 220, 70, "آلــصـــوت", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.label[2], font1_seguisym) guiLabelSetColor(GUIEditor.label[2], 183, 0, 0) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.button[4] = guiCreateButton(10, 527, 34, 33, "X", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FEE90000") for i,V in ipairs(Shilat) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) local num = i guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, num..'- '..V[2], false, false) guiGridListSetItemData(GUIEditor.gridlist[1], row, 1, tostring(V[1])) local math = math.random local r,b,g = math(0,255),math(0,255),math(0,255) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, r,b,g ) end end ) addEventHandler("onClientGUIClick", root, function () if source == GUIEditor.button[4] then guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif source == GUIEditor.button[2] then local selSong = guiGridListGetItemData(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1])) if selSong then if isElement(music) then destroyElement(music) end music = playSound(tostring(selSong),true) end elseif source == GUIEditor.button[3] then if isElement(music) then destroyElement(music) end end end ) addEventHandler( "onClientGUIScroll", resourceRoot, function( ) if ( source == GUIEditor.scrollbar[1] or source == GUIEditor.scrollbar[2] ) then if ( isElement ( music ) ) then local ScrollPosition if source == GUIEditor.scrollbar[2] then ScrollPosition_ = ( guiScrollBarGetScrollPosition ( GUIEditor.scrollbar[2] ) / 2 ) / 30 setSoundSpeed ( music, ScrollPosition_ ) else ScrollPosition_ = ( guiScrollBarGetScrollPosition ( GUIEditor.scrollbar[1] ) / 2 ) / 30 setSoundVolume ( music, ScrollPosition_ ) end end end end ) addCommandHandler('شيلات',function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end )
  20. بدل الكلنت حقك بلكلنت حقي addCommandHandler('رتب',function() guiSetVisible( GUIEditor.window[1], true) showCursor(true) end ) local Admin = { {"ملك الدرفت","KingDrift","20"}, {"كبار الشخصيات","V.I.P","30"}, {"بوليس","Police","45"}, {"مشرف","Moderator","60"}, {"مراقب","SuperModerator","90"}, {"ادمن","Admin","130"}, {"هيد ادمن","Head.Admin","160"}, {"بيج ادمن","Big.Admin","200"}, {"كنق ادمن","King.Admin","260"}, {"بروفيشينال ادمن","Professional.Admin","300"}, {"قائد الادمن","Leader.Admin","350"}, {"فيب ادمن","V.I.P.Admin","400"}, {"برو ادمن","Pro.Admin","450"}, {"ادمن خاص","Special.Admin","500"}, {"برنس السيرفر","Prince.of.Server","550"}, {"ادمن السيرفر","Admin.Server","600"}, {"جينيرال ادمن","Admin.General","700"}, {"ادمن اوفيشال","Admin-Official","1000"}, {"ادمن محترفين","Admin-Mo7TrFean","1200"}, {"مساعد السيرفر","AsSiStAnT.SeRvEr","1350"} } function centerWindow(center_window,xx,yy) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/xx,(screenH-windowH)/yy guiSetPosition(center_window,x,y,false) end GUIEditor = { gridlist = {}, staticimage = {}, button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 414) / 2, (screenH - 361) / 2, 414, 361, "لــــــوحـــة شـــرآء آلرتــــــــب", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF32CBC6") GUIEditor.staticimage[1] = guiCreateStaticImage(9, 20, 395, 331, "logo.png", false, GUIEditor.window[1]) guiSetAlpha(GUIEditor.staticimage[1], 0.92) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF32CBC6 tr:FF32CBC6 bl:FF32CBC6 br:FF32CBC6") GUIEditor.gridlist[1] = guiCreateGridList(3, 24, 387, 257, false, GUIEditor.staticimage[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "الرتـب", 0.6) guiGridListAddColumn(GUIEditor.gridlist[1], "آلسآعآت", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.0) GUIEditor.button[1] = guiCreateButton(130, 291, 116, 33, "شــرآء آلرتـــبــه", false, GUIEditor.staticimage[1]) local font0_seguisym = guiCreateFont("seguisym.ttf", 10) guiSetFont(GUIEditor.button[1], font0_seguisym) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF32CBC6") GUIEditor.button[2] = guiCreateButton(365, 300, 30, 31, "X", false, GUIEditor.staticimage[1]) guiSetFont(GUIEditor.button[2], font0_seguisym) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF32CBC6") end ) addEventHandler("onClientGUIClick",GUIEditor.button[2], function() guiSetVisible(GUIEditor.window[1] ,false) showCursor(false) end ,false) for k,v in ipairs ( Admin ) do row = guiGridListAddRow(GUIEditor.gridlist[1]); guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[2],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[3],false,false); guiGridListSetItemText(GUIEditor.gridlist[1],row,6,v[1],false,false); guiGridListSetItemColor(GUIEditor.gridlist[1],row,3,0,0,0); guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,255,0,0); guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,255,0,0); guiSetFont(GUIEditor.gridlist[1],"default-bold-small"); end xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); local Name = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,6 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name); else outputChatBox("* الرجاء أختيار رتبة",255,0,0,true); end end
  21. طيب او اباها Hours اضرب في كم ؟
  22. و كيف استعمل msToMin مثلا مثال الويكي function timerDetails() remaining, executesRemaining, totalExecutes = getTimerDetails(theTimer) -- Get the timers details if (remaining and executesRemaining and totalExecutes) then outputChatBox("Time remaining this second: "..remaining.." Executes remaining: "..executesRemaining.." Total executes: "..totalExecutes) else outputChatBox("Timer no longer exists") end end كيف استعمل الكود عليه
×
×
  • Create New...