^iiEcoo'x_) Posted November 13, 2016 Share Posted November 13, 2016 السلام عليكم ابي اذا احدد من قريد ليست يتفعل كوماند مثلا اذا حدد الرو الاول يفعله كوماند اذا حدد الرو الثاني يتفعل له كوماند Link to comment
Master_MTA Posted November 13, 2016 Share Posted November 13, 2016 (edited) اخوي تفضل wnd5 = guiCreateGridList(27, 39, 346, 247, false, mainwndmaster) guiGridListSetSelectionMode(wnd5,2) local column = guiGridListAddColumn(wnd5,"Jail Time", 0.9) row1 = guiGridListAddRow(wnd5) row2 = guiGridListAddRow(wnd5) row3 = guiGridListAddRow(wnd5) row4 = guiGridListAddRow(wnd5) row5 = guiGridListAddRow(wnd5) row6 = guiGridListAddRow(wnd5) row7 = guiGridListAddRow(wnd5) row8 = guiGridListAddRow(wnd5) row9 = guiGridListAddRow(wnd5) row10 = guiGridListAddRow(wnd5) guiGridListSetItemText(wnd5,row1,column,"1 min", false, false) guiGridListSetItemColor ( wnd5, row1, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row2,column,"2 min", false, false) guiGridListSetItemColor ( wnd5, row2, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row3,column,"3 min", false, false) guiGridListSetItemColor ( wnd5, row3, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row4,column,"4 min", false, false) guiGridListSetItemColor ( wnd5, row4, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row5,column,"10 min", false, false) guiGridListSetItemColor ( wnd5, row5, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row6,column,"1 hour", false, false) guiGridListSetItemColor ( wnd5, row6, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row7,column,"2 hour", false, false) guiGridListSetItemColor ( wnd5, row7, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row8,column,"5 hour", false, false) guiGridListSetItemColor ( wnd5, row8, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row9,column,"1 day", false, false) guiGridListSetItemColor ( wnd5, row9, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row10,column,"2 days", false, false) guiGridListSetItemColor ( wnd5, row10, column, 0, 0, 255 ) function onClickza() if source == wnd8 then -- jail jail = guiGridListGetItemText ( wnd5, guiGridListGetSelectedItem ( wnd5 ), 1 ) if jail then triggerServerEvent ("jail", getLocalPlayer(), jail) end addEventHandler("onClientGUIClick",root,onClickza) هذا كان كلنت سايد اما الحين نشوف السيرفر سايد addEvent("jail",true) -- Jail addEventHandler("jail",root, function(text) if text == "1 min" then elseif text == "2 min" then end end ) هذا بالنسبه لكيف تحدد شي من جريد ليست وترسله لسيرفر اما الكومند الصراحه ما اعرف وما ابي افتي ليك ويطلع غلط Edited November 13, 2016 by Master_MTA Link to comment
iMr ~ MnHmAr Posted November 13, 2016 Share Posted November 13, 2016 Quote onClientGUIDoubleClick Link to comment
Master_MTA Posted November 13, 2016 Share Posted November 13, 2016 30 minutes ago, iMr ~ MnHmAr said: Quote onClientGUIDoubleClick ? هو يبي كوماند يعني يكتب باف 8 كلمه تسوي له فنكشن مو لما يظغط مرتين على الاتيم Link to comment
#STZ Posted November 13, 2016 Share Posted November 13, 2016 يبي اذا اختيار شي من الجريد ليست يفعل كوماند guiGridListSetItemText executeCommandHandler Link to comment
Master_MTA Posted November 13, 2016 Share Posted November 13, 2016 (edited) 4 minutes ago, MR.NaiF-MTA said: يبي اذا اختيار شي من الجريد ليست يفعل كوماند مو فاهم يعني لو اختار شي من الجريد لست زي ما قلت انا بس بيصيير كذا؟ addEvent("jail",true) -- Jail addEventHandler("jail",root, function(text) if text == "1 min" then addCommandHandler("hgsdfjl",functionhfs) elseif text == "2 min" then end end كذا مثلا ولا يبيه كلنت سايد Edited November 13, 2016 by Master_MTA Link to comment
#STZ Posted November 13, 2016 Share Posted November 13, 2016 ما هو معرف text الفانكشن اسمه ما يكون داخل القوس function(text) غلط هذا Link to comment
Master_MTA Posted November 13, 2016 Share Posted November 13, 2016 الا حبيبي شف باول رد لي jail = guiGridListGetItemText ( wnd5, guiGridListGetSelectedItem ( wnd5 ), 1 ) ذا تراقر للسيرفر انا اللي ابغى اعرفه هل يبي سيرفر سايد او كلنت سايد 1 minute ago, MR.NaiF-MTA said: ما هو معرف text Link to comment
#STZ Posted November 13, 2016 Share Posted November 13, 2016 يكون كدا function text ( ) ابي اعرف من وين جبت text Link to comment
Master_MTA Posted November 13, 2016 Share Posted November 13, 2016 8 minutes ago, MR.NaiF-MTA said: يكون كدا function text ( ) ابي اعرف من وين جبت text يا غالي شف الكود كامل وبتفهم ولا ما تعرف ترسل تراقر؟ Link to comment
#STZ Posted November 13, 2016 Share Posted November 13, 2016 يا حبيبي text مب معرف يعني ايش Link to comment
Master_MTA Posted November 13, 2016 Share Posted November 13, 2016 7 minutes ago, MR.NaiF-MTA said: يا حبيبي text مب معرف يعني ايش textهو هو نفسه jail بس بعد ما ارسلته للسيرفر غيرت اسمه اتمنى تكون وصلت المعلومه تراني قاعد افيدك واستفيد منك مو اتهاوش هدي اعصابك مهي مستاهله Link to comment
^iiEcoo'x_) Posted November 14, 2016 Author Share Posted November 14, 2016 18 hours ago, Master_MTA said: اخوي تفضل wnd5 = guiCreateGridList(27, 39, 346, 247, false, mainwndmaster) guiGridListSetSelectionMode(wnd5,2) local column = guiGridListAddColumn(wnd5,"Jail Time", 0.9) row1 = guiGridListAddRow(wnd5) row2 = guiGridListAddRow(wnd5) row3 = guiGridListAddRow(wnd5) row4 = guiGridListAddRow(wnd5) row5 = guiGridListAddRow(wnd5) row6 = guiGridListAddRow(wnd5) row7 = guiGridListAddRow(wnd5) row8 = guiGridListAddRow(wnd5) row9 = guiGridListAddRow(wnd5) row10 = guiGridListAddRow(wnd5) guiGridListSetItemText(wnd5,row1,column,"1 min", false, false) guiGridListSetItemColor ( wnd5, row1, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row2,column,"2 min", false, false) guiGridListSetItemColor ( wnd5, row2, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row3,column,"3 min", false, false) guiGridListSetItemColor ( wnd5, row3, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row4,column,"4 min", false, false) guiGridListSetItemColor ( wnd5, row4, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row5,column,"10 min", false, false) guiGridListSetItemColor ( wnd5, row5, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row6,column,"1 hour", false, false) guiGridListSetItemColor ( wnd5, row6, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row7,column,"2 hour", false, false) guiGridListSetItemColor ( wnd5, row7, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row8,column,"5 hour", false, false) guiGridListSetItemColor ( wnd5, row8, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row9,column,"1 day", false, false) guiGridListSetItemColor ( wnd5, row9, column, 0, 0, 255 ) guiGridListSetItemText(wnd5,row10,column,"2 days", false, false) guiGridListSetItemColor ( wnd5, row10, column, 0, 0, 255 ) function onClickza() if source == wnd8 then -- jail jail = guiGridListGetItemText ( wnd5, guiGridListGetSelectedItem ( wnd5 ), 1 ) if jail then triggerServerEvent ("jail", getLocalPlayer(), jail) end addEventHandler("onClientGUIClick",root,onClickza) هذا كان كلنت سايد اما الحين نشوف السيرفر سايد addEvent("jail",true) -- JailaddEventHandler("jail",root,function(text)if text == "1 min" then elseif text == "2 min" then endend ) هذا بالنسبه لكيف تحدد شي من جريد ليست وترسله لسيرفر اما الكومند الصراحه ما اعرف وما ابي افتي ليك ويطلع غلط شكرا لكك Link to comment
Master_MTA Posted November 14, 2016 Share Posted November 14, 2016 51 minutes ago, [6ArH]#~Ecoo~ said: شكرا لكك العفو يا غالي Link to comment
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