Jump to content

ghassen14

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by ghassen14

  1. يعيني مابات ديث ماتش زي التكتيك
  2. السلام عليكم شباب ابي كود الكود هذا عن فرق يعني كل فريق يرسبن في مكان group1 في مكان group2 في مكان و يتقاتلون و شكرا
  3. الكود ماباقي له شيء رح جربه ورد خبر ذذذذ ما اشتغل وين الخطأ GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(457, 229, 641, 616, "Login Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(22, 99, 146, 69, "Login", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") GUIEditor.button[2] = guiCreateButton(23, 245, 145, 73, "Register", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") GUIEditor.memo[1] = guiCreateMemo(205, 109, 155, 41, "", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(405, 109, 155, 41, "", false, GUIEditor.window[1]) GUIEditor.memo[3] = guiCreateMemo(206, 267, 155, 41, "", false, GUIEditor.window[1]) GUIEditor.memo[4] = guiCreateMemo(405, 267, 155, 41, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(215, 221, 127, 36, "Username", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "clear-normal") GUIEditor.button[4] = guiCreateButton(410, 221, 127, 36, "Passworld", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "clear-normal") GUIEditor.button[5] = guiCreateButton(215, 63, 127, 36, "Username", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(423, 63, 127, 36, "Passworld", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(23, 349, 109, 28, "Updates", false, GUIEditor.window[1]) GUIEditor.memo[5] = guiCreateMemo(16, 387, 615, 219, "My Updates Here", false, GUIEditor.window[1]) end ) function ClickRegister() if ( source == btnregister ) then local UserName = guiGetText ( GUIEditor.memo[3] ) -- ايدت الاسم local Password = guiGetText ( GUIEditor.memo[4] ) -- ايدت الباس triggerServerEvent ( "ClickRegistern",localPlayer,UserName,Password ) end end addEventHandler("onClientGUIClick", resourceRoot, ClickRegister)
  4. باقي المقبلات . ما فهمت
  5. 'onClientGUIClick' guiGetText triggerServerEvent getAccount logIn ------ register 'onClientGUIClick' guiGetText triggerServerEvent getAccount addAccount وش احط في client و server
  6. السلام عليكم شباب اليوم اطلب منكم اكواد register and login و ارجوكم قولولي الكودات الclient و server و شكرا جزيلا
  7. client addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[2]) then triggerServerEvent ( "Usi", localPlayer ) end end ) +اعطيني سكايبك
  8. شباب وين الخطأ انا لما اضغط الزر ما اشتغل addEvent( "Usi", true ) addEventHandler ( "Usi", root, function ( ) if ( getPlayerMoney ( source ) >= 100 ) then takePlayerMoney ( source, 100 ) giveWeapon ( source , 28, 10000 ) setPedWeaponSlot ( source, getSlotFromWeapon ( 28) ) outputChatBox ( "* " .. getPlayerName ( source ) .. " Has Bought Weapon [ Usi ]", root, 255, 255, 255, true ) else outputChatBox ( "* You don't have $4000 to buy [ Usi ]", source, 255, 255, 255, true ) end end )
  9. السلام عليكم شباب ابي كود لما يضغط زر يعطيه سلاح و شكرا شباب
  10. شكرا جزيلا اخي حللت كل مشاكلي
  11. شبااب ايش يعني هذا الكلام WARNING: Not loading resource 'mod' as it contains illegal characters WARNING: Not loading resource 'Login Panel' as it contains illegal characters
  12. السلام عليكم شبااب ابي كود تسجيل الدخول و login register وين اعطهم في client او server.lua و كود زر التشغيل و شكرا
  13. السلام عليكم اليوم جيت اقلكم اي واحد يعرف قنات في اليوتيوب تعلم الرمجة كل ولحد يحط قناة ض1 الي القاء و عيدكم مبارك
  14. اخوااااني انا عملت الوحة بالقيد ايديتور بس + انا جديد في البرمجة قلت ساعدوني مو هات رايك يعني من وين اجيب الأكواد الي تجتغل و من وين اجيب الأكواد
  15. السلام عليكم انا قمت بعمل لوحة تسجيل الدخول و حطيت الكود و ما اشتغل وش الخطأ GUIEditor = { button = {}, window = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(457, 229, 641, 616, "Login Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(22, 99, 146, 69, "Login", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "sa-header") GUIEditor.button[2] = guiCreateButton(23, 245, 145, 73, "Register", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "sa-header") GUIEditor.memo[1] = guiCreateMemo(205, 109, 155, 41, "", false, GUIEditor.window[1]) GUIEditor.memo[2] = guiCreateMemo(405, 109, 155, 41, "", false, GUIEditor.window[1]) GUIEditor.memo[3] = guiCreateMemo(206, 267, 155, 41, "", false, GUIEditor.window[1]) GUIEditor.memo[4] = guiCreateMemo(405, 267, 155, 41, "", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(215, 221, 127, 36, "Username", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "clear-normal") GUIEditor.button[4] = guiCreateButton(410, 221, 127, 36, "Passworld", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "clear-normal") GUIEditor.button[5] = guiCreateButton(215, 63, 127, 36, "Username", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(423, 63, 127, 36, "Passworld", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(23, 349, 109, 28, "Updates", false, GUIEditor.window[1]) GUIEditor.memo[5] = guiCreateMemo(16, 387, 615, 219, "My Updates Here", false, GUIEditor.window[1]) end ) unction registerPlayer ( source, commandName, password ) -- Check if the password field is blank or not (only blank if they didnt enter one) if ( password ~= "" and password ~= nil ) then --Attempt to add the account, and save its value in a var local accountAdded = addAccount( getPlayerName(source), password ) if ( accountAdded ) then -- Tell the user all is done outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source ) else -- There was an error making the account, tell the user outputChatBox ( "Error creating account, contact the server admin", source ) end else -- There was an error in the syntax, tell the user the correct syntax. outputChatBox ( "Error creating account, correct syntax: /register ", source ) end end addCommandHandler ( "register", registerPlayer ) -- add the command handler function loginPlayer ( thePlayer, command, username, password ) local account = getAccount ( username, password ) -- Return the account if ( account ~= false ) then -- If the account exists. logIn ( thePlayer, account, password ) -- Log them in. else outputChatBox ( "Wrong username or password!", thePlayer, 255, 255, 0 ) -- Output they got the details wrong. end end addCommandHandler ( "log-in", loginPlayer ) -- Make it trigger for "/log-in", NOTE: /login is hardcored and cannot be used. unction funcInput ( player, key, keyState ) local state = "let go of" if ( keyState == "down" ) then state = "pressed" end outputChatBox ( getPlayerName ( player) .. " " .. state .. " the " .. key .. " key!" ) end function bindTheKeys ( player, commandName ) bindKey ( player, "F1", "down", funcInput ) -- bind the player's F1 down key bindKey ( player, "F1", "up", funcInput ) -- bind the player's F1 up key bindKey ( player, "fire", "both", funcInput ) -- bind the player's fire down and up control end addCommandHandler ( "bindme", bindTheKeys )
  16. السلام عليكم انا مبرمج جديد ابي اعرف ايش هية server.lua , client.lua , meta وش اهميتهم في المود ؟ وش اكتب فيهم بضبت ساعدوني
×
×
  • Create New...