FAHD+18 Posted January 28, 2017 Share Posted January 28, 2017 السلام عليكم ورحمه الله وبركاته اليوم مسوي لما يكتب في ايديت و يحدد شيك بوكس وكومب بوكس يجي في القريد لست الكلام النا مسويه بس ولله م عارف اسوي الحفظ ابي مبرمج يسوهالي لاهنتم شسباب ملحوظه فكره المود مأخوذه : هذا الكود function Click ( btn ) if ( source == GUIEditor.checkbox[1] ) then guiCheckBoxSetSelected ( GUIEditor.checkbox[2], not guiCheckBoxGetSelected ( source ) ) elseif ( source == GUIEditor.checkbox[2] ) then guiCheckBoxSetSelected ( GUIEditor.checkbox[1], not guiCheckBoxGetSelected ( source ) ) end if btn == "left" then if ( source == GUIEditor.button[1] ) then local item = guiComboBoxGetSelected ( com ) local card = guiComboBoxGetItemText( com, item ) local name, email, number = guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ), guiGetText ( GUIEditor.edit[3] ) if name == "" or number == "" or card == "" or email == "" then return end triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, email, number, card ) guiSetEnabled ( GUIEditor.button[1], false ) end end end addEventHandler ( 'onClientGUIClick', root, Click ) addEvent ( "RentSystem:onSendSubscribePlayers", true ) addEventHandler ( "RentSystem:onSendSubscribePlayers", root, function ( name, email, number, card, Serial, player ) local row = guiGridListAddRow ( GUIEditor.gridlist[4] ) guiGridListSetItemText( GUIEditor.gridlist[4], row, 1,' '..player:gsub("#%x%x%x%x%x%x", "")..'('..name..') ',false, false) guiGridListSetItemData ( GUIEditor.gridlist[4], row, 1, player,false,false) guiGridListSetItemText(GUIEditor.gridlist[4], row, 4, Serial , false, false) guiGridListSetItemText(GUIEditor.gridlist[4], row, 2, card, false, false) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 1, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 2, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 3, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 4, 255, 255, 0 ) end ) -- ملف سرفر addEvent ( "RentSystem:onCreateNewOrder", true ) addEventHandler ( "RentSystem:onCreateNewOrder", root, function ( name, email, number, card ) if ( name and email and number and card ) then local player = getPlayerName ( source ) local Serial = getPlayerSerial ( source ) triggerClientEvent ( "RentSystem:onSendSubscribePlayers", root, name, email, number, card, Serial, player ) end end ) ; Link to comment
' A F . Posted January 28, 2017 Share Posted January 28, 2017 متأكد ان الاكواد انت مسويها ؟ Link to comment
FAHD+18 Posted January 28, 2017 Author Share Posted January 28, 2017 لا بس ابي اسويها واتعلم منها Link to comment
^iiEcoo'x_) Posted January 28, 2017 Share Posted January 28, 2017 ما نساعد احد يسرق اكواد ويقول له ~ Link to comment
Adham Posted January 28, 2017 Share Posted January 28, 2017 3 minutes ago, #_iMr.[E]coo said: ما نساعد احد يسرق اكواد ويقول له ~ انا معطي له الكود وسامح له ياخده وش المشكله الان ؟ Link to comment
^iiEcoo'x_) Posted January 28, 2017 Share Posted January 28, 2017 لا بس قكرت انه منت سامح له Link to comment
iMr.WiFi..! Posted January 28, 2017 Share Posted January 28, 2017 function Click ( btn ) if ( source == GUIEditor.checkbox[1] ) then guiCheckBoxSetSelected ( GUIEditor.checkbox[2], not guiCheckBoxGetSelected ( source ) ) elseif ( source == GUIEditor.checkbox[2] ) then guiCheckBoxSetSelected ( GUIEditor.checkbox[1], not guiCheckBoxGetSelected ( source ) ) end if btn == "left" then if ( source == GUIEditor.button[1] ) then local item = guiComboBoxGetSelected ( com ) local card = guiComboBoxGetItemText( com, item ) local name, email, number = guiGetText ( GUIEditor.edit[1] ), guiGetText ( GUIEditor.edit[2] ), guiGetText ( GUIEditor.edit[3] ) if name == "" or number == "" or email == "" then return end triggerServerEvent ( "RentSystem:onCreateNewOrder", localPlayer, name, email, number, card ) guiSetEnabled ( GUIEditor.button[1], false ) end end end addEventHandler ( 'onClientGUIClick', root, Click ) addEvent ( "RentSystem:onSendSubscribePlayers", true ) addEventHandler ( "RentSystem:onSendSubscribePlayers", root, function ( name, email, number, card, Serial, player ) local row = guiGridListAddRow ( GUIEditor.gridlist[4] ) guiGridListSetItemText( GUIEditor.gridlist[4], row, 1,' '..player:gsub("#%x%x%x%x%x%x", "")..'('..name..') ',false, false) guiGridListSetItemData ( GUIEditor.gridlist[4], row, 1, player,false,false) guiGridListSetItemText(GUIEditor.gridlist[4], row, 4, Serial , false, false) guiGridListSetItemText(GUIEditor.gridlist[4], row, 2, card, false, false) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 1, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 2, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 3, 255, 255, 0 ) guiGridListSetItemColor ( GUIEditor.gridlist[4], row, 4, 255, 255, 0 ) end ) -- ملف سرفر addEvent ( "RentSystem:onCreateNewOrder", true ) addEventHandler ( "RentSystem:onCreateNewOrder", root, function ( name, email, number, card ) if ( name and email and number and card ) then local player = getPlayerName ( source ) local Serial = getPlayerSerial ( source ) triggerClientEvent ( "RentSystem:onSendSubscribePlayers", root, name, email, number, card, Serial, player ) 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