Adham Posted June 19, 2016 Share Posted June 19, 2016 (edited) سلام علي الكود ذا لما يحدد في الايديت يروح للقريد لست المشكله اني دخلت صحابي انا عملت جا في القريد لست لاكن صحابي لا قلولي اعمل ترقير وترقير كلنت م عرفت اسويه الكود addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[1]) then local item = guiComboBoxGetSelected ( GUIEditor.combobox[1] ) local text = guiComboBoxGetItemText ( GUIEditor.combobox[1] , item ) if ( guiGetText ( editname ) and guiGetText ( GUIEditor.edit[2] ) and guiGetText ( GUIEditor.edit[1] ) ~= '' ) then local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,guiGetText(editname),false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,guiGetText(GUIEditor.edit[1]),false,false) end end end ) Edited June 19, 2016 by Guest Link to comment
فاّرس Posted June 19, 2016 Share Posted June 19, 2016 لازم ترسل تريقر للسيرفر وفيه الايديت وثم ترجع تريقر للكلينت وتخليه روت ويجي للكل. Link to comment
Adham Posted June 19, 2016 Author Share Posted June 19, 2016 كدا كلنت addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[1]) then local item = guiComboBoxGetSelected ( GUIEditor.combobox[1] ) local text = guiComboBoxGetItemText ( GUIEditor.combobox[1] , item ) if ( guiGetText ( editname ) and guiGetText ( GUIEditor.edit[2] ) and guiGetText ( GUIEditor.edit[1] ) ~= '' ) then triggerServerEvent("addee",localPlayer,guiGetText(editname),text,guiGetText(GUIEditor.edit[1])) end end end ) addEvent( "add", true ) addEventHandler( "add",root, function () local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,guiGetText(editname),false,false) guiGridListSetItemText (gridlist,row,2,text,false,false) guiGridListSetItemText (gridlist,row,3,guiGetText(GUIEditor.edit[1]),false,false) end ) سرفر addEvent( "addee", true ) addEventHandler( "addee",root, function () for Key, Value in ipairs(getElementsByType("player")) do triggerClientEvent("add",source) end ) Link to comment
Me[Z]oO Posted June 19, 2016 Share Posted June 19, 2016 (edited) help guys ** Edited June 22, 2016 by Guest Link to comment
Adham Posted June 19, 2016 Author Share Posted June 19, 2016 (edited) -- Edited June 19, 2016 by Guest Link to comment
Me[Z]oO Posted June 19, 2016 Share Posted June 19, 2016 ميزو خلأصاسف -- + يغلق الموضوع + ميزو لا تزعل ! اعتذر ولا يهمك خلاص شيطان وراح رمضان كريم addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[1]) then local item = guiComboBoxGetSelected ( GUIEditor.combobox[1] ) local text = guiComboBoxGetItemText ( GUIEditor.combobox[1] , item ) local mezo = guiGetText(GUIEditor.edit[1]) local mezo2 = guiGetText(editname) if ( guiGetText ( editname ) and guiGetText ( GUIEditor.edit[2] ) and guiGetText ( GUIEditor.edit[1] ) ~= '' ) then triggerServerEvent("Sorry",localPlayer,text,mezo,mezo2) end end end) addEvent("AddMezo",true) addEventHandler("AddMezo",root, function(text1,text2,text3) local row = guiGridListAddRow ( gridlist) guiGridListSetItemText (gridlist,row,1,tostring(text3),false,false) guiGridListSetItemText (gridlist,row,2,tostring(text1),false,false) guiGridListSetItemText (gridlist,row,3,tostring(text2),false,false) end) addEvent("Sorry",true) addEventHandler("Sorry",root, function(text1,text2,text3) triggerClientEvent("AddMezo",source,text1,text2,text3) end) اعتبره اعتذار لي D: Link to comment
N3xT Posted June 19, 2016 Share Posted June 19, 2016 triggerClientEvent("AddMezo",source,text1,text2,text3) سورس راح يجي للاعب اللي ظغط الزر فقط ، لذلك يعدل التريقر لـ روت . triggerClientEvent("AddMezo",root,text1,text2,text3) Link to comment
Adham Posted June 19, 2016 Author Share Posted June 19, 2016 شكرا لك ميزو بس سوال بس لو حطيط الكود ذا مكان سورس root triggerClientEvent("AddMezo",root,text1,text2,text3) بيخلي كل الناس تبعت ولا انا بس؟ Link to comment
Me[Z]oO Posted June 19, 2016 Share Posted June 19, 2016 (edited) triggerClientEvent("AddMezo",source,text1,text2,text3) كذا لكل اللاعبين triggerClientEvent(source,"AddMezo",source,text1,text2,text3) كذا للسورس الي ضغط Edited June 19, 2016 by Guest Link to comment
Me[Z]oO Posted June 19, 2016 Share Posted June 19, 2016 تمام شكرا لك . العفو حياك الله + triggerClientEvent("AddMezo",source,text1,text2,text3) سورس راح يجي للاعب اللي ظغط الزر فقط ، لذلك يعدل التريقر لـ روت . triggerClientEvent("AddMezo",root,text1,text2,text3) مين قال كذا ؟ 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