CRoW,,# Posted March 17, 2013 Share Posted March 17, 2013 السلام عليكم القيم مود حق سعد اذا شغلته تجيك شاشة سودة تخليك م تقدر تلعب ابي اشيلها لا هنتم كيف اشيلها ؟؟ http://www.mediafire.com/?t06pll1swxddc4l Link to comment
iPrestege Posted March 17, 2013 Share Posted March 17, 2013 دور fadeCamera(false) > fadeCamera(true) Link to comment
CRoW,,# Posted March 17, 2013 Author Share Posted March 17, 2013 دور fadeCamera(false) > fadeCamera(true) دورت على نفسس ذا الكود بس م حصلته قبل لا اطرح الموضوع Link to comment
|Mr|-Talal07-| Posted March 17, 2013 Share Posted March 17, 2013 خلوو سعد يجي ويشوف وش المشكله Link to comment
iPrestege Posted March 17, 2013 Share Posted March 17, 2013 بدل الملف login_panel_c.lua بـ ---------------------------------- -----------| Settings |----------- ---------------------------------- blackLoginScreen = false -- Set to 'true' to display a black screen to the player untill they log in or choose to play as a guest. enableKickPlayer = false -- Set whether to kick the player after they fail to login specified amount of times. ---------------------------------- -- Set the text you want displayed in the "rules" window here - use '\n' to go into the next line infoText = "------ Rules ------ \n\n* No cheating!\n* No insulting and spamming!\n* No vehicle mods\n\nEdit the text however you like\n\n\n\n\n\n\n\nLogin panel by NeXTreme" -- Screen and GUI window sizes function loginPanel() local screenWidth, screenHeight = guiGetScreenSize() mainWidth,mainHeight = 749,472 regWidth,regHeight = 439,344 local left = mainWidth/2 - mainHeight/2 local top = regWidth/2 - regHeight/2 lp = getLocalPlayer() mainWindow = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"Login panel",false) mInfo = guiCreateMemo(21,36,411,278,infoText,false,mainWindow) guiMemoSetReadOnly(mInfo,true) editUsername = guiCreateEdit(53,364,187,25,"",false,mainWindow) guiEditSetMaxLength(editUsername,30) editPassword = guiCreateEdit(53,421,187,25,"",false,mainWindow) guiEditSetMaxLength(editPassword,30) guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(67,330,158,38,"Username:",false,mainWindow) guiLabelSetColor(lblUsername,0,85,255) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) font9 = guiSetFont(lblUsername,"default-bold-small") lblPassword = guiCreateLabel(67,389,158,38,"Password:",false,mainWindow) guiLabelSetColor(lblPassword,0,85,255) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) font8 = guiSetFont(lblPassword,"default-bold-small") btnLogin = guiCreateButton(255,368,242,74,"Login",false,mainWindow) font7 = guiSetFont(btnLogin,"sa-header") btnToggleRegister = guiCreateButton(520,370,206,68,"Register an account",false,mainWindow) font6 = guiSetFont(btnToggleRegister,"default-bold-small") registerWindow = guiCreateWindow(screenWidth/2-regWidth/2,screenHeight/2-regHeight/2,regWidth,regHeight,"Registration",false) editRegistrationUsername = guiCreateEdit(98,138,242,25,"",false,registerWindow) editRegistrationPassword = guiCreateEdit(98,195,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationPassword,true) editRegistrationRepeatPassword = guiCreateEdit(99,252,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationRepeatPassword,true) lblRegister = guiCreateLabel(24,24,391,97,"Register",false,registerWindow) guiLabelSetColor(lblRegister,0,85,255) guiLabelSetVerticalAlign(lblRegister,"center") guiLabelSetHorizontalAlign(lblRegister,"center",false) font5 = guiSetFont(lblRegister,"sa-gothic") lblRUsername = guiCreateLabel(98,113,242,17,"Username:",false,registerWindow) guiLabelSetColor(lblRUsername,0,85,255) guiLabelSetVerticalAlign(lblRUsername,"center") guiLabelSetHorizontalAlign(lblRUsername,"center",false) font4 = guiSetFont(lblRUsername,"default-bold-small") lblRPassword = guiCreateLabel(98,171,242,17,"Password:",false,registerWindow) guiLabelSetColor(lblRPassword,0,85,255) guiLabelSetVerticalAlign(lblRPassword,"center") guiLabelSetHorizontalAlign(lblRPassword,"center",false) font3 = guiSetFont(lblRPassword,"default-bold-small") lblRepeatPassword = guiCreateLabel(98,230,242,17,"Repeat password:",false,registerWindow) guiLabelSetColor(lblRepeatPassword,0,85,255) guiLabelSetVerticalAlign(lblRepeatPassword,"center") guiLabelSetHorizontalAlign(lblRepeatPassword,"center",false) font2 = guiSetFont(lblRepeatPassword,"default-bold-small") btnCancel = guiCreateButton(232,292,179,38,"Cancel",false,registerWindow) font1 = guiSetFont(btnCancel,"default-bold-small") btnConfirmRegistration = guiCreateButton(29,292,179,38,"Confirm & register!",false,registerWindow) font = guiSetFont(btnConfirmRegistration,"default-bold-small") image = guiCreateStaticImage(440,23,300,225,"img/logo.png",false,mainWindow) --- وهنا guiSetVisible(registerWindow, false) guiSetInputMode("no_binds_when_editing") showCursor(true) showChat(false) end function onClick(button,state) if(button == "left" and state == "up") then if (source == btnToggleRegister) then guiSetVisible(registerWindow, true) guiBringToFront(registerWindow) guiSetInputEnabled(true) showCursor(true) elseif (source == btnCancel) then guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) elseif (source == btnPlayAsGuest) then guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) guiSetInputEnabled(false) triggerEvent ( "showWindow", root) outputChatBox("#0000FF* #FFFFFFYou've chosen to play as a #ABCDEFGUEST#FFFFFF!",255,255,255,true) elseif (source == btnConfirmRegistration) then username = guiGetText(editRegistrationUsername) password = guiGetText(editRegistrationPassword) passwordConfirm = guiGetText(editRegistrationRepeatPassword) triggerServerEvent("onRequestRegister",getLocalPlayer(),username,password,passwordConfirm) elseif (source == btnLogin) then username = guiGetText(editUsername) password = guiGetText(editPassword) triggerServerEvent("onRequestLogin",getLocalPlayer(),username,password) end end end addEventHandler("onClientGUIClick",root,onClick) -- Show login window function showLoginWindow() guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) showPlayerHudComponent("all", true) end addEvent("showLoginWindow", true) addEventHandler("showLoginWindow",getRootElement(),showLoginWindow) -- Hide login window function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) showforallteam() end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) -- Hide register window function hideRegisterWindow() guiSetInputEnabled(true) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) showCursor(true) end addEvent("hideRegisterWindow", true) addEventHandler("hideRegisterWindow", getRootElement(), hideRegisterWindow) BACK = guiCreateStaticImage(0,0,1,1,"images/black.png",true) s3d1 = guiCreateStaticImage(0,0,1,1,"images/1.png",true) s3d2 = guiCreateStaticImage(0,0,1,1,"images/2.jpg",true) s3d3 = guiCreateStaticImage(0,0,1,1,"images/3.png",true) guiSetVisible(s3d2, false) guiSetVisible(s3d3, false) triggerServerEvent('onLoadedClient',localPlayer,localPlayer) local Timer = setTimer Timer(function() sound = playSound("Other/sound.mp3", true) end, 1000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 5000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 6000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.-- s8) -->) end, 6150, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.7)) end, 6250, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.6)) end, 6350, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.5)) end, 6450, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.4)) end, 6550, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.3)) end, 6650, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.2)) end, 6750, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.1)) end, 6850, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0)) end, 6855, 1, true) Timer(function() guiSetVisible(s3d1, false) end, 6900, 1, true) Timer(function() guiSetVisible(s3d2, true) end, 7000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 8895, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 9000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.-- s8) -->) end, 9150, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.7)) end, 9250, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.6)) end, 9350, 1, true) Link to comment
CRoW,,# Posted March 17, 2013 Author Share Posted March 17, 2013 بدل الملف login_panel_c.lua بـ ---------------------------------- -----------| Settings |----------- ---------------------------------- blackLoginScreen = false -- Set to 'true' to display a black screen to the player untill they log in or choose to play as a guest. enableKickPlayer = false -- Set whether to kick the player after they fail to login specified amount of times. ---------------------------------- -- Set the text you want displayed in the "rules" window here - use '\n' to go into the next line infoText = "------ Rules ------ \n\n* No cheating!\n* No insulting and spamming!\n* No vehicle mods\n\nEdit the text however you like\n\n\n\n\n\n\n\nLogin panel by NeXTreme" -- Screen and GUI window sizes function loginPanel() local screenWidth, screenHeight = guiGetScreenSize() mainWidth,mainHeight = 749,472 regWidth,regHeight = 439,344 local left = mainWidth/2 - mainHeight/2 local top = regWidth/2 - regHeight/2 lp = getLocalPlayer() mainWindow = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"Login panel",false) mInfo = guiCreateMemo(21,36,411,278,infoText,false,mainWindow) guiMemoSetReadOnly(mInfo,true) editUsername = guiCreateEdit(53,364,187,25,"",false,mainWindow) guiEditSetMaxLength(editUsername,30) editPassword = guiCreateEdit(53,421,187,25,"",false,mainWindow) guiEditSetMaxLength(editPassword,30) guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(67,330,158,38,"Username:",false,mainWindow) guiLabelSetColor(lblUsername,0,85,255) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) font9 = guiSetFont(lblUsername,"default-bold-small") lblPassword = guiCreateLabel(67,389,158,38,"Password:",false,mainWindow) guiLabelSetColor(lblPassword,0,85,255) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) font8 = guiSetFont(lblPassword,"default-bold-small") btnLogin = guiCreateButton(255,368,242,74,"Login",false,mainWindow) font7 = guiSetFont(btnLogin,"sa-header") btnToggleRegister = guiCreateButton(520,370,206,68,"Register an account",false,mainWindow) font6 = guiSetFont(btnToggleRegister,"default-bold-small") registerWindow = guiCreateWindow(screenWidth/2-regWidth/2,screenHeight/2-regHeight/2,regWidth,regHeight,"Registration",false) editRegistrationUsername = guiCreateEdit(98,138,242,25,"",false,registerWindow) editRegistrationPassword = guiCreateEdit(98,195,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationPassword,true) editRegistrationRepeatPassword = guiCreateEdit(99,252,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationRepeatPassword,true) lblRegister = guiCreateLabel(24,24,391,97,"Register",false,registerWindow) guiLabelSetColor(lblRegister,0,85,255) guiLabelSetVerticalAlign(lblRegister,"center") guiLabelSetHorizontalAlign(lblRegister,"center",false) font5 = guiSetFont(lblRegister,"sa-gothic") lblRUsername = guiCreateLabel(98,113,242,17,"Username:",false,registerWindow) guiLabelSetColor(lblRUsername,0,85,255) guiLabelSetVerticalAlign(lblRUsername,"center") guiLabelSetHorizontalAlign(lblRUsername,"center",false) font4 = guiSetFont(lblRUsername,"default-bold-small") lblRPassword = guiCreateLabel(98,171,242,17,"Password:",false,registerWindow) guiLabelSetColor(lblRPassword,0,85,255) guiLabelSetVerticalAlign(lblRPassword,"center") guiLabelSetHorizontalAlign(lblRPassword,"center",false) font3 = guiSetFont(lblRPassword,"default-bold-small") lblRepeatPassword = guiCreateLabel(98,230,242,17,"Repeat password:",false,registerWindow) guiLabelSetColor(lblRepeatPassword,0,85,255) guiLabelSetVerticalAlign(lblRepeatPassword,"center") guiLabelSetHorizontalAlign(lblRepeatPassword,"center",false) font2 = guiSetFont(lblRepeatPassword,"default-bold-small") btnCancel = guiCreateButton(232,292,179,38,"Cancel",false,registerWindow) font1 = guiSetFont(btnCancel,"default-bold-small") btnConfirmRegistration = guiCreateButton(29,292,179,38,"Confirm & register!",false,registerWindow) font = guiSetFont(btnConfirmRegistration,"default-bold-small") image = guiCreateStaticImage(440,23,300,225,"img/logo.png",false,mainWindow) --- وهنا guiSetVisible(registerWindow, false) guiSetInputMode("no_binds_when_editing") showCursor(true) showChat(false) end function onClick(button,state) if(button == "left" and state == "up") then if (source == btnToggleRegister) then guiSetVisible(registerWindow, true) guiBringToFront(registerWindow) guiSetInputEnabled(true) showCursor(true) elseif (source == btnCancel) then guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) elseif (source == btnPlayAsGuest) then guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) guiSetInputEnabled(false) triggerEvent ( "showWindow", root) outputChatBox("#0000FF* #FFFFFFYou've chosen to play as a #ABCDEFGUEST#FFFFFF!",255,255,255,true) elseif (source == btnConfirmRegistration) then username = guiGetText(editRegistrationUsername) password = guiGetText(editRegistrationPassword) passwordConfirm = guiGetText(editRegistrationRepeatPassword) triggerServerEvent("onRequestRegister",getLocalPlayer(),username,password,passwordConfirm) elseif (source == btnLogin) then username = guiGetText(editUsername) password = guiGetText(editPassword) triggerServerEvent("onRequestLogin",getLocalPlayer(),username,password) end end end addEventHandler("onClientGUIClick",root,onClick) -- Show login window function showLoginWindow() guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) showPlayerHudComponent("all", true) end addEvent("showLoginWindow", true) addEventHandler("showLoginWindow",getRootElement(),showLoginWindow) -- Hide login window function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) showforallteam() end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) -- Hide register window function hideRegisterWindow() guiSetInputEnabled(true) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) showCursor(true) end addEvent("hideRegisterWindow", true) addEventHandler("hideRegisterWindow", getRootElement(), hideRegisterWindow) BACK = guiCreateStaticImage(0,0,1,1,"images/black.png",true) s3d1 = guiCreateStaticImage(0,0,1,1,"images/1.png",true) s3d2 = guiCreateStaticImage(0,0,1,1,"images/2.jpg",true) s3d3 = guiCreateStaticImage(0,0,1,1,"images/3.png",true) guiSetVisible(s3d2, false) guiSetVisible(s3d3, false) triggerServerEvent('onLoadedClient',localPlayer,localPlayer) local Timer = setTimer Timer(function() sound = playSound("Other/sound.mp3", true) end, 1000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 5000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 6000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.-- s8) -->) end, 6150, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.7)) end, 6250, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.6)) end, 6350, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.5)) end, 6450, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.4)) end, 6550, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.3)) end, 6650, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.2)) end, 6750, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.1)) end, 6850, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0)) end, 6855, 1, true) Timer(function() guiSetVisible(s3d1, false) end, 6900, 1, true) Timer(function() guiSetVisible(s3d2, true) end, 7000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 8895, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 9000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.-- s8) -->) end, 9150, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.7)) end, 9250, 1, true) Timer(function() Link to comment
iPrestege Posted March 17, 2013 Share Posted March 17, 2013 بدل الملف login_panel_c.lua بـ ---------------------------------- -----------| Settings |----------- ---------------------------------- blackLoginScreen = false -- Set to 'true' to display a black screen to the player untill they log in or choose to play as a guest. enableKickPlayer = false -- Set whether to kick the player after they fail to login specified amount of times. ---------------------------------- -- Set the text you want displayed in the "rules" window here - use '\n' to go into the next line infoText = "------ Rules ------ \n\n* No cheating!\n* No insulting and spamming!\n* No vehicle mods\n\nEdit the text however you like\n\n\n\n\n\n\n\nLogin panel by NeXTreme" -- Screen and GUI window sizes function loginPanel() local screenWidth, screenHeight = guiGetScreenSize() mainWidth,mainHeight = 749,472 regWidth,regHeight = 439,344 local left = mainWidth/2 - mainHeight/2 local top = regWidth/2 - regHeight/2 lp = getLocalPlayer() mainWindow = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"Login panel",false) mInfo = guiCreateMemo(21,36,411,278,infoText,false,mainWindow) guiMemoSetReadOnly(mInfo,true) editUsername = guiCreateEdit(53,364,187,25,"",false,mainWindow) guiEditSetMaxLength(editUsername,30) editPassword = guiCreateEdit(53,421,187,25,"",false,mainWindow) guiEditSetMaxLength(editPassword,30) guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(67,330,158,38,"Username:",false,mainWindow) guiLabelSetColor(lblUsername,0,85,255) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) font9 = guiSetFont(lblUsername,"default-bold-small") lblPassword = guiCreateLabel(67,389,158,38,"Password:",false,mainWindow) guiLabelSetColor(lblPassword,0,85,255) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) font8 = guiSetFont(lblPassword,"default-bold-small") btnLogin = guiCreateButton(255,368,242,74,"Login",false,mainWindow) font7 = guiSetFont(btnLogin,"sa-header") btnToggleRegister = guiCreateButton(520,370,206,68,"Register an account",false,mainWindow) font6 = guiSetFont(btnToggleRegister,"default-bold-small") registerWindow = guiCreateWindow(screenWidth/2-regWidth/2,screenHeight/2-regHeight/2,regWidth,regHeight,"Registration",false) editRegistrationUsername = guiCreateEdit(98,138,242,25,"",false,registerWindow) editRegistrationPassword = guiCreateEdit(98,195,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationPassword,true) editRegistrationRepeatPassword = guiCreateEdit(99,252,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationRepeatPassword,true) lblRegister = guiCreateLabel(24,24,391,97,"Register",false,registerWindow) guiLabelSetColor(lblRegister,0,85,255) guiLabelSetVerticalAlign(lblRegister,"center") guiLabelSetHorizontalAlign(lblRegister,"center",false) font5 = guiSetFont(lblRegister,"sa-gothic") lblRUsername = guiCreateLabel(98,113,242,17,"Username:",false,registerWindow) guiLabelSetColor(lblRUsername,0,85,255) guiLabelSetVerticalAlign(lblRUsername,"center") guiLabelSetHorizontalAlign(lblRUsername,"center",false) font4 = guiSetFont(lblRUsername,"default-bold-small") lblRPassword = guiCreateLabel(98,171,242,17,"Password:",false,registerWindow) guiLabelSetColor(lblRPassword,0,85,255) guiLabelSetVerticalAlign(lblRPassword,"center") guiLabelSetHorizontalAlign(lblRPassword,"center",false) font3 = guiSetFont(lblRPassword,"default-bold-small") lblRepeatPassword = guiCreateLabel(98,230,242,17,"Repeat password:",false,registerWindow) guiLabelSetColor(lblRepeatPassword,0,85,255) guiLabelSetVerticalAlign(lblRepeatPassword,"center") guiLabelSetHorizontalAlign(lblRepeatPassword,"center",false) font2 = guiSetFont(lblRepeatPassword,"default-bold-small") btnCancel = guiCreateButton(232,292,179,38,"Cancel",false,registerWindow) font1 = guiSetFont(btnCancel,"default-bold-small") btnConfirmRegistration = guiCreateButton(29,292,179,38,"Confirm & register!",false,registerWindow) font = guiSetFont(btnConfirmRegistration,"default-bold-small") image = guiCreateStaticImage(440,23,300,225,"img/logo.png",false,mainWindow) --- وهنا guiSetVisible(registerWindow, false) guiSetInputMode("no_binds_when_editing") showCursor(true) showChat(false) end function onClick(button,state) if(button == "left" and state == "up") then if (source == btnToggleRegister) then guiSetVisible(registerWindow, true) guiBringToFront(registerWindow) guiSetInputEnabled(true) showCursor(true) elseif (source == btnCancel) then guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) elseif (source == btnPlayAsGuest) then guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) guiSetInputEnabled(false) triggerEvent ( "showWindow", root) outputChatBox("#0000FF* #FFFFFFYou've chosen to play as a #ABCDEFGUEST#FFFFFF!",255,255,255,true) elseif (source == btnConfirmRegistration) then username = guiGetText(editRegistrationUsername) password = guiGetText(editRegistrationPassword) passwordConfirm = guiGetText(editRegistrationRepeatPassword) triggerServerEvent("onRequestRegister",getLocalPlayer(),username,password,passwordConfirm) elseif (source == btnLogin) then username = guiGetText(editUsername) password = guiGetText(editPassword) triggerServerEvent("onRequestLogin",getLocalPlayer(),username,password) end end end addEventHandler("onClientGUIClick",root,onClick) -- Show login window function showLoginWindow() guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) showPlayerHudComponent("all", true) end addEvent("showLoginWindow", true) addEventHandler("showLoginWindow",getRootElement(),showLoginWindow) -- Hide login window function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) showforallteam() end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) -- Hide register window function hideRegisterWindow() guiSetInputEnabled(true) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) showCursor(true) end addEvent("hideRegisterWindow", true) addEventHandler("hideRegisterWindow", getRootElement(), hideRegisterWindow) BACK = guiCreateStaticImage(0,0,1,1,"images/black.png",true) s3d1 = guiCreateStaticImage(0,0,1,1,"images/1.png",true) s3d2 = guiCreateStaticImage(0,0,1,1,"images/2.jpg",true) s3d3 = guiCreateStaticImage(0,0,1,1,"images/3.png",true) guiSetVisible(s3d2, false) guiSetVisible(s3d3, false) triggerServerEvent('onLoadedClient',localPlayer,localPlayer) local Timer = setTimer Timer(function() sound = playSound("Other/sound.mp3", true) end, 1000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 5000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 6000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.-- s8) -->) end, 6150, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.7)) end, 6250, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.6)) end, 6350, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.5)) end, 6450, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.4)) end, 6550, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.3)) end, 6650, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.2)) end, 6750, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.1)) end, 6850, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0)) end, 6855, 1, true) Timer(function() guiSetVisible(s3d1, false) end, 6900, 1, true) Timer(function() guiSetVisible(s3d2, true) end, 7000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 8895, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 9000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.-- s8) -->) end, 9150, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.7)) end, 9250, 1, true) Link to comment
CRoW,,# Posted March 17, 2013 Author Share Posted March 17, 2013 بدل الملف login_panel_c.lua بـ ---------------------------------- -----------| Settings |----------- ---------------------------------- blackLoginScreen = false -- Set to 'true' to display a black screen to the player untill they log in or choose to play as a guest. enableKickPlayer = false -- Set whether to kick the player after they fail to login specified amount of times. ---------------------------------- -- Set the text you want displayed in the "rules" window here - use '\n' to go into the next line infoText = "------ Rules ------ \n\n* No cheating!\n* No insulting and spamming!\n* No vehicle mods\n\nEdit the text however you like\n\n\n\n\n\n\n\nLogin panel by NeXTreme" -- Screen and GUI window sizes function loginPanel() local screenWidth, screenHeight = guiGetScreenSize() mainWidth,mainHeight = 749,472 regWidth,regHeight = 439,344 local left = mainWidth/2 - mainHeight/2 local top = regWidth/2 - regHeight/2 lp = getLocalPlayer() mainWindow = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"Login panel",false) mInfo = guiCreateMemo(21,36,411,278,infoText,false,mainWindow) guiMemoSetReadOnly(mInfo,true) editUsername = guiCreateEdit(53,364,187,25,"",false,mainWindow) guiEditSetMaxLength(editUsername,30) editPassword = guiCreateEdit(53,421,187,25,"",false,mainWindow) guiEditSetMaxLength(editPassword,30) guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(67,330,158,38,"Username:",false,mainWindow) guiLabelSetColor(lblUsername,0,85,255) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) font9 = guiSetFont(lblUsername,"default-bold-small") lblPassword = guiCreateLabel(67,389,158,38,"Password:",false,mainWindow) guiLabelSetColor(lblPassword,0,85,255) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) font8 = guiSetFont(lblPassword,"default-bold-small") btnLogin = guiCreateButton(255,368,242,74,"Login",false,mainWindow) font7 = guiSetFont(btnLogin,"sa-header") btnToggleRegister = guiCreateButton(520,370,206,68,"Register an account",false,mainWindow) font6 = guiSetFont(btnToggleRegister,"default-bold-small") registerWindow = guiCreateWindow(screenWidth/2-regWidth/2,screenHeight/2-regHeight/2,regWidth,regHeight,"Registration",false) editRegistrationUsername = guiCreateEdit(98,138,242,25,"",false,registerWindow) editRegistrationPassword = guiCreateEdit(98,195,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationPassword,true) editRegistrationRepeatPassword = guiCreateEdit(99,252,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationRepeatPassword,true) lblRegister = guiCreateLabel(24,24,391,97,"Register",false,registerWindow) guiLabelSetColor(lblRegister,0,85,255) guiLabelSetVerticalAlign(lblRegister,"center") guiLabelSetHorizontalAlign(lblRegister,"center",false) font5 = guiSetFont(lblRegister,"sa-gothic") lblRUsername = guiCreateLabel(98,113,242,17,"Username:",false,registerWindow) guiLabelSetColor(lblRUsername,0,85,255) guiLabelSetVerticalAlign(lblRUsername,"center") guiLabelSetHorizontalAlign(lblRUsername,"center",false) font4 = guiSetFont(lblRUsername,"default-bold-small") lblRPassword = guiCreateLabel(98,171,242,17,"Password:",false,registerWindow) guiLabelSetColor(lblRPassword,0,85,255) guiLabelSetVerticalAlign(lblRPassword,"center") guiLabelSetHorizontalAlign(lblRPassword,"center",false) font3 = guiSetFont(lblRPassword,"default-bold-small") lblRepeatPassword = guiCreateLabel(98,230,242,17,"Repeat password:",false,registerWindow) guiLabelSetColor(lblRepeatPassword,0,85,255) guiLabelSetVerticalAlign(lblRepeatPassword,"center") guiLabelSetHorizontalAlign(lblRepeatPassword,"center",false) font2 = guiSetFont(lblRepeatPassword,"default-bold-small") btnCancel = guiCreateButton(232,292,179,38,"Cancel",false,registerWindow) font1 = guiSetFont(btnCancel,"default-bold-small") btnConfirmRegistration = guiCreateButton(29,292,179,38,"Confirm & register!",false,registerWindow) font = guiSetFont(btnConfirmRegistration,"default-bold-small") image = guiCreateStaticImage(440,23,300,225,"img/logo.png",false,mainWindow) --- وهنا guiSetVisible(registerWindow, false) guiSetInputMode("no_binds_when_editing") showCursor(true) showChat(false) end function onClick(button,state) if(button == "left" and state == "up") then if (source == btnToggleRegister) then guiSetVisible(registerWindow, true) guiBringToFront(registerWindow) guiSetInputEnabled(true) showCursor(true) elseif (source == btnCancel) then guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) elseif (source == btnPlayAsGuest) then guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) guiSetInputEnabled(false) triggerEvent ( "showWindow", root) outputChatBox("#0000FF* #FFFFFFYou've chosen to play as a #ABCDEFGUEST#FFFFFF!",255,255,255,true) elseif (source == btnConfirmRegistration) then username = guiGetText(editRegistrationUsername) password = guiGetText(editRegistrationPassword) passwordConfirm = guiGetText(editRegistrationRepeatPassword) triggerServerEvent("onRequestRegister",getLocalPlayer(),username,password,passwordConfirm) elseif (source == btnLogin) then username = guiGetText(editUsername) password = guiGetText(editPassword) triggerServerEvent("onRequestLogin",getLocalPlayer(),username,password) end end end addEventHandler("onClientGUIClick",root,onClick) -- Show login window function showLoginWindow() guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) showPlayerHudComponent("all", true) end addEvent("showLoginWindow", true) addEventHandler("showLoginWindow",getRootElement(),showLoginWindow) -- Hide login window function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) showforallteam() end addEvent("hideLoginWindow", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) -- Hide register window function hideRegisterWindow() guiSetInputEnabled(true) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) showCursor(true) end addEvent("hideRegisterWindow", true) addEventHandler("hideRegisterWindow", getRootElement(), hideRegisterWindow) BACK = guiCreateStaticImage(0,0,1,1,"images/black.png",true) s3d1 = guiCreateStaticImage(0,0,1,1,"images/1.png",true) s3d2 = guiCreateStaticImage(0,0,1,1,"images/2.jpg",true) s3d3 = guiCreateStaticImage(0,0,1,1,"images/3.png",true) guiSetVisible(s3d2, false) guiSetVisible(s3d3, false) triggerServerEvent('onLoadedClient',localPlayer,localPlayer) local Timer = setTimer Timer(function() sound = playSound("Other/sound.mp3", true) end, 1000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 5000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.9)) end, 6000, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.-- s8) -->) end, 6150, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.7)) end, 6250, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.6)) end, 6350, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.5)) end, 6450, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.4)) end, 6550, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.3)) end, 6650, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.2)) end, 6750, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0.1)) end, 6850, 1, true) Timer(function() guiSetAlpha(s3d1, tonumber(0)) end, 6855, 1, true) Timer(function() guiSetVisible(s3d1, false) end, 6900, 1, true) Timer(function() guiSetVisible(s3d2, true) end, 7000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 8895, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.9)) end, 9000, 1, true) Timer(function() guiSetAlpha(s3d2, tonumber(0.-- s8) -->) end, 9150, 1, true) Timer(function() Link to comment
MR.S3D Posted March 17, 2013 Share Posted March 17, 2013 السلام عليكم القيم مود حق سعد اذا شغلته تجيك شاشة سودة تخليك م تقدر تلعب ابي اشيلها لا هنتم كيف اشيلها ؟؟ http://www.mediafire.com/?t06pll1swxddc4l تقدر تلعب بعد ماتسجل دخول يصير لك spawn واذا تبيه يطلع شاشه ويكون في لعب عادي قبل التسجيل كلمني Link to comment
CRoW,,# Posted March 17, 2013 Author Share Posted March 17, 2013 السلام عليكم القيم مود حق سعد اذا شغلته تجيك شاشة سودة تخليك م تقدر تلعب ابي اشيلها لا هنتم كيف اشيلها ؟؟ http://www.mediafire.com/?t06pll1swxddc4l تقدر تلعب بعد ماتسجل دخول يصير لك spawn واذا تبيه يطلع شاشه ويكون في لعب عادي قبل التسجيل كلمني ايه ابغاه لعب عادي لاني اشوف الشاشة السودة تطير الاعبين Link to comment
MR.S3D Posted March 17, 2013 Share Posted March 17, 2013 السلام عليكم القيم مود حق سعد اذا شغلته تجيك شاشة سودة تخليك م تقدر تلعب ابي اشيلها لا هنتم كيف اشيلها ؟؟ http://www.mediafire.com/?t06pll1swxddc4l تقدر تلعب بعد ماتسجل دخول يصير لك spawn واذا تبيه يطلع شاشه ويكون في لعب عادي قبل التسجيل كلمني ايه ابغاه لعب عادي لاني اشوف الشاشة السودة تطير الاعبين خش على ملف main تلاقي ملف سيرفر server.lua خشه حط الكود ذا اخر سطر function join(player) spawnPlayer ( player, x, y, z) repeat until setElementModel(player,46) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() join(source) end ) ولاتنسى تحط احداثياتك هنا احداثيات البداية x, y, z 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