#|_oskar_|# Posted April 3, 2016 Posted April 3, 2016 كيف الكود كله كلنت ؟ ووين الحفظ يوم اللاعب يطلع من السيرفر ويدخل يرجع السجن ثاني ؟ لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
Sylence Posted April 3, 2016 Posted April 3, 2016 شالخطا دا؟ -- ضيف ذذ لوب JP = { {"1",'minutes',60000}, {"2",'mintes',120000}, {"3",'mintes',180000}, {"5",'mintes',3000000}, {"10",'mintes',600000}, {"15",'mintes',900000}, {"20",'mintes',1200000}, {"30",'mintes',1800000}, {"40",'mintes',2400000}, {"1",'hours',3600000}, {"2",'hours',7200000}, {"3",'hours',10800000}, {"4",'hours',14400000}, {"5",'hours',18000000}, {"24",'hours',86400000} } changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(124, 137, 550, 364, ":: Jail Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetVisible (wnd, false) grid2 = guiCreateGridList(10, 24, 258, 253, false, wnd) guiGridListAddColumn(grid2, "Name", 0.9) grid = guiCreateGridList(273, 24, 258, 253, false, wnd) guiGridListAddColumn(grid, "ID", 0.5) guiGridListAddColumn(grid, "Time", 0.5) GUIEditor.button[1] = guiCreateButton(10, 287, 150, 36, "UnJail", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(192, 287, 150, 36, "UnJail", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(364, 287, 150, 36, "Close", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(354, 337, 222, 17, "#Created By [L]e3bA | v3.4.1", false, wnd) guiLabelSetColor(GUIEditor.label[1], 229, 0, 0) end ) guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("m", "down", OpenWin) for _, v in ipairs (JP) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) guiGridListSetItemData(grid, Row,1, v[3], false, false) end addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local sel = guiGridListGetSelectedItem(grid) local sel2 = guiGridListGetSelectedItem(grid2) local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end)
#|_oskar_|# Posted April 3, 2016 Posted April 3, 2016 شالخطا دا؟ -- ضيف ذذ لوب JP = { {"1",'minutes',60000}, {"2",'mintes',120000}, {"3",'mintes',180000}, {"5",'mintes',3000000}, {"10",'mintes',600000}, {"15",'mintes',900000}, {"20",'mintes',1200000}, {"30",'mintes',1800000}, {"40",'mintes',2400000}, {"1",'hours',3600000}, {"2",'hours',7200000}, {"3",'hours',10800000}, {"4",'hours',14400000}, {"5",'hours',18000000}, {"24",'hours',86400000} } changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; GUIEditor = { button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(124, 137, 550, 364, ":: Jail Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetVisible (wnd, false) grid2 = guiCreateGridList(10, 24, 258, 253, false, wnd) guiGridListAddColumn(grid2, "Name", 0.9) grid = guiCreateGridList(273, 24, 258, 253, false, wnd) guiGridListAddColumn(grid, "ID", 0.5) guiGridListAddColumn(grid, "Time", 0.5) GUIEditor.button[1] = guiCreateButton(10, 287, 150, 36, "UnJail", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(192, 287, 150, 36, "UnJail", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(364, 287, 150, 36, "Close", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(354, 337, 222, 17, "#Created By [L]e3bA | v3.4.1", false, wnd) guiLabelSetColor(GUIEditor.label[1], 229, 0, 0) end ) guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("m", "down", OpenWin) for _, v in ipairs (JP) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) guiGridListSetItemData(grid, Row,1, v[3], false, false) end addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local sel = guiGridListGetSelectedItem(grid) local sel2 = guiGridListGetSelectedItem(grid2) local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end) الكود كله غلط لا اله الا انت سبحانك اني كنت من الظالمين My Group : https://www.facebook.com/groups/992678147519191/
Maksoud Posted April 3, 2016 Posted April 3, 2016 شباب انا بدى نفس المساعدة هل من الممكن انى اتابع هنا ولا لازم اسوى موضوع جديد ؟ #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
iMr.WiFi..! Posted April 3, 2016 Posted April 3, 2016 وش تبي ,؟ ^^ نحن هنا نساعدك Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
Maksoud Posted April 3, 2016 Posted April 3, 2016 اوك انا تابعتكم و وصلت لحد ما اوسكار قال ان الكود كله خطأ ممكن توضيح الخطأ فى الكود ؟ #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
iMr.WiFi..! Posted April 3, 2016 Posted April 3, 2016 grid2 = guiCreateGridList(10, 24, 258, 253, false, wnd) col = guiGridListAddColumn(grid2, "Name", 0.9) -- هنا المفروض يضيف ذذ الفنكشن changeGridListItemToPlayersName (grid2,col) -- المفروض يحفظ الداتا لو خرج -- يعني مثلا اللاعب طلع من سيرفر لازم نحفظ انه من الجيل .. وبسس اتوقع ذي هي الاخطاء Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
Me[Z]oO Posted April 3, 2016 Posted April 3, 2016 وين اليوسفل فنكشن؟ Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
Maksoud Posted April 3, 2016 Posted April 3, 2016 طيب انا ضايفه من الاول بس اصلا الزر مب شغال + لو سمحت عايز لما يسجن يقول : "اسم اللاعب الاتسجن " has been jailed by "اسم اللاعب السجن" #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
iMr.WiFi..! Posted April 3, 2016 Posted April 3, 2016 outputChatBox(getPlayerName(source).." Your text here "..getPlayerName(player),root,255,0,0) Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
Maksoud Posted April 3, 2016 Posted April 3, 2016 Server Side ? #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
iMr.WiFi..! Posted April 3, 2016 Posted April 3, 2016 اذا سيرفر سايد الكل بيشوفه اذا كلنت انت الي بتشوفه مع الي صكيته Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
Maksoud Posted April 3, 2016 Posted April 3, 2016 ابى الكود حق الزر الزر مب شغال اصلا بدى اشغله الاول يخليه يسجن و بعدين نشوف موضوع الشات ذه #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
iMr.WiFi..! Posted April 3, 2016 Posted April 3, 2016 شوف الموضوع كله بتعرف كل حاجة ة شيء مافهمته حنا نساعدك Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
Maksoud Posted April 3, 2016 Posted April 3, 2016 addEventHandler("onClientGUIClick", Jail, function ( ) local sel = guiGridListGetSelectedItem(TimeGrid) local sel2 = guiGridListGetSelectedItem(grid) local Jail = unpack(guiGridListGetItemData ( TimeGrid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end) وين الخطأ ؟ الزر لا يعمل #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
iMr.WiFi..! Posted April 3, 2016 Posted April 3, 2016 addEventHandler("onClientGUIClick", Jail, function ( ) local sel = guiGridListGetSelectedItem(TimeGrid) local sel2 = guiGridListGetSelectedItem(grid) local Jail = unpack(guiGridListGetItemData ( TimeGrid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end) وين الخطأ ؟ الزر لا يعمل انت مسمي الزر Jail ? addEventHandler("onClientGUIClick", Btn, function ( ) local sel = guiGridListGetSelectedItem(TimeGrid) local sel2 = guiGridListGetSelectedItem(grid) local Jail = unpack(guiGridListGetItemData ( TimeGrid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementsByType(player) == "player" then setTimer ( Jail , Mk ) end end) اوك سميه اي اسم ثاني مثل Btn Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
Maksoud Posted April 3, 2016 Posted April 3, 2016 لا يعمل #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
Maksoud Posted April 3, 2016 Posted April 3, 2016 مساعدة لو سمحتم ؟ #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
Maksoud Posted April 3, 2016 Posted April 3, 2016 انا غيرت كل شئ على اساس الكود ذه addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local sel = guiGridListGetSelectedItem(grid) local sel2 = guiGridListGetSelectedItem(grid2) local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end) و مازال لا يعمل ممكن تصليحه ؟ #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
Adham Posted April 3, 2016 Author Posted April 3, 2016 لازم تسوي 2 قريد ليست قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
Adham Posted April 3, 2016 Author Posted April 3, 2016 for _, v in ipairs (JP) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) guiGridListSetItemData(grid, Row,1, v[3], false, false) end تاني شي دا addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local sel = guiGridListGetSelectedItem(grid) local sel2 = guiGridListGetSelectedItem(grid2) local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end) لو ما ظبت اطرج اكوادك قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
Maksoud Posted April 3, 2016 Posted April 3, 2016 انا مسوي 2 قريد ليست واحد للاسماء وواحد للوقت #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
Adham Posted April 3, 2016 Author Posted April 3, 2016 اطرح اكوادك... قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
Maksoud Posted April 3, 2016 Posted April 3, 2016 for _, v in ipairs (JP) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) guiGridListSetItemData(grid, Row,1, v[3], false, false) end تاني شي دا addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local sel = guiGridListGetSelectedItem(grid) local sel2 = guiGridListGetSelectedItem(grid2) local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end) لو ما ظبت اطرج اكوادك اولا ! ذه for _, v in ipairs (JP) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) guiGridListSetItemData(grid, Row,1, v[3], false, false) end انا مسويه و ذه عشان يظهر التيبول ده بالقريد ليست JP = { {"1 Minute",60000}, {"2 Minutes",120000}, {"3 Minutes",180000}, {"5 Minutes",3000000}, {"10 Minutes",600000}, {"15 Minutes",900000}, {"20 Minutes",1200000}, {"30 Minutes",1800000}, {"40 Minutes",2400000}, {"1 Hour",3600000}, {"2 Hours",7200000}, {"3 Hours",10800000}, {"4 Hours",14400000}, {"5 hours",18000000}, {"24 Hours",86400000} } ثانياً انا مسوي الكود الثانى بظبط #Skype :mohamed.abdelmaksoud66 #WhatsApp : 01111231094 #Channel : https://www.youtube.com/channel/UCwb3GX2bhIA68JeCTPrBdWQ #[M.S] Server : Role Play Soon | حياة واقعية قريبا. #[M.S] Programmed By : mIDO #[M.N] Server : Hajwalh Soon | هجوله قريبا. #[M.N] Programmed By : mIDO يمكن افتتاح السيرفرين يكون فى الاجازة الكبيرة
Adham Posted April 3, 2016 Author Posted April 3, 2016 واخيراً ^^ -- ضيف ذذ لوب JP = { {"1",'minutes',60000}, {"2",'mintes',120000}, {"3",'mintes',180000}, {"5",'mintes',3000000}, {"10",'mintes',600000}, {"15",'mintes',900000}, {"20",'mintes',1200000}, {"30",'mintes',1800000}, {"40",'mintes',2400000}, {"1",'hours',3600000}, {"2",'hours',7200000}, {"3",'hours',10800000}, {"4",'hours',14400000}, {"5",'hours',18000000}, {"24",'hours',86400000} } changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; GUIEditor = { button = {} } wnd = guiCreateWindow(121, 135, 525, 333, "#", false) guiWindowSetSizable(wnd, false) grid = guiCreateGridList(12, 55, 227, 268, false, wnd) col1 = guiGridListAddColumn(grid, "ID", 0.5) col2 = guiGridListAddColumn(grid, "Time", 0.5) grid2 = guiCreateGridList(259, 55, 227, 268, false, wnd) col3 = guiGridListAddColumn(grid2, "Name", 0.9) changeGridListItemToPlayersName ( grid2, col3) GUIEditor.button[1] = guiCreateButton(116, 26, 238, 24, "Jail", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("m", "down", OpenWin) for _, v in ipairs (JP) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) guiGridListSetItemData(grid, Row,1, v[3], false, false) end addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) local sel = guiGridListGetSelectedItem(grid) local sel2 = guiGridListGetSelectedItem(grid2) local Jail = unpack(guiGridListGetItemData ( grid,sel,1 )) local Mk = setElementPosition ( 2122.21818, 53121, 10.5141 ) setElementPosition ( 2122.21338, 2243.54175, 10.67188 ) if sel ~= -1 and sel2 ~= -1 and getElementType(player) == "player" then setTimer ( Jail , Mk ) end end) اتمنى تكون انك فاهم كل شيء ^^ انشالله بتستفيد قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now