Ismaeel_finer Posted February 21, 2017 Share Posted February 21, 2017 السلام عليكم اني عملت لوحة زوائد عندي مشكلة بسيطة لما اضغط علي زر ارسال فلوس ماتطهر نافدة ---مود لوحة زوائد addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor_Image = {} GUIEditor = { button = {} } local screenW, screenH = guiGetScreenSize() Control = guiCreateWindow((screenW - 767) / 2, (screenH - 507) / 2, 767, 507, "لوحة زوائد زروط ليبيا", false) Controll = guiCreateStaticImage(9,0,749,498,"images/rules.png",false,Control) GUIEditor_Image[1] = guiCreateStaticImage(224,4,325,275,"images/tarkep.png",false,Controll) button2 = guiCreateButton(3,212,233,63,"لوحة فتح ابواب السيارة",false,Controll) guiSetProperty(button2, "NormalTextColour", "FFE9F807") button8 = guiCreateButton(2,387,233,63,"لوحة حفط الملابس",false,Controll) guiSetProperty(button8, "NormalTextColour", "FFFF0000") button10 = guiCreateButton(4,295,233,63,"لوحة توب الدرفت",false,Controll) guiSetProperty(button10, "NormalTextColour", "FF01FAB7") button3 = guiCreateButton(536,295,233,63,"لوحة ارسال فلوس",false,Controll) guiSetProperty(button11, "NormalTextColour", "FFEA5B0D") button4 = guiCreateButton(534,385,233,63,"لوحة اختيار ليزر",false,Controll) guiSetProperty(button4, "NormalTextColour", "FF5AF505") button13 = guiCreateButton(533,218,233,63,"اغاني",false,Controll) guiSetProperty(button13, "NormalTextColour", "FFD7259A") guiSetVisible(Control,false) end ) bindKey("F5","down", function () guiSetVisible(Control,not guiGetVisible(Control)) showCursor(guiGetVisible(Control)) end) addEventHandler ("onClientGUIClick", root, function() if (source == button8) then guiSetVisible(Control, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler ("onClientGUIClick", root, function() if (source == button4) then guiSetVisible(Control, false) guiSetVisible(laser,true) elseif (source == button16) then elseif (source == button13) then guiSetVisible(Control, false) guiSetVisible(window,true) elseif (source == button2) then guiSetVisible(Control, false) guiSetVisible(Car,true) elseif (source == button8) then guiSetVisible(Control, false) guiSetVisible(Cj,true) elseif (source == button3) then guiSetVisible(Control, false) guiSetVisible(zzz,true) showCursor(true) end end ) addEventHandler("onClientGUIClick",root, function () if source == button10 then if ( guiGetVisible(HD.wnd) == false ) then guiSetVisible(Control,false) showCursor(false) guiSetInputEnabled(false) end guiSetVisible(HD.wnd,not guiGetVisible(HD.wnd)) showCursor(guiGetVisible(v)) guiSetInputEnabled(guiGetVisible(HD.wnd)) end end ) ---كلنت مود ارسال فلوس GUIEditor = { label = { } , window = { } , gridlist = { } , edit = { } , button = { } , Key = "f2" }; addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(817,135,392,412,"",false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) zzz = guiCreateStaticImage(10,11,373,392,"images/LK.png",false,GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(3,49,145,342,false,zzz) guiGridListAddColumn(GUIEditor.gridlist[1],"Player",9,0) GUIEditor.button[1] = guiCreateButton(250,128,119,43,"ارسال",false,zzz) GUIEditor.edit[1] = guiCreateEdit(181,203,192,37,"",false,zzz) GUIEditor.label[1] = guiCreateLabel(150,298,222,92,"BY LIBYA_FREE",false,zzz) guiLabelSetColor(GUIEditor.label[1],255,0,0) GUIEditor_Image[1] = guiCreateStaticImage(215,2,93,70,"images/logo.png",false,zzz) end ) function RefreshGridlist ( aElement , Col ) if ( getElementType ( aElement ) == "gui-gridlist" ) then guiGridListClear ( aElement ) Col = Col or 1 for i,v in ipairs ( getElementsByType("player") ) do local aRow = guiGridListAddRow ( aElement ) guiGridListSetItemText ( aElement , aRow , Col , getPlayerName ( v ) , false , false ) end end end bindKey(GUIEditor["Key"],"down", function ( ) guiSetVisible ( GUIEditor.window [ 1 ] , not guiGetVisible ( GUIEditor.window [ 1 ] ) ) showCursor ( guiGetVisible ( GUIEditor.window [ 1 ] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window [ 1 ] ) ) RefreshGridlist ( GUIEditor.gridlist [ 1 ] ) end ); function Update ( ) RefreshGridlist ( GUIEditor.gridlist [ 1 ] ) end addEventHandler ("onClientPlayerJoin",root,Update) addEventHandler ("onClientPlayerChangeNick",root,Update) addEventHandler ("onClientPlayerQuit",root,Update) --------------------- addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then local InfoSelected = { guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) }; if ( InfoSelected [ 1 ] ~= -1 and guiGetText ( GUIEditor.edit[1] ) ~= "" ) then triggerServerEvent("SendMoney",getLocalPlayer(),guiGridListGetItemText(GUIEditor.gridlist[1],InfoSelected[1],InfoSelected[2]),guiGetText(GUIEditor.edit[1])) else outputChatBox("رجاء اختار اسم لاعب او مبلغ",255,150,0,true) end end end ) --ملف سيرفرامتع ارسال فلوس addEvent("SendMoney",true) addEventHandler("SendMoney",root, function ( aPlayer , aPrice ) if ( getPlayerFromName ( aPlayer ) and tonumber ( aPrice ) ) then if ( getPlayerFromName ( aPlayer ) == source ) then return outputChatBox("* لاتستطيع ارسال المال لنفسك!",source,255,150,0,true) end if ( getPlayerMoney ( source ) >= tonumber ( aPrice ) ) then givePlayerMoney ( getPlayerFromName ( aPlayer ) , tonumber ( aPrice ) ) takePlayerMoney ( source , tonumber ( aPrice ) ) else outputChatBox("* You Don't Have "..aPrice.."",source,255,0,0,true) end end end ) هادي شكل لوحة اف 5 وهادي انا كيف راح اضط زر ارسال فلوس يلي هوا مشكلة وهادي صورة حين ضغطت علي زر Link to comment
Abu-Solo Posted February 21, 2017 Share Posted February 21, 2017 خل الاكواد حق فتح اللوحة اخر شئ, لأنك مسوي الكود قبل اللوحة حق ارسال الفلوس # Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 3 minutes ago, Abu-Solo said: خل الاكواد حق فتح اللوحة اخر شئ, لأنك مسوي الكود قبل اللوحة حق ارسال الفلوس # جربت ما ضبط Link to comment
Abu-Solo Posted February 21, 2017 Share Posted February 21, 2017 (edited) 15 minutes ago, Ismaeel_finer said: جربت ما ضبط ارسل الاكواد بعد التعديل addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor_Image = {} GUIEditor = { button = {} } local screenW, screenH = guiGetScreenSize() Control = guiCreateWindow((screenW - 767) / 2, (screenH - 507) / 2, 767, 507, "لوحة زوائد زروط ليبيا", false) Controll = guiCreateStaticImage(9,0,749,498,"images/rules.png",false,Control) GUIEditor_Image[1] = guiCreateStaticImage(224,4,325,275,"images/tarkep.png",false,Controll) button2 = guiCreateButton(3,212,233,63,"لوحة فتح ابواب السيارة",false,Controll) guiSetProperty(button2, "NormalTextColour", "FFE9F807") button8 = guiCreateButton(2,387,233,63,"لوحة حفط الملابس",false,Controll) guiSetProperty(button8, "NormalTextColour", "FFFF0000") button10 = guiCreateButton(4,295,233,63,"لوحة توب الدرفت",false,Controll) guiSetProperty(button10, "NormalTextColour", "FF01FAB7") button3 = guiCreateButton(536,295,233,63,"لوحة ارسال فلوس",false,Controll) guiSetProperty(button11, "NormalTextColour", "FFEA5B0D") button4 = guiCreateButton(534,385,233,63,"لوحة اختيار ليزر",false,Controll) guiSetProperty(button4, "NormalTextColour", "FF5AF505") button13 = guiCreateButton(533,218,233,63,"اغاني",false,Controll) guiSetProperty(button13, "NormalTextColour", "FFD7259A") guiSetVisible(Control,false) end ) bindKey("F5","down", function () guiSetVisible(Control,not guiGetVisible(Control)) showCursor(guiGetVisible(Control)) end) addEventHandler ("onClientGUIClick", root, function() if (source == button8) then guiSetVisible(Control, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientGUIClick",root, function () if source == button10 then if ( guiGetVisible(HD.wnd) == false ) then guiSetVisible(Control,false) showCursor(false) guiSetInputEnabled(false) end guiSetVisible(HD.wnd,not guiGetVisible(HD.wnd)) showCursor(guiGetVisible(v)) guiSetInputEnabled(guiGetVisible(HD.wnd)) end end ) ---كلنت مود ارسال فلوس GUIEditor = { label = { } , window = { } , gridlist = { } , edit = { } , button = { } , Key = "f2" }; addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(817,135,392,412,"",false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) zzz = guiCreateStaticImage(10,11,373,392,"images/LK.png",false,GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(3,49,145,342,false,zzz) guiGridListAddColumn(GUIEditor.gridlist[1],"Player",9,0) GUIEditor.button[1] = guiCreateButton(250,128,119,43,"ارسال",false,zzz) GUIEditor.edit[1] = guiCreateEdit(181,203,192,37,"",false,zzz) GUIEditor.label[1] = guiCreateLabel(150,298,222,92,"BY LIBYA_FREE",false,zzz) guiLabelSetColor(GUIEditor.label[1],255,0,0) GUIEditor_Image[1] = guiCreateStaticImage(215,2,93,70,"images/logo.png",false,zzz) end ) function RefreshGridlist ( aElement , Col ) if ( getElementType ( aElement ) == "gui-gridlist" ) then guiGridListClear ( aElement ) Col = Col or 1 for i,v in ipairs ( getElementsByType("player") ) do local aRow = guiGridListAddRow ( aElement ) guiGridListSetItemText ( aElement , aRow , Col , getPlayerName ( v ) , false , false ) end end end bindKey(GUIEditor["Key"],"down", function ( ) guiSetVisible ( GUIEditor.window [ 1 ] , not guiGetVisible ( GUIEditor.window [ 1 ] ) ) showCursor ( guiGetVisible ( GUIEditor.window [ 1 ] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window [ 1 ] ) ) RefreshGridlist ( GUIEditor.gridlist [ 1 ] ) end ); function Update ( ) RefreshGridlist ( GUIEditor.gridlist [ 1 ] ) end addEventHandler ("onClientPlayerJoin",root,Update) addEventHandler ("onClientPlayerChangeNick",root,Update) addEventHandler ("onClientPlayerQuit",root,Update) --------------------- addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then local InfoSelected = { guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) }; if ( InfoSelected [ 1 ] ~= -1 and guiGetText ( GUIEditor.edit[1] ) ~= "" ) then triggerServerEvent("SendMoney",getLocalPlayer(),guiGridListGetItemText(GUIEditor.gridlist[1],InfoSelected[1],InfoSelected[2]),guiGetText(GUIEditor.edit[1])) else outputChatBox("رجاء اختار اسم لاعب او مبلغ",255,150,0,true) end end end ) addEventHandler ("onClientGUIClick", root, function() if (source == button4) then guiSetVisible(Control, false) guiSetVisible(laser,true) elseif (source == button16) then elseif (source == button13) then guiSetVisible(Control, false) guiSetVisible(window,true) elseif (source == button2) then guiSetVisible(Control, false) guiSetVisible(Car,true) elseif (source == button8) then guiSetVisible(Control, false) guiSetVisible(Cj,true) elseif (source == button3) then guiSetVisible(Control, false) guiSetVisible(ZZZ,true) showCursor(true) end end ) جرب Edited February 21, 2017 by Abu-Solo Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 ماضبط يا اخي نفس مشكلة Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 ماشفته لحطة 1 minute ago, Abu-Solo said: وش يقول الدي بق؟ 2 minutes ago, Abu-Solo said: وش يقول الدي بق؟ ACL: Access denied for 'debugscript' Link to comment
#BrosS Posted February 21, 2017 Share Posted February 21, 2017 4 minutes ago, Ismaeel_finer said: ماشفته لحطة ACL: Access denied for 'debugscript' اعطي نفسك رتبة يا فتى او اتأكد برتبتك موجودة صلاحية دي بق كومند أظنها واظني على غلط هيك cammand.debugscript لا تجربه ذذ Link to comment
Abu-Solo Posted February 21, 2017 Share Posted February 21, 2017 5 minutes ago, Ismaeel_finer said: ماشفته لحطة ACL: Access denied for 'debugscript' ,_, رق نفسك كونسول Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 6 minutes ago, Abu-Solo said: ,_, رق نفسك كونسول 6 minutes ago, Abu-Solo said: ,_, رق نفسك كونسول انا كونسول Link to comment
Abu-Solo Posted February 21, 2017 Share Posted February 21, 2017 حط هذي في الاسل حق الكونسول command.debugscript Link to comment
_Kinan Posted February 21, 2017 Share Posted February 21, 2017 (edited) كود فيه شوية اغلاط, هات الدي بق سكريبت Edited February 21, 2017 by _Kinan Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 21 minutes ago, Abu-Solo said: حط هذي في الاسل حق الكونسول command.debugscript Link to comment
_Kinan Posted February 21, 2017 Share Posted February 21, 2017 (edited) button2 = guiCreateButton(3,212,233,63,"لوحة فتح ابواب السيارة",false,Controll) guiSetProperty(button2, "NormalTextColour", "FFE9F807") button8 = guiCreateButton(2,387,233,63,"لوحة حفط الملابس",false,Controll) guiSetProperty(button8, "NormalTextColour", "FFFF0000") button10 = guiCreateButton(4,295,233,63,"لوحة توب الدرفت",false,Controll) guiSetProperty(button10, "NormalTextColour", "FF01FAB7") button3 = guiCreateButton(536,295,233,63,"لوحة ارسال فلوس",false,Controll) guiSetProperty(button11, "NormalTextColour", "FFEA5B0D") button4 = guiCreateButton(534,385,233,63,"لوحة اختيار ليزر",false,Controll) guiSetProperty(button4, "NormalTextColour", "FF5AF505") button13 = guiCreateButton(533,218,233,63,"اغاني",false,Controll) guiSetProperty(button13, "NormalTextColour", "FFD7259A") guiSetVisible(Control,false) حوله لـ: button2 = guiCreateButton(3,212,233,63,"لوحة فتح ابواب السيارة",false,Controll) guiSetProperty(button2, "NormalTextColour", "FFE9F807") button8 = guiCreateButton(2,387,233,63,"لوحة حفط الملابس",false,Controll) guiSetProperty(button8, "NormalTextColour", "FFFF0000") button10 = guiCreateButton(4,295,233,63,"لوحة توب الدرفت",false,Controll) guiSetProperty(button10, "NormalTextColour", "FF01FAB7") button3 = guiCreateButton(536,295,233,63,"لوحة ارسال فلوس",false,Controll) guiSetProperty(button13, "NormalTextColour", "FFEA5B0D") button4 = guiCreateButton(534,385,233,63,"لوحة اختيار ليزر",false,Controll) guiSetProperty(button4, "NormalTextColour", "FF5AF505") button13 = guiCreateButton(533,218,233,63,"اغاني",false,Controll) guiSetProperty(button13, "NormalTextColour", "FFD7259A") guiSetVisible(Control,false) Edited February 21, 2017 by _Kinan Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 9 minutes ago, _Kinan said: bindKey("F5","down",function () guiSetVisible(Controll,not guiGetVisible(Controll)) showCursor(guiGetVisible(Controll))end) عدل ذولي ^ لاحظ سطر 12 حاط controll مو control لما حولته لل زيما قلت معش اشتغل مود Link to comment
_Kinan Posted February 21, 2017 Share Posted February 21, 2017 Just now, Ismaeel_finer said: لما حولته لل زيما قلت معش اشتغل مود طيب رجعها مثل ما كانت و شوف ردي الي فوق Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 2 minutes ago, _Kinan said: طيب رجعها مثل ما كانت و شوف ردي الي فوق نفس شئ Link to comment
_Kinan Posted February 21, 2017 Share Posted February 21, 2017 7 minutes ago, Ismaeel_finer said: نفس شئ طيب, المشكلة هي : لما تضغط ع اف 5 ما تظهر لك اللوحة؟ ولا فيه زر لما تكبسه تجيك اللوحة؟ Link to comment
^iiEcoo'x_) Posted February 21, 2017 Share Posted February 21, 2017 16 minutes ago, Ismaeel_finer said: نفس شئ هات سطر 85 كلاينت و 21 و سطر 13بسيرفر و ملف cmoney سطر 10 Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 2 minutes ago, #_iMr.[E]coo said: هات سطر 85 كلاينت و 21 و سطر 13بسيرفر و ملف cmoney سطر 10 اخي بس سطر 85 ب كلاينت ما موجود اكتر شئ 82 ---سطر 21 guiSetVisible(Control,not guiGetVisible(Control)) ---سطر 10 GUIEditor.gridlist[1] = guiCreateGridList(3,49,145,342,false,zzz) Link to comment
^iiEcoo'x_) Posted February 21, 2017 Share Posted February 21, 2017 كله غلط لازم ترتب الازرار Button1 Button2 حتى فنكشن تحط له لون حاط لون ل button 8 ب button2 ؟ Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 (edited) -- 14 minutes ago, #_iMr.[E]coo said: 3 minutes ago, #_iMr.[E]coo said: كله غلط لازم ترتب الازرار Button1 Button2 حتى فنكشن تحط له لون حاط لون ل button 8 ب button2 ؟ مود سويته امس ف ليل كنت مشوش Edited February 21, 2017 by Ismaeel_finer Link to comment
Ahmed Ly Posted February 21, 2017 Share Posted February 21, 2017 (edited) ---مود لوحة زوائد ---كلنت مود ارسال فلوس GUIEditor = { label = { } , window = { } , gridlist = { } , edit = { } , button = { } , Key = "f2" }; GUIEditor_Image = {} GUIEditor.window[1] = guiCreateWindow(817,135,392,412,"",false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) zzz = guiCreateStaticImage(10,11,373,392,"images/LK.png",false,GUIEditor.window[1]) GUIEditor.gridlist[1] = guiCreateGridList(3,49,145,342,false,zzz) guiGridListAddColumn(GUIEditor.gridlist[1],"Player",9,0) GUIEditor.button[1] = guiCreateButton(250,128,119,43,"ارسال",false,zzz) GUIEditor.edit[1] = guiCreateEdit(181,203,192,37,"",false,zzz) GUIEditor.label[1] = guiCreateLabel(150,298,222,92,"BY LIBYA_FREE",false,zzz) guiLabelSetColor(GUIEditor.label[1],255,0,0) GUIEditor_Image[1] = guiCreateStaticImage(215,2,93,70,"images/logo.png",false,zzz) local screenW, screenH = guiGetScreenSize() Control = guiCreateWindow((screenW - 767) / 2, (screenH - 507) / 2, 767, 507, "لوحة زوائد زروط ليبيا", false) Controll = guiCreateStaticImage(9,0,749,498,"images/rules.png",false,Control) GUIEditor_Image[2] = guiCreateStaticImage(224,4,325,275,"images/tarkep.png",false,Controll) button2 = guiCreateButton(3,212,233,63,"لوحة فتح ابواب السيارة",false,Controll) guiSetProperty(button2, "NormalTextColour", "FFE9F807") button8 = guiCreateButton(2,387,233,63,"لوحة حفط الملابس",false,Controll) guiSetProperty(button8, "NormalTextColour", "FFFF0000") button10 = guiCreateButton(4,295,233,63,"لوحة توب الدرفت",false,Controll) guiSetProperty(button10, "NormalTextColour", "FF01FAB7") button3 = guiCreateButton(536,295,233,63,"لوحة ارسال فلوس",false,Controll) guiSetProperty(button3, "NormalTextColour", "FFEA5B0D") button4 = guiCreateButton(534,385,233,63,"لوحة اختيار ليزر",false,Controll) guiSetProperty(button4, "NormalTextColour", "FF5AF505") button13 = guiCreateButton(533,218,233,63,"اغاني",false,Controll) guiSetProperty(button13, "NormalTextColour", "FFD7259A") guiSetVisible(Controll,false) bindKey("F5","down", function () guiSetVisible(Control,not guiGetVisible(Control)) showCursor(guiGetVisible(Control)) end) addEventHandler ("onClientGUIClick", root, function() if (source == button8) then guiSetVisible(Control, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler ("onClientGUIClick", root, function() if (source == button4) then guiSetVisible(Control, false) guiSetVisible(laser,true) elseif (source == button16) then -- elseif (source == button13) then guiSetVisible(Control, false) guiSetVisible(window,true) elseif (source == button2) then guiSetVisible(Control, false) guiSetVisible(Car,true) elseif (source == button8) then guiSetVisible(Control, false) guiSetVisible(Cj,true) elseif (source == button3) then guiSetVisible(Control, false) guiSetVisible(GUIEditor.window[1],true) end end ) addEventHandler("onClientGUIClick",root, function () if source == button10 then if ( guiGetVisible(HD.wnd) == false ) then guiSetVisible(Control,false) showCursor(false) guiSetInputEnabled(false) end guiSetVisible(HD.wnd,not guiGetVisible(HD.wnd)) showCursor(guiGetVisible(v)) guiSetInputEnabled(guiGetVisible(HD.wnd)) end end ) function RefreshGridlist ( aElement , Col ) if ( getElementType ( aElement ) == "gui-gridlist" ) then guiGridListClear ( aElement ) Col = Col or 1 for i,v in ipairs ( getElementsByType("player") ) do local aRow = guiGridListAddRow ( aElement ) guiGridListSetItemText ( aElement , aRow , Col , getPlayerName ( v ) , false , false ) end end end bindKey(GUIEditor["Key"],"down", function ( ) guiSetVisible ( GUIEditor.window [ 1 ] , not guiGetVisible ( GUIEditor.window [ 1 ] ) ) showCursor ( guiGetVisible ( GUIEditor.window [ 1 ] ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window [ 1 ] ) ) RefreshGridlist ( GUIEditor.gridlist [ 1 ] ) end ); function Update ( ) RefreshGridlist ( GUIEditor.gridlist [ 1 ] ) end addEventHandler ("onClientPlayerJoin",root,Update) addEventHandler ("onClientPlayerChangeNick",root,Update) addEventHandler ("onClientPlayerQuit",root,Update) --------------------- addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then local InfoSelected = { guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) }; if ( InfoSelected [ 1 ] ~= -1 and guiGetText ( GUIEditor.edit[1] ) ~= "" ) then triggerServerEvent("SendMoney",getLocalPlayer(),guiGridListGetItemText(GUIEditor.gridlist[1],InfoSelected[1],InfoSelected[2]),guiGetText(GUIEditor.edit[1])) else outputChatBox("رجاء اختار اسم لاعب او مبلغ",255,150,0,true) end end end ) --ملف سيرفرامتع ارسال فلوس addEvent("SendMoney",true) addEventHandler("SendMoney",root, function ( aPlayer , aPrice ) if ( getPlayerFromName ( aPlayer ) and tonumber ( aPrice ) ) then if ( getPlayerFromName ( aPlayer ) == source ) then return outputChatBox("* لاتستطيع ارسال المال لنفسك!",source,255,150,0,true) end if ( getPlayerMoney ( source ) >= tonumber ( aPrice ) ) then givePlayerMoney ( getPlayerFromName ( aPlayer ) , tonumber ( aPrice ) ) takePlayerMoney ( source , tonumber ( aPrice ) ) else outputChatBox("* You Don't Have "..aPrice.."",source,255,0,0,true) end end end ) Edited February 21, 2017 by Ahmed Ly Link to comment
^iiEcoo'x_) Posted February 21, 2017 Share Posted February 21, 2017 اعطيك اياها ع بلاطة , كودك كله غلط , جداول غلط , جايبلياه من مود ثاني قديم GuiEditor ع مين تضحك ؟ والدليل انه نظام ال GUIEditor_Image = {} ههههههههههههه 1 Link to comment
Ismaeel_finer Posted February 21, 2017 Author Share Posted February 21, 2017 2 minutes ago, #_iMr.[E]coo said: اعطيك اياها ع بلاطة , كودك كله غلط , جداول غلط , جايبلياه من مود ثاني قديم GuiEditor ع مين تضحك ؟ والدليل انه نظام ال GUIEditor_Image = {} ههههههههههههه ماضحكت علي حد خوي ونطام قديم اني معاك واني نستخدم فيه ماتبيش تساعد ماتعلقش 1 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