taha201100 Posted June 8, 2016 Share Posted June 8, 2016 السلام عليكم افطار هنيئا عبيتوا كروشكم زين؟؟ ههههههههههه لا بأس انا ما افهم بالجريد ليست ابدا ابدا سويت قريد ليست يجيب لاعبين السيرفر ابي لما احدد الاعب مثلن يعطيه سياره ممكن مثال؟ +مثال يعطيه دم ابي اتعلم منهم ويا ريت شرح لكل سطر شرح واضح وكمان لما يضغط على اسمه يجيب بياناته في الليبل بروح التراويح وراجع برووب Link to comment
Me[Z]oO Posted June 8, 2016 Share Posted June 8, 2016 addEventHandler("onClientGUIClick", root, function() local this = guiGridListGetItemText(GridName, guiGridListGetSelectedItem(GridName), 1) if source == button then setElementHealth(this,100) end end) Link to comment
iMr.WiFi..! Posted June 8, 2016 Share Posted June 8, 2016 ^ × ماجبت اللاعب addEventHandler("onClientGUIClick", root, function() local this = guiGridListGetItemText(GridName, guiGridListGetSelectedItem(GridName), 1) local thiss = getPlayerFromName(this) if source == button then setElementHealth(thiss,100) end end) Link to comment
Mr.CoR Posted June 8, 2016 Share Posted June 8, 2016 ^× ماجبت اللاعب addEventHandler("onClientGUIClick", root, function() local this = guiGridListGetItemText(GridName, guiGridListGetSelectedItem(GridName), 1) local thiss = getPlayerFromName(this) if source == button then setElementHealth(thiss,100) end end) اللاعب جابه لان راعي الموضوع قايل لك انه حاط جميع اللاعبين داخل قريد ليست صح ولا مب غلط خخ Link to comment
iMr.WiFi..! Posted June 8, 2016 Share Posted June 8, 2016 اكيد بيجيب اسم لاعبين فقط ! Link to comment
taha201100 Posted June 8, 2016 Author Share Posted June 8, 2016 لا ما جبته ممكن فنكشن جاهز مع اكواد اللوحة اجربه واتعلم منه الجريد ليست ومشكورين مقدما مع انه ما احب الجاهز بس بتعلم منه الجريد ليست شوية ويا ريت تشرحون كل سطر من الجريد ليست وش يسوي Link to comment
Mr.CoR Posted June 8, 2016 Share Posted June 8, 2016 وظيفة تغيير قيَم القريد لست إلى أسماء اللاعبين .. 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; -- end of ' function ' مثآل : wnd = guiCreateWindow ( 100, 100, 400, 400, "Test", false ); -- Create Window grid = guiCreateGridList ( 25, 30, 350, 350, false, wnd ); -- Create Gridlist col = guiGridListAddColumn ( grid, "Players", 0.9 ); -- Create Column changeGridListItemToPlayersName ( grid, col ); -- Set Gridlist Values يوزفل فانكشن ^ Link to comment
taha201100 Posted June 8, 2016 Author Share Posted June 8, 2016 وظيفة تغيير قيَم القريد لست إلى أسماء اللاعبين .. 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; -- end of ' function ' مثآل : wnd = guiCreateWindow ( 100, 100, 400, 400, "Test", false ); -- Create Window grid = guiCreateGridList ( 25, 30, 350, 350, false, wnd ); -- Create Gridlist col = guiGridListAddColumn ( grid, "Players", 0.9 ); -- Create Column changeGridListItemToPlayersName ( grid, col ); -- Set Gridlist Values يوزفل فانكشن ^ صراحه اشوف شرحك نوب في الانتظار بعد Link to comment
iMr.WiFi..! Posted June 8, 2016 Share Posted June 8, 2016 يخي يوزفل فنكشن تحط الفنكشن ثم متطلبات او الارقمنات Link to comment
taha201100 Posted June 8, 2016 Author Share Posted June 8, 2016 وش اعدل باليوزفل بالضبط Link to comment
Mr.CoR Posted June 8, 2016 Share Posted June 8, 2016 هذا الكود الي تحت يسمى ب السورس كود او بالعربي الكود المصدر ، او تعريف ف تاخذه على ماهو وماتعدل عليه تنسخه وتلصقه في ملف كلاينت ، لكن خليه اول شي ، يعني فقوق قبل اللوحات وكل شي 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; -- end of ' function ' ثاني شي تحط ذا الكود عند فانكشن فتح اللوحه changeGridListItemToPlayersName ( GridListName , Column); Link to comment
taha201100 Posted June 8, 2016 Author Share Posted June 8, 2016 تبي الصراحه مب فاهم شي لو تسوي مثال بلوحة يكون افضل لانه ما قد جربت القريد ليست Link to comment
Mr.CoR Posted June 8, 2016 Share Posted June 8, 2016 عطني اكوادك الي سويتها وبعدل لك لاني شابك من جوال Link to comment
taha201100 Posted June 8, 2016 Author Share Posted June 8, 2016 addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(18, 15, 573, 535, ",", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 40, 553, 485, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Tab", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(10, 45, 146, 405, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Player Name", 0.9) GUIEditor.button[1] = guiCreateButton(400, 203, 143, 19, "Set Health", false, GUIEditor.tab[1]) end) Link to comment
iMr.WiFi..! Posted June 8, 2016 Share Posted June 8, 2016 قال اكواد ما قال النافذة ,! ليه ماتجرب تحاول ؟ Link to comment
Mr.CoR Posted June 8, 2016 Share Posted June 8, 2016 changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; end; end; end; end; addEventHandler("onClientResourceStart", resourceRoot, function() Wind = guiCreateWindow(18, 15, 573, 535, ",", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( Wind , false ) TapPanel = guiCreateTabPanel(10, 40, 553, 485, false, Wind ) Tap = guiCreateTab("Tab", TapPanel) Grid = guiCreateGridList(10, 45, 146, 405, false, Tap) Column = guiGridListAddColumn(Grid ,"Player Name", 0.9) button = guiCreateButton(400, 203, 143, 19, "Set Health", false, Tap) end) function taha () guiSetVisible ( Wind , true ) showCursor ( true ) changeGridListItemToPlayersName ( Grid , Column ) end addCommandHandler ( "open", taha ) جرب الكود ملاحظة اكتب في اف ٨ open على شان تفتح لك اللوحه ملاحظة ثانيه اذا كان عندك جدول ومحطوط فيه قيم القريد ليست يعني كذا local GUI = { {GUICreateWindow}, {GUICreateTapPanel}, {GUICreateButton}, {GUICreateTap} } احذفه لاني حطيت لك قيم للعناصر اللوحه اذا ماحذفتهم مابيشتغل السكربت Link to comment
taha201100 Posted June 8, 2016 Author Share Posted June 8, 2016 انت مو ضايف انه يعطي دم Link to comment
Mr.CoR Posted June 8, 2016 Share Posted June 8, 2016 انت طلبت كيف تحط اسامي اللاعبين في القريد ليست ماطلبت مني اسويلك زر إعطاء دم !! العموم هذا الكود كامل ، ووضح طلباتك في المرات القادمة changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; end; end; end; end; addEventHandler("onClientResourceStart", resourceRoot, function() Wind = guiCreateWindow(18, 15, 573, 535, ",", false) guiWindowSetSizable(Wind, false) guiSetVisible ( Wind , false ) TapPanel = guiCreateTabPanel(10, 40, 553, 485, false, Wind ) Tap = guiCreateTab("Tab", TapPanel) Grid = guiCreateGridList(10, 45, 146, 405, false, Tap) Column = guiGridListAddColumn(Grid ,"Player Name", 0.9) button = guiCreateButton(400, 203, 143, 19, "Set Health", false, Tap) end) function taha () guiSetVisible ( Wind , true ) showCursor ( true ) changeGridListItemToPlayersName ( Grid , Column ) end addCommandHandler ( "open", taha) addEventHandler("onClientGUIClick", root, function () local this = guiGridListGetItemText(GridName, guiGridListGetSelectedItem(GridName), 1) local thiss = getPlayerFromName(this) if source == button then setElementHealth(thiss,100) outputChatBox ( "#00FFFFx[تم إعطائك دم ]x",255,255,255,true) end end ) جرب الكود ملاحظة : كود إعطاء الدم حقوقه ترجع ل واي فاي # Link to comment
taha201100 Posted June 8, 2016 Author Share Posted June 8, 2016 تجيني الرساله بالشات لكن ما يعطي دم ودمي 20 بالمئه Link to comment
Mr.CoR Posted June 8, 2016 Share Posted June 8, 2016 changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); end; end; end; end; end; addEventHandler("onClientResourceStart", resourceRoot, function() Wind = guiCreateWindow(18, 15, 573, 535, ",", false) guiWindowSetSizable(Wind, false) guiSetVisible ( Wind , false ) TapPanel = guiCreateTabPanel(10, 40, 553, 485, false, Wind ) Tap = guiCreateTab("Tab", TapPanel) Grid = guiCreateGridList(10, 45, 146, 405, false, Tap) Column = guiGridListAddColumn(Grid ,"Player Name", 0.9) button = guiCreateButton(400, 203, 143, 19, "Set Health", false, Tap) end) function taha () guiSetVisible ( Wind , true ) showCursor ( true ) changeGridListItemToPlayersName ( Grid , Column ) end addCommandHandler ( "open", taha) addEventHandler("onClientGUIClick", root, function () local this = guiGridListGetItemText(Grid, guiGridListGetSelectedItem(Grid), 1) local thiss = getPlayerFromName(this) if source == button then setElementHealth(thiss,100) outputChatBox ( "#00FFFFx[تم إعطائك دم ]x",255,255,255,true) end end ) نسينا نغيير المتغيرات خخخ 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