-
Posts
201 -
Joined
-
Last visited
Everything posted by Ismaeel_finer
-
السلام عليكم انا من مشكلة الي مشكلة نبدا ف موضوع لدي مشكلة سويت لوحة امورها تمام بس اسماء لاعبين ماتطهر ف لوحة ارسال فلوس ---Client addEventHandler("onClientResourceStart", resourceRoot, function() --panelmoney = guiCreateWindow(817,135,392,412,"",false) local screenW, screenH = guiGetScreenSize() panelmoney = guiCreateWindow((screenW - 530) / 2, (screenH - 416) / 2, 530, 416, "", false) guiWindowSetSizable(panelmoney, false) guiSetVisible(panelmoney,false) zzz = guiCreateStaticImage(10, 11, 510, 395,"images/LK.png",false,panelmoney) GUIEditor.gridlist = guiCreateGridList(3,49,145,342,false,zzz) guiGridListAddColumn(GUIEditor.gridlist,"Player",9,0) sendmoney = guiCreateButton(369, 117, 119, 43,"ارسال",false,zzz) Closed = guiCreateButton(307, 335, 167, 46, "اغلاق", false, zzz) GUIEditor.edit = guiCreateEdit(261, 203, 192, 37,"",false,zzz) labelmoney = guiCreateLabel(150,298,222,92,"BY LIBYA_FREE",false,zzz) guiLabelSetColor(labelmoney,255,0,0) imagemoneey = 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 ( panelmoney , not guiGetVisible ( panelmoney ) ) showCursor ( guiGetVisible ( panelmoney ) ) guiSetInputEnabled ( guiGetVisible ( GUIEditor.window ) ) RefreshGridlist ( GUIEditor.gridlist ) end ); function Update ( ) RefreshGridlist ( GUIEditor.gridlist ) end addEventHandler ("onClientPlayerJoin",root,Update) addEventHandler ("onClientPlayerChangeNick",root,Update) addEventHandler ("onClientPlayerQuit",root,Update) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if (source == Closed) then guiSetVisible (panelmoney,false) showCursor ( false ) elseif ( source == sendmoney ) then local InfoSelected = { guiGridListGetSelectedItem ( GUIEditor.gridlist ) }; if ( InfoSelected [ 1 ] ~= -1 and guiGetText ( GUIEditor.edit ) ~= "" ) then triggerServerEvent("SendMoney",getLocalPlayer(),guiGridListGetItemText(GUIEditor.gridlist,InfoSelected[1],InfoSelected[2]),guiGetText(GUIEditor.edit)) else outputChatBox("اختر لاعب او قم بكتابة رقم",255,0,0,true) end end end ) ---server 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,0,0,true) end if ( getPlayerMoney ( source ) >= tonumber ( aPrice ) ) then givePlayerMoney ( getPlayerFromName ( aPlayer ) , tonumber ( aPrice ) ) takePlayerMoney ( source , tonumber ( aPrice ) ) else outputChatBox("* ليس لديك مبلغ كافي "..aPrice.."",source,255,0,0,true) end end end ) ---لوحة اف 5 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 == button2) then guiSetVisible(Car, true) guiSetVisible(Control, false) elseif (source == button8) then guiSetVisible(Cj, true) guiSetVisible(Control, false) elseif (source == button10) then guiSetVisible(HD.wnd, true) guiSetVisible(Control, false) elseif (source == button3) then guiSetVisible(panelmoney, true) guiSetVisible(Control, false) elseif (source == button4) then guiSetVisible(laser, true) guiSetVisible(Control, false) elseif (source == button13) then guiSetVisible(window, true) guiSetVisible(Control, false) end end ) ارجو مساعدة
-
ماضحكت علي حد خوي ونطام قديم اني معاك واني نستخدم فيه ماتبيش تساعد ماتعلقش
-
-- مود سويته امس ف ليل كنت مشوش
-
اخي بس سطر 85 ب كلاينت ما موجود اكتر شئ 82 ---سطر 21 guiSetVisible(Control,not guiGetVisible(Control)) ---سطر 10 GUIEditor.gridlist[1] = guiCreateGridList(3,49,145,342,false,zzz)
-
لما حولته لل زيما قلت معش اشتغل مود
-
ماشفته لحطة ACL: Access denied for 'debugscript'
-
ماضبط يا اخي نفس مشكلة
-
السلام عليكم اني عملت لوحة زوائد عندي مشكلة بسيطة لما اضغط علي زر ارسال فلوس ماتطهر نافدة ---مود لوحة زوائد 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 وهادي انا كيف راح اضط زر ارسال فلوس يلي هوا مشكلة وهادي صورة حين ضغطت علي زر
-
قصدي اني ضفته هادا مود لي اف5 من صنعي اني متعددة وطائف كافتح ابواب سيارة واغاني ..الخ
-
اسمعني اني مود هادا بنديره ف لوحة زوائد ---وامتع اف 1 نحيتها درتلها --- مساعدة
-
توا انجرب #Edit: ماشتغلش
-
نعم ف طريقة رأيته ف معطم السيرفرات
-
السلام عليكم عندي مشكلة ف مود فتح ابواب السيارة لماتاتي الي لوحة فتح ابواب ماينفتح لي ابواب سيارة ملاحطه قبل ماتقولي شئ رجاء جرب مود عندك ---client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Scrollbar = {} local x,y = guiGetScreenSize() Car = guiCreateWindow(x/2-136, y/2-144,272,288,"!! ~ [ مود فتح الابواب ] - #",false) GUIEditor_Scrollbar[1] = guiCreateScrollBar(24,49,225,17,true,false,Car) GUIEditor_Label[1] = guiCreateLabel(95,30,135,15,"=[ الكبوت ]=",false,Car) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(96,72,135,15,"=[ الباب 1 ]=",false,Car) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Scrollbar[2] = guiCreateScrollBar(24,91,225,17,true,false,Car) GUIEditor_Label[3] = guiCreateLabel(96,112,135,15,"=[ الباب 2 ]=",false,Car) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Scrollbar[3] = guiCreateScrollBar(24,130,225,17,true,false,Car) GUIEditor_Label[4] = guiCreateLabel(96,151,135,15,"=[ الباب 3 ]=",false,Car) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Scrollbar[4] = guiCreateScrollBar(24,168,225,17,true,false,Car) GUIEditor_Label[5] = guiCreateLabel(96,189,135,15,"=[ الباب 4 ]=",false,Car) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Scrollbar[5] = guiCreateScrollBar(24,206,225,17,true,false,Car) GUIEditor_Label[6] = guiCreateLabel(95,226,135,15,"=[ الشنطه ]=",false,Car) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Scrollbar[6] = guiCreateScrollBar(24,243,225,17,true,false,Car) GUIEditor_Button[1] = guiCreateButton(23,265,230,15,"[ اغلاق ]",false,Car) guiSetFont(GUIEditor_Button[1],"default-small") guiWindowSetSizable ( Car, false ) setElementData(GUIEditor_Scrollbar[1], "Type", 0) setElementData(GUIEditor_Scrollbar[2], "Type", 2) setElementData(GUIEditor_Scrollbar[3], "Type", 3) setElementData(GUIEditor_Scrollbar[4], "Type", 4) setElementData(GUIEditor_Scrollbar[5], "Type", 5) setElementData(GUIEditor_Scrollbar[6], "Type", 1) guiSetVisible(Car, false) showCursor(false) function enableVehicleControl() if guiGetVisible(Car) == false then guiSetVisible(Car, true) showCursor(true) else guiSetVisible(Car, false) showCursor(false) end end bindKey("","down",enableVehicleControl) function closeButton() guiSetVisible(Car, false) showCursor(false) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], closeButton, false ) function updateRatio(Scrolled) local position = guiScrollBarGetScrollPosition(Scrolled) local door = getElementData(Scrolled, "Type") triggerServerEvent("moveThis:~", getLocalPlayer(), door, position) end addEventHandler("onClientGUIScroll", getRootElement(), updateRatio) ---server Closed = true Rotation = 0 addEvent("OpenDoor",true) addEventHandler("OpenDoor",root,function(Id) local Vehicle = getPedOccupiedVehicle(source) if ( Vehicle ) then if ( Closed == true ) then if ( isTimer(TimerOpen) ) then killTimer(TimerOpen) end if ( isTimer(TimerClosed) ) then killTimer(TimerClosed) end TimerOpen = setTimer(function() Rotation = tonumber(Rotation) + tonumber(1) setVehicleDoorOpenRatio(Vehicle,tonumber(Id),tonumber(Rotation)) if ( Rotation >= tonumber(100) ) then killTimer(TimerOpen) end end,1000,0) Closed = false else if ( isTimer(TimerOpen) ) then killTimer(TimerOpen) end if ( isTimer(TimerClosed) ) then killTimer(TimerClosed) end TimerClosed = setTimer(function() Rotation = tonumber(Rotation) - tonumber(1) setVehicleDoorOpenRatio(Vehicle,tonumber(Id),tonumber(Rotation)) if ( Rotation <= tonumber(0) ) then killTimer(TimerClosed) end end,1000,0) Closed = true end else outputChatBox("Need To Enter To Vehicle",source,255,0,0,true) end end) ارجو مساعدة
-
تمام شكرا ع ردك
-
اني قصدي انه لما رص زر ماوس 2 يتم نقله للخلف سيارة وهوا واقف علي قدميه ولديهي رشاش ويقعد يضرب #Edit: نطرحلك كودي ؟
-
السلام عليكم بدي اعمل مود لاعب يمكنه ضرب من سيارة زي دوشكة نبي فنشنكات مطلوبة للمود وشكرا