-
Posts
2,013 -
Joined
-
Last visited
Everything posted by iMr.SFA7
-
هذا لآنك ما سويت شيء يقفل اللوحة المفروض تسوي ترايقر من السيرفر للكلنت وتخفيها !! -- Client Side GUIEditor = { edit = {}, button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(186, 86, 456, 374, "Server Zombie [H.S] سيرفر قوات الزومبي", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0, -121, 146, 37, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(17, 32, 158, 34, "UserName :", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(17, 99, 130, 33, "PassWord :", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(84, 32, 125, 18, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(-232, 154, 170, 75, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(79, 99, 120, 18, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(19, 142, 118, 57, "Login", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(11, 240, 96, 30, "Name :", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(13, 287, 94, 38, "Password :", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(52, 240, 127, 20, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(72, 288, 126, 20, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(78, 318, 116, 46, "Register", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(340, 20, 106, 344, "Wellcome To Server Professionals Zombie ...\n\n\nProngram :\n\n1- Hassan\n\n2 - soon\n\n3 - soon\n\n4 - soon\n=======", false, GUIEditor.window[1]) end ) ---------------------- addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then local UserName1 = guiGetText ( GUIEditor.edit[1] ) local PassWord1 = guiGetText ( GUIEditor.edit[2] ) if ( UserName1 ~= "" and PassWord1 ~= "" ) then triggerServerEvent ( "Register", localPlayer, Username1, Password1 ) elseif ( source == GUIEditor.button[2] ) then local UserName = guiGetText ( GUIEditor.edit[3] ) local PassWord = guiGetText ( GUIEditor.edit[4] ) if ( UserName ~= "" and PassWord ~= "" ) then triggerServerEvent ( "Login", localPlayer, Username, Password ) end end end end ) addEvent("show",true) addEventHandler("show",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end ) -- Server Side addEvent("Login",true) addEventHandler("Login",getRootElement(), function (Username,Password) local account = getAccount(Username,Password) if ( account ) then logIn(source,account,Password) triggerClientEvent(source,"show",source) else outputChatBox("* Worng Username Or Password",source,255,0,0) end end ) addEvent("Register",true) addEventHandler("Register",getRootElement(), function (Username1,Password1) local account = getAccount(Username1,Password1) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) else addAccount(Username1,Password1) outputChatBox("UserName: " .. Username1 .. " PassWord : " .. Password1,source,0,150,255) end end )
-
الآسل محذوف ^
-
هذا الحدث مو للأزرار بس + ماحط تحقق اذا ضغطه سطر 3 اها قصدك اذا حدد ع الشيك بوكس ؟ سوي تحقق انه السورس هو الشيك بوكس if ( source == GUIEditor.checkbox[2] ) then
-
حط بدل elseif == else وليه حاط ذا الحدث ؟ كيف يضغطه وهو مقفول ؟
-
قصدك شيك بوكس ؟ guiCheckBoxGetSelected guiSetEnabled
-
addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then UserName1 = guiGetText ( GUIEditor.edit[1] ) PassWord1 = guiGetText ( GUIEditor.edit[2] ) if ( UserName1 ~= "" and PassWord1 ~= "" ) then triggerServerEvent ( "Register", localPlayer, Username1, Password1 ) elseif ( source == GUIEditor.button[2] ) then UserName = guiGetText ( GUIEditor.edit[3] ) -- اسم الأيدت الاول PassWord = guiGetText ( GUIEditor.edit[4] ) -- اسم الأيدت الثاني if ( UserName ~= "" and PassWord ~= "" ) then triggerServerEvent ( "Login", localPlayer, Username, Password ) end end end end )
-
صحيح بدل كود الضغط ع الزر بذا addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then UserName1 = guiGetText ( GUIEditor.edit[1] ) PassWord1 = guiGetText ( GUIEditor.edit[2] ) if ( UserName1 ~= "" and PassWord1 ~= "" ) then triggerServerEvent ( "Register", localPlayer, Username1, Password1 ) elseif ( source == GUIEditor.button[2] ) then UserName = guiGetText ( GUIEditor.edit[3] ) -- اسم الأيدت الاول PassWord = guiGetText ( GUIEditor.edit[4] ) -- اسم الأيدت الثاني if ( UserName ~= "" and PassWord ~= "" ) then triggerServerEvent ( "Login", localPlayer, Username, Password ) end end end )
-
no description https://community.multitheftauto.com/in ... ls&id=6225 DONE
-
أستخدم كودي الي طرحته وشف يجي خطأ بالدي بق ولالا !
-
مشكلته ناسخ كود التسجيل وما حط اسماء الاديت كوده يصير كذا !! -- Client Side GUIEditor = { edit = {}, button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(186, 86, 456, 374, "Server Zombie [H.S] سيرفر قوات الزومبي", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0, -121, 146, 37, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(17, 32, 158, 34, "UserName :", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(17, 99, 130, 33, "PassWord :", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(84, 32, 125, 18, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(-232, 154, 170, 75, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(79, 99, 120, 18, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(19, 142, 118, 57, "Login", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(11, 240, 96, 30, "Name :", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(13, 287, 94, 38, "Password :", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(52, 240, 127, 20, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(72, 288, 126, 20, "", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(78, 318, 116, 46, "Register", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(340, 20, 106, 344, "Wellcome To Server Professionals Zombie ...\n\n\nProngram :\n\n1- Hassan\n\n2 - soon\n\n3 - soon\n\n4 - soon\n=======", false, GUIEditor.window[1]) end ) ---------------------- addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[1] ) then UserName1 = guiGetText ( GUIEditor.edit[1] ) PassWord1 = guiGetText ( GUIEditor.edit[2] ) if ( UserName1 ~= "" and PassWord1 ~= "" ) then triggerServerEvent ( "Register", localPlayer, Username1, Password1 ) elseif ( source == GUIEditor.button[2] ) then UserName = guiGetText ( GUIEditor.edit[3] ) -- اسم الأيدت الاول PassWord = guiGetText ( GUIEditor.edit[4] ) -- اسم الأيدت الثاني if ( UserName ~= "" and PassWord ~= "" ) then triggerServerEvent ( "Login", localPlayer, Username, Password ) end end ) -- Server side addEvent ( "Register", true ) addEventHandler ( "Register", root, function ( Username1, Password1 ) local AccountAdded = addAccount ( Username1, Password1 ) if ( AccountAdded ) then outputChatBox ( "لقد نجحت في تسجيل الدخول في سيرفر قوات الزومبي حياككك الله", source, 255, 255, 255, true ) else outputChatBox ( "لم يتم تسجيل الدخول تحقق من معلومات حسابك او هذا الحساب موجود بالفعل", source, 255, 0, 0, true ) end end ) addEvent ( "Login", true ) addEventHandler ( "Login", root, function ( Username, Password ) local Account = getAccount ( Username, Password ) local Logined = logIn ( source, Account, Password ) if ( Logined ) then outputChatBox ( "تم التسجيل بنجاح", source, 255, 255, 255, true ) else outputChatBox ( "لم يتم تسجيل الدخول تحقق من معلومات حسابك او هذا الحساب موجود بالفعل", source, 255, 0, 0, true ) end end )
-
بالكلنت لاحظ متغيراتك حقت أنشاء الاديت والمتغيرات المحطوطة بوظيفة الترايقر
-
طيب انت ليه حاط الوظيفتين بزر واحد ايش تبي تسوي بالضبظ ؟
-
مشكلتك في التسجيل ولا تسجيل الدخول ولا وين ؟ ؟
-
playerb = {} addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[3] then local name = guiGridListGetItemText( GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) if name ~= "" then local playern = getPlayerFromName(tostring(name)) playerb = createBlipAttachedTo(playern,48) elseif source == GUIEditor.button[3] then if isElement(playerb) then setTimer( destroyElement(playerb), 1000, 1 ) end end end end )
-
عليكم السلام حياكك الله منورنا وين هالغيبة الصراحة الله يعينك ي أماراتي مقدرين ظروفكك
-
آمم صحيح جربته ع نفسي ع العموم -- Client Side addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == bilz ) then local bilb = guiGetText(Edit) if ( bilb ~= " " ) then triggerServerEvent("bilz", localPlayer, bilb) end end end ) -- Server Side function getPlayerFromSerial ( serial ) if serial and type(serial) == "string" then for i, v in ipairs(getElementsByType("player")) do if getPlayerSerial(v) == serial then return v end end end return false end addEvent ( "bilz", true ) addEventHandler ( "bilz", root, function ( bilb ) local Player = getPlayerFromSerial ( bilb ) if ( Player ) then createBlipAttachedTo ( Player , 19 ) end end )
-
addEventHandler('onClientPlayerWasted',root, function ( ) local x,y,z = getElementData(getLocalPlayer(),'x'),getElementData(getLocalPlayer(),'y'),getElementData(getLocalPlayer(),'z') setTimer(function ( ) setElementPosition (localPlayer,x,y,z) end ,2000, 1 ) end )
-
الكود مجربه وشغال مافيه اي شيء !!
-
"onPlayerWasted" -- جيب القاتل الي هو الكيلير destroyElement createBlipAttachedTo حآول تسويه وبسآعدككـ !!
-
ممكن تتفضل وتقول آيش الخطأ فيها يالحلو ؟
