Jump to content

فاّرس

Members
  • Posts

    4,805
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by فاّرس

  1. GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} wnd = guiCreateWindow(0,0,800,599,"~@ قوانين السيرفر @~",false) guiSetAlpha(wnd,1) GUIEditor_TabPanel[1] = guiCreateTabPanel(791,590,0,1,false,wnd) GUIEditor_Tab[1] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_TabPanel[2] = guiCreateTabPanel(9,24,782,567,false,wnd) GUIEditor_Tab[2] = guiCreateTab("~@ قوانين السيرفر @~",GUIEditor_TabPanel[2]) GUIEditor_Button[1] = guiCreateButton(15,3,753,54,"السب والشتم = ميوت5 دقائق",false,GUIEditor_Tab[2]) GUIEditor_Button[2] = guiCreateButton(15,63,753,54,"النشر + التكرار = ميوت 10 دقائق",false,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(15,123,753,54,"طلبات الأدمنية = ميوت 15 دقيقة",false,GUIEditor_Tab[2]) GUIEditor_Button[4] = guiCreateButton(15,183,753,54,"القتل خارج الساحة = سلاب + فريز(تجميد)",false,GUIEditor_Tab[2]) GUIEditor_Button[5] = guiCreateButton(15,244,753,54,"القتل في البداية + اخراج سيارة في البداية = كيك",false,GUIEditor_Tab[2]) GUIEditor_Button[6] = guiCreateButton(15,305,753,54,"الدبابة + البازوكا + الخلاط = باند 100 سنة",false,GUIEditor_Tab[2]) GUIEditor_Button[7] = guiCreateButton(15,366,753,54,"عكس شارع الدائري = سلاب = سحب السيارة",false,GUIEditor_Tab[2]) GUIEditor_Label[1] = guiCreateLabel(302,455,183,17,"~@ مع تحيات : صاحب السيرفر @~",false,GUIEditor_Tab[2]) GUIEditor_Button[8] = guiCreateButton(15,482,753,54,"~@ إغـلاق @~",false,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("~@ قوانين الأدمنية @~",GUIEditor_TabPanel[2]) GUIEditor_Button[9] = guiCreateButton(15,482,753,54,"~@ إغـلاق @~",false,GUIEditor_Tab[3]) GUIEditor_Button[10] = guiCreateButton(15,3,753,54,"التكبر على الزوار = تنزيل الرتبة",false,GUIEditor_Tab[3]) GUIEditor_Label[2] = guiCreateLabel(302,455,183,18,"~@ مع تحيات : صاحب السيرفر @~",false,GUIEditor_Tab[3]) GUIEditor_Button[11] = guiCreateButton(15,63,753,54,"إستخدام لوحة الأدمنية بدون سبب = تنزيل الرتبة",false,GUIEditor_Tab[3]) GUIEditor_Button[12] = guiCreateButton(15,123,753,54,"طلبات الترقية = تنزيل الرتبة",false,GUIEditor_Tab[3]) GUIEditor_Button[13] = guiCreateButton(15,183,753,54,"التخريب عن طريق لوحة الأدمنية = سحب الرتبة",false,GUIEditor_Tab[3]) GUIEditor_Button[14] = guiCreateButton(15,244,753,54,"إستخدام لوحة الأدمنية لأمور خاصة = سحب الرتبة",false,GUIEditor_Tab[3]) GUIEditor_Tab[4] = guiCreateTab("~@ شروط الحصول على أدمنية @~",GUIEditor_TabPanel[2]) GUIEditor_Button[15] = guiCreateButton(15,3,753,54,"للحصول على مشرف = نشر + تواجد 50 ساعة",false,GUIEditor_Tab[4]) GUIEditor_Button[16] = guiCreateButton(15,63,753,54,"للحصول على مراقب = نشر + تواجد 50 ساعة",false,GUIEditor_Tab[4]) GUIEditor_Button[17] = guiCreateButton(15,123,753,54,"للحصول على إدارة = نشر + تواجد يوميا",false,GUIEditor_Tab[4]) GUIEditor_Button[18] = guiCreateButton(15,123,753,54,"للحصول على إدارة = نشر + تواجد يوميا",false,GUIEditor_Tab[4]) GUIEditor_Button[19] = guiCreateButton(15,183,753,54,"وستستمر الترقية على شرط التواجد + عدم طلب الترقية + نشر",false,GUIEditor_Tab[4]) GUIEditor_Label[3] = guiCreateLabel(66,-11,5,5,"",false,GUIEditor_Tab[4]) GUIEditor_Label[4] = guiCreateLabel(302,455,184,18,"~@ مع تحيات : صاحب السيرفر @~",false,GUIEditor_Tab[4]) GUIEditor_Button[20] = guiCreateButton(15,482,753,54,"~@ إغـلاق @~",false,GUIEditor_Tab[4]) GUIEditor_Tab[5] = guiCreateTab("~@ مع تحيات @~",GUIEditor_TabPanel[2]) GUIEditor_Label[5] = guiCreateLabel(255,68,326,39,"~@ حـيـاكـم الله في سيرفر حكايم للهجوله عنوان @~",false,GUIEditor_Tab[5]) GUIEditor_Label[6] = guiCreateLabel(308,126,326,43,"~@ الرجاء الإلتزام بالقوانين @~",false,GUIEditor_Tab[5]) GUIEditor_Label[7] = guiCreateLabel(300,179,238,45,"~@ مع تحيات صاحب السيرفر @~",false,GUIEditor_Tab[5]) GUIEditor_Label[8] = guiCreateLabel(273,229,230,58,"~@ تنمنى لكم قضاء وقت ممتع في السيرفر @~",false,GUIEditor_Tab[5]) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Button[8] or source == GUIEditor_Button[9] or source == GUIEditor_Button[20] then guiSetVisible(wnd,false) showCursor(false) end end ) bindKey('F12','down', function() guiSetVisible(wnd,not guiGetVisible(wnd)) showCursor(guiGetVisible(wnd)) end )
  2. اي انتهبت لها لو تلاحظ بالكود الي فوقه حذقتها ذذ
  3. بالنسبه قبل يضغط الزر راح تحتاج , onClientGUIClick للجريد ليست ذذ guiGridListGetSelectedItem guiGridListGetItemText guiGridListGetSelectedItem بالنسبه للكود , جرب كذا, Skins = { { ID }, { ID }, { ID } } GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(501,189,343,419,"DiverMan",false) GUIEditor_Label[1] = guiCreateLabel(9,22,317,128,"In this job younksnsjdnvksdnkdsjv",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(18,359,127,49,"Have Job",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(149,369,55,36,"OR",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(191,359,127,49,"Exit",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(19,249,305,104,false,GUIEditor_Window[1]) guiGridListSetSelectionMode( GUIEditor_Grid[1], 2 ) local Column = guiGridListAddColumn( GUIEditor_Grid[1], 'Skins', 0.2 ) for k,v in ipairs( Skins ) do local Row = guiGridListAddRow( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1],Row,Column, v[1], false, false ) guiGridListSetItemData( GUIEditor_Grid[1],Row,Column, v[2]) end addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Button[1] then if guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) ~= -1 then local Set = guiGridListGetItemText ( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) if ( Set ) then setElementModel( localPlayer, Set ) triggerServerEvent('onHave',localPlayer) elseif source == GUIEditor_Button[1] then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end end end ) بالنسبه لـ ID لازم تغيره , مثال , Skins = { { 1 }, { 2 }, { 0 } }
  4. غير الجدول خليه كذا بس , Skins = { { ID }, { ID }, { ID } } ID = اي دي الشخصيه ذذ
  5. لا تروح, اذا تبيها ما تروح استخدم , executeSQLQuery
  6. شوف موضوعي هذا شرحت في عده اشياء للححفظ, viewtopic.php?f=164&t=62247
  7. متأكد انا جربته وشغال ذذ, + اطرح الكنلت كامل والسيرفر كامل ,
  8. لم يتم التجربه , Skins = { { 'Name', ID }, { 'Name', ID }, { 'Name', ID } } GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(501,189,343,419,"DiverMan",false) GUIEditor_Label[1] = guiCreateLabel(9,22,317,128,"In this job younksnsjdnvksdnkdsjv",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(18,359,127,49,"Have Job",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(149,369,55,36,"OR",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(191,359,127,49,"Exit",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(19,249,305,104,false,GUIEditor_Window[1]) guiGridListSetSelectionMode( GUIEditor_Grid[1], 2 ) local Column = guiGridListAddColumn( GUIEditor_Grid[1], 'Skins', 0.2 ) guiSetVisible ( GUIEditor_Window[1], false ) for k,v in ipairs( Skins ) do local Row = guiGridListAddRow( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1],Row,Column, tostring(v[1]), false, false ) guiGridListSetItemData( GUIEditor_Grid[1],Row,Column, tostring(v[2])) end addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Button[1] then local r,c = guiGridListGetSelectedItem( GUIEditor_Grid[1] ) if r and c and r ~= '' and c ~= '' then local Set = tonumber( guiGridListGetItemData( GUIEditor_Grid[1], r, c ) ) setElementModel( localPlayer, Set ) triggerServerEvent('onHave',localPlayer) elseif source == GUIEditor_Button[1] then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end end ) addEvent( "onHit", true ) addEventHandler( "onHit",root, function () guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) end ) Name = اسم الشخصيه ذذ ID = اي دي الشخصيه,
  9. طيب تبيه اذا ضغط الزر تعطيه ولا كيف؟
  10. تبي تحط شخصيات محدده ولا كلها ؟
  11. غير scoreboard لأني جربته عندي شغال
  12. انا معطيك مثال وانت زودت عليه ذذ GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(273, 203, 232, 263, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 26, 213, 199, false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(75, 232, 74, 21, "أختيــار", false,GUIEditor.window[1]) local Column = guiGridListAddColumn(GUIEditor.gridlist[1], "الأسماء", 0.9) local Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], Row, Column, 'عمر', false, false ) addEventHandler('onClientGUIClick',Button, function() if guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 then local Get = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) if ( Get ) then triggerServerEvent("ShowInScoreBoard",localPlayer,Get) end end end,false )
  13. GUIEditor = { gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(273, 203, 232, 263, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 26, 213, 199, false, GUIEditor.window[1]) Grid = guiCreateGridList(GUIEditor.gridlist[1]) Button = guiCreateButton(170, 26, 74, 21, "أختيــار", false,GUIEditor.window[1]) local Column = guiGridListAddColumn(Grid, "الأسماء", 0.9) local Row = guiGridListAddRow ( Grid ) guiGridListSetItemText ( Grid, Row, Column, 'عمر', false, false ) addEventHandler('onClientGUIClick',Button, function() if guiGridListGetSelectedItem ( Grid ) ~= -1 then local Get = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 1 ) if ( Get ) then triggerServerEvent("ShowInScoreBoard",localPlayer,Get) end end end,false ) ما يحتاج حدث + ناقص قوس واند للفنكشن ذذ
  14. ما تلاحظ انك تسوي خرابيط ؟ + كودي اظن شغال ذذ
  15. اظن في شيء اسمه خاص
  16. ابو شنب , جبت العيد بالبرمجه , بالنسبه لـ ابو فيصل , هذا مثال على اسم عمر , -- Client Side # Grid = guiCreateGridList(...) Button = guiCreateButton(170, 26, 74, 21, "أختيــار", false) local Column = guiGridListAddColumn(Grid, "الأسماء", 0.9) local Row = guiGridListAddRow ( Grid ) guiGridListSetItemText ( Grid, Row, Column, 'عمر', false, false ) addEventHandler('onClientGUIClick',Button, function() if guiGridListGetSelectedItem ( Grid ) ~= -1 then local Get = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 1 ) if ( Get ) then triggerServerEvent("ShowInScoreBoard",localPlayer,Get) end end end,false ) -- Server Side # exports.scoreboard:addScoreboardColumn('My Name') addEvent('ShowInScoreBoard',true) addEventHandler('ShowInScoreBoard',root, function( Get ) if ( Get ) then setElementData(client,'My Name',tostring(Get)) end end ) بالنسبه للأسماء سويها جدول تسهل عليك ذذ
  17. حاول الي تقدر عليه ذذ
  18. لا يحتاج لأن بيكون في 2 ارقومنت ناقصه , وراح يطلع خطأ بالديبوق ذذ
  19. يعني مثلا كذا, TheBest عمر ؟
  20. ولا كأني دريت ====== آصلآ عادي
  21. + guiSetText + triggerClientEvent
  22. Vehicle = { [1] = { 411, 3407.04663,-1669.24365,1.16875 }, [2] = { 411, x,y,z }, [3] = { 411, x,y,z } } local x,y,z = unpack(Vehicle [math.random(#Vehicle )]) createVehicle ( player, x,y,z ) لازم تكون مع الوظيفه ذذ + تأكد player ان معرف ذذ
×
×
  • Create New...