
CRoW,,#
Members-
Posts
646 -
Joined
-
Last visited
Everything posted by CRoW,,#
-
السلام عليكم وش الخطاا بكودي function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "1.png", relative2 ) local mainBackgroundLabel = guiCreateLabel ( 0, 0, 250, 100, titleBarText2, false, mainBackground ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end addEvent("load", true) addEventHandler("load", root, function() showCursor( true ) local xml = xmlLoadFile ( "account.xml" ) local n1 = xmlFindChild ( xml, "name", 0 ) local n2 = xmlFindChild ( xml, "pass", 0 ) if n1 and n2 then guiSetText(GUIEditor_Edit[1],xmlNodeGetValue ( n1 )) guiSetText(GUIEditor_Edit[2],xmlNodeGetValue ( n2 )) end end ) addEventHandler("onClientResourceStart", resourceRoot, function() showCursor( true ) end ) GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} wnd = guiCreateWindow(0,0,0.9987,0.9983,"",true) GUIEditor_Image[1] = guiCreateStaticImage(12,21,800,400,"2.png",false,wnd) guiSetAlpha(wnd,1) GUIEditor_Edit[1] = guiCreateEdit(295,463,156,22,"",false,wnd) GUIEditor_Edit[2] = guiCreateEdit(295,489,156,22,"",false,wnd) guiEditSetMasked(GUIEditor_Edit[2],true) GUIEditor_Label[1] = guiCreateLabel(231,463,115,20,"username",false,wnd) GUIEditor_Label[2] = guiCreateLabel(231,492,115,20,"pass",false,wnd) GUIEditor_Label[3] = guiCreateLabel(298,49,495,34,"LOGIN BY BOLBN",false,wnd) GUIEditor_Button[1] = guiCreateButton(418,537,94,31,"register",false,wnd) GUIEditor_Button[2] = guiCreateButton(266,537,94,31,"login",false,wnd) GUIEditor_Checkbox[1] = guiCreateCheckBox(466,487,172,22,"Remember Me !",false,false,wnd) GUIEditor_Button[3] = guiCreateButton(93,549,26,22,"AR",false,wnd) GUIEditor_Button[4] = guiCreateButton(130,549,26,22,"EN",false,wnd) addEventHandler("onClientGUIClick", root, function () local user = guiGetText(GUIEditor_Edit[1]) local pass = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[3] ) then guiSetText(GUIEditor_Label[1],"اسم المستخدم") guiSetText(GUIEditor_Label[2],"كلمة المرور") guiSetText(GUIEditor_Button[2],"تسجيل الدخول") guiSetText(GUIEditor_Button[1],"تسجيل") elseif ( source == GUIEditor_Button[4] ) then guiSetText(GUIEditor_Label[1],"username") guiSetText(GUIEditor_Label[2],"pass") guiSetText(GUIEditor_Button[2],"Login") guiSetText(GUIEditor_Button[1],"Register") elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("onlogin",getLocalPlayer(),user,pass) elseif ( source == GUIEditor_Button[1] ) then triggerServerEvent("onre",getLocalPlayer(),user,pass) if ( guiCheckBoxGetSelected ( GUIEditor_Checkbox[1] ) == true ) then local file = xmlLoadFile("account.xml") or xmlCreateFile("account.xml","login") xmlNodeSetValue(xmlCreateChild(file,"name"),""..user.."") xmlNodeSetValue(xmlCreateChild(file,"pass"),""..pass.."") xmlNodeSetAttribute(file,"username",tostring(guiGetText(GUIEditor_Edit[1]))) xmlNodeSetAttribute(file,"password",tostring(guiGetText(GUIEditor_Edit[2]))) xmlSaveFile(file) xmlUnloadFile(file) end end end ) addEvent("setcol",true) addEventHandler("setcol",getRootElement(), function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) end ) addEventHandler("onClientGUIChanged",root, function ( element ) if ( element == GUIEditor.edit[2] ) then local ID = guiGetText(GUIEditor.edit[2]) if not tonumber(ID) then return guiSetText(GUIEditor.edit[2],"") end end end ) addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then logIn(source,account,pass) triggerClientEvent(source,"setcol",source) else outputChatBox("* Worng Username Or Password",source,255,0,0) end end ) addEvent("onre",true) addEventHandler("onre",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) else addAccount(user,pass) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) end end ) addEventHandler("onPlayerJoin", root, function() triggerClientEvent(source, "load", source) end ) المشكلة انهه ما يحفظ البيانات
-
lol ? createMarker ( -1520.64453, 1014.02814, -0.18750 , "cylinder",2,255,0,0.5,255) انا كذا يضبط معي =$
-
createMarker ( -1520.64453, 1014.02814, 6, "cylinder",2,255,0,0.5,255) مثال اذا كان 7 تنزل بمقدار 1 يعني يصير 6
-
السلام عليكم انا شفت حركةة في كم مود الي هي يقدر يرسل رسالة للايميل من السيرفر
-
ادري اني تعبك بس لو ابيه اكثر من صوت
-
مشكور ما قصرت
-
الرن كود اشوف للمايعرف يستخدمه يحذفه لانه من خلاله يقدر يفرمت السيرفر
-
addEventHandler("onClientGUIScroll",GUIEditor_Scrollbar[1], function( ) local Scroll = guiScrollBarGetScrollPosition(GUIEditor_Scrollbar[1]) Volume = Scroll / 100 if not isElement( "1.mp3" ) then return end setSoundVolume("1.mp3",Volume) end,false )
-
يعني كذا "1.mp3" سويت كذا بس ما ضبط يخرب المود
-
ضبطت ScrollBar لكن ما عرفت وش يعني متغير الصوت ؟
-
لا قصدي اذا حطيت صح وشلته ما يوقف الصوت +وش ابي في الاغاني بحطهه اصوات عادية
-
ضبط بس فيه بق اذا شلت الصح ما يتوقف الصوت +لو تقدر تخليه ما يشتغل الصوت الا اذا ضغط موافق
-
GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Scrollbar = {} wnd = guiCreateWindow(0.645,0.0166,0.355,0.4217,"اصوات",true) GUIEditor_Checkbox[1] = guiCreateCheckBox(24,38,100,23,"0",false,false,wnd) GUIEditor_Checkbox[2] = guiCreateCheckBox(24,92,100,23,"1",false,false,wnd) GUIEditor_Checkbox[3] = guiCreateCheckBox(24,148,100,23,"2",false,false,wnd) GUIEditor_Checkbox[4] = guiCreateCheckBox(151,38,100,23,"3",false,false,wnd) GUIEditor_Checkbox[5] = guiCreateCheckBox(151,91,100,23,"4",false,false,wnd) GUIEditor_Checkbox[6] = guiCreateCheckBox(151,148,100,23,"5",false,false,wnd) GUIEditor_Button[1] = guiCreateButton(11,208,68,24,"اغلاق",false,wnd) GUIEditor_Button[2] = guiCreateButton(144,208,68,24,"موافق",false,wnd) GUIEditor_Label[1] = guiCreateLabel(91,230,107,19,"H.R",false,wnd) guiSetVisible(wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F2", "down", OpenWin) function getElementSpeed ( element, unit ) if unit == nil then unit = 0 end if isElement ( element ) then local x,y,z = getElementVelocity ( element ) if ( unit == "mph" or unit == 1 or unit == "1" ) then return ( x^2 + y^2 + z^2 ) ^ 0.5 * 100 else return ( x^2 + y^2 + z^2 ) ^ 0.5 * 1.61 * 100 end else return false end end addEventHandler("onClickGUIClick", root, click) click = function() if (source == GUIEditor_Button[1]) then guiSetVisible(wnd, false) showCursor( false ) end end sound = playSound ( "1.wav", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) --------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "2.wav", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[2]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) ------------------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "3.wav", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[3]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) ---------------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "4.wav", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[4]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) ---------------------------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "5.wav", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[5]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) -------------------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "6.wav", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[6]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) --------------------------------------------------- addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) == true) then guiCheckBoxSetSelected(GUIEditor_Checkbox[2],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[3],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[4],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[5],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[6],false) elseif (guiCheckBoxGetSelected(GUIEditor_Checkbox[2]) == true) then guiCheckBoxSetSelected(GUIEditor_Checkbox[1],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[3],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[4],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[5],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[6],false) elseif (guiCheckBoxGetSelected(GUIEditor_Checkbox[3]) == true) then guiCheckBoxSetSelected(GUIEditor_Checkbox[1],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[2],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[4],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[5],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[6],false) elseif (guiCheckBoxGetSelected(GUIEditor_Checkbox[4]) == true) then guiCheckBoxSetSelected(GUIEditor_Checkbox[1],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[2],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[3],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[5],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[6],false) elseif (guiCheckBoxGetSelected(GUIEditor_Checkbox[5]) == true) then guiCheckBoxSetSelected(GUIEditor_Checkbox[1],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[2],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[3],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[4],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[6],false) elseif (guiCheckBoxGetSelected(GUIEditor_Checkbox[6]) == true) then guiCheckBoxSetSelected(GUIEditor_Checkbox[1],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[2],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[3],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[4],false) guiCheckBoxSetSelected(GUIEditor_Checkbox[5],false) end end ) يصير كذا ؟
-
عندك SA7R~KSA اطلق مصمم skype:waleed.ksa07
-
هههه تشوف
-
لو انقز ما كنت سويتهه تسسسلم يعطيك العافيةة
-
addEventHandler("onClientGUIScroll",getRootElement(),onGuiClick) function () setSoundVolume end ?
-
السلام عليكم ابي اربط Scrollbar بالصوت يعني اذا راح يمين ينقص الصوت واذا راح شمال يزيد الصوت
-
انا حاط اصوات كثيرة لكن يجي صوت واحد بس
-
مشكلتي مو في تنسيق الكود مشكلتي في الصوت
-
يوم احط صح ع اي مربع ما يتغير الصوت يعني يجيني نفس الصوت
-
GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Scrollbar = {} wnd = guiCreateWindow(0.645,0.0166,0.355,0.4217,"اصوات",true) GUIEditor_Checkbox[1] = guiCreateCheckBox(24,38,100,23,"0",false,false,wnd) GUIEditor_Checkbox[2] = guiCreateCheckBox(24,92,100,23,"1",false,false,wnd) GUIEditor_Checkbox[3] = guiCreateCheckBox(24,148,100,23,"2",false,false,wnd) GUIEditor_Checkbox[4] = guiCreateCheckBox(151,38,100,23,"3",false,false,wnd) GUIEditor_Checkbox[5] = guiCreateCheckBox(151,91,100,23,"4",false,false,wnd) GUIEditor_Checkbox[6] = guiCreateCheckBox(151,148,100,23,"5",false,false,wnd) GUIEditor_Button[1] = guiCreateButton(11,208,68,24,"اغلاق",false,wnd) GUIEditor_Button[2] = guiCreateButton(144,208,68,24,"موافق",false,wnd) GUIEditor_Label[1] = guiCreateLabel(91,230,107,19,"",false,wnd) guiSetVisible(wnd, false) function getElementSpeed ( element, unit ) if unit == nil then unit = 0 end if isElement ( element ) then local x,y,z = getElementVelocity ( element ) if ( unit == "mph" or unit == 1 or unit == "1" ) then return ( x^2 + y^2 + z^2 ) ^ 0.5 * 100 else return ( x^2 + y^2 + z^2 ) ^ 0.5 * 1.61 * 100 end else return false end end addEventHandler("onClickGUIClick", root, click) click = function() if (source == GUIEditor_Button[1]) then guiSetVisible(wnd, false) showCursor( false ) end end sound = playSound ( "1.mp3", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) --------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "2.mp3", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[2]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) ------------------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "3.mp3", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[3]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) ---------------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "4.mp3", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[4]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) ---------------------------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "5.mp3", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[5]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) -------------------------- addEventHandler("onClickGUIClick", root, click) sound = playSound ( "6.mp3", true ) setSoundVolume ( sound, 0.5 ) setSoundPaused ( sound, true ) addEventHandler("onClientRender", root, function() if (guiCheckBoxGetSelected(GUIEditor_Checkbox[6]) == true) then local theSpeed = getElementSpeed ( getPedOccupiedVehicle ( getLocalPlayer() ), "kmh" ) if theSpeed >= 20 then setSoundPaused ( sound, false ) else setSoundPaused ( sound, true ) end end end ) الكود شغال وكل شي بسس المشكلة انه يشغل نفس الصوت يعني ما يتغير الصوت
-
حتى انا ودي اسويها جابت راسي الطريقة
-
يخوي هو قصده بالقيم مود اول ما تدخل السيرفر تجي شاشة سودة هو يبي يشيلها