Jump to content

#TeKa

Members
  • Posts

    199
  • Joined

  • Last visited

Everything posted by #TeKa

  1. بردو المود سليم ولكن اللوحة ما تبي تظهر
  2. رابط ال client ملاحظة : حاطط الكلنت بس ال meta شيلها الرابط http://up.top4top.net/downloadf-358xmu5e1-rar.html
  3. طيب عملتها ولكن لسا اللوحة ما تظهر
  4. بردو بسجل عادي و ما بتظهر اللوحة ولا شييء في الدي بج
  5. تم حليت بس اللوحة ما تفتح لما اسجل و ما يظهر شييء في الدي بج
  6. السلام عليكم انا عملت لوحة سوال امان اول لما يسجل يظهر له اللوحة بس يجي في الدي بج كذا --debugscript WARING: seciroty/client2.lua:59: is not encoded UTF-8 Laoding as ANSL... و اكواد GUIEditor = { edit = {}, button = {}, window = {}, label = {}, combobox = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(565, 271, 429, 316, "Security Question | سؤال الامان", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.label[1] = guiCreateLabel(10, 25, 415, 30, "(*) يجب وضع سوال الامان لسترجاع شخصيتك في اي وقت ولا تنسي السوال!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 11, 254, 0) GUIEditor.button[1] = guiCreateButton(112, 268, 206, 32, "Set Security", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF00EFFD") GUIEditor.label[2] = guiCreateLabel(328, 290, 97, 13, "bY Fahdalaa", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 252, 0, 0) GUIEditor.combobox[1] = guiCreateComboBox(10, 69, 298, 20, "", false, GUIEditor.window[1]) guiComboBoxAddItem(GUIEditor.combobox[1], "ماذا اسم المدرسة المفضلة لديك") guiComboBoxAddItem(GUIEditor.combobox[1], "ماذا اسم والديك") guiComboBoxAddItem(GUIEditor.combobox[1], "ماذا اسم افضل حيوان الك") guiComboBoxAddItem(GUIEditor.combobox[1], "ما اسم هذا السيرفر") GUIEditor.label[3] = guiCreateLabel(-156, -4, 146, 24, "", false, GUIEditor.combobox[1]) GUIEditor.label[4] = guiCreateLabel(318, 71, 151, 18, "نوع سؤال الامان", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 251, 189, 0) GUIEditor.label[5] = guiCreateLabel(324, 118, 151, 18, "اجابة السؤال .", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 251, 189, 0) GUIEditor.edit[1] = guiCreateEdit(9, 111, 309, 25, "", false, GUIEditor.window[1]) end ) addEventHandler ( "onPlayerLogin",root, function ( ) guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end ) ---EventClick addEventHandler ("onClientGUIClick",root, function () if (source == GUIEditor.button[1]) then guiSetVisible ( GUIEditor.window[1], false ) end end) if fileExists("client.lua") then fileDelete("client.lua") end هذا كلينت الي فوق ملحوظة: انا لسا مبرمجتوش بس عملت الفتح و القفل لسا !
  7. السلام عليكم ء ا1- اليوم عملت كود اول لما اللاعب يسجل يظهر لك تغير التيمات مثل حرب العصابات بس بسجل من لوحة التسجيل و بخش ما بيظهر اي شييء بنزل عادي 2- عايز مساعدة بسرعة عملت كل الي ف جهدي بس مش عايز ينجح .! --Server السيرفر setTeamFriendlyFire(createTeam("Grove", 0, 500, 0 ), false) setTeamFriendlyFire(createTeam("Vagos", 255, 200, 0 ), false) setTeamFriendlyFire(createTeam("Ballas", 128, 0, 128), false) setTeamFriendlyFire(createTeam("Mafia", 154,205,50 ), false) setTeamFriendlyFire(createTeam("Russians", 160,82,45), false) setTeamFriendlyFire(createTeam("Triads", 104,104,104), false) setTeamFriendlyFire(createTeam("Rifa", 250,128,114 ), false) setTeamFriendlyFire(createTeam("Street", 250,128,0 ), false) setTeamFriendlyFire(createTeam("Aztecas", 24, 198, 238), false) setTeamFriendlyFire(createTeam("Medic", 24, 255, 255 ), false) setTeamFriendlyFire(createTeam("Police", 0, 0, 255 ), false) createTeam("No Team", 255, 255, 255) addEvent("spawnMe", true) addEventHandler("spawnMe", root, function(skinID, sX, sY, sZ, sR, team) local team = getTeamFromName(team) spawnPlayer(source, sX, sY, sZ, sR, skinID, 0, 0, team) triggerClientEvent ("onFankijoin", team) setCameraTarget(source) showChat(source, true) end) addEventHandler("onPlayerSpawn", root, function(_, _, _, _, team) local team = team and getTeamName(team) or "N/A" if team == "Police" then giveWeapon(source, 3, 1) takeWeapon(source, 41) elseif team == "Medic" then giveWeapon(source, 41, 9999) takeWeapon(source, 3) else takeWeapon(source, 3) takeWeapon(source, 41) end local account = getPlayerAccount(source) if account and not isGuestAccount(account) then local wData = getAccountData(account, "newPlayerData") if not wData then givePlayerMoney(source, 2500) giveWeapon(source, 23, 20) giveWeapon(source, 31, 50) setAccountData(account, "newPlayerData", true) end end end) -----------------------------------|Medic|----------------------------------- addEvent("healP", true ) addEventHandler("healP", root, function(healer) local Health = getElementHealth(source) if (Health < 99) then local hp = 2*Health if getPlayerMoney(source) >= hp then setElementHealth(source, Health+15) givePlayerMoney(healer, hp) takePlayerMoney(source, hp) exports.TopBarChat:sendClientMessage("You earned $"..hp, healer, 0, 255, 0) end end end) -----------------------------------|EndCode|----------------------------------- --Client كلينت local Anims = {"DAN_UP_A", "dnce_M_b", "DAN_Left_A", "DAN_Down_A", "DAN_Loop_A", "dance_loop"} ----ChangeSystem--- addEvent("onFankijoin", true) addEventHandler("onFankijoin", root, function() showCursor(false) local ped = createPed ( 0,737.40912 ,-1276.15332 ,13.554, 90) setPedAnimation( ped, "ped", "WALK_civi") local cam = setCameraMatrix ( 739.41571044922, -1276.4376220703, 13.415299797058, 738.42529296875, -1276.4196777344, 13.378232955933 ) setElementDimension( localPlayer, 20 ) setElementDimension( ped, 20 ) setTimer (function () setPedAnimation(ped,false) end, 6500, 1) setTimer (function () skinCount = 0 sPed = createPed(105, -2682.7624511719,1148.40100 ,19.59490) addEventHandler("onClientPedDamage",sPed,cancelEvent) sRight() bindKey("arrow_l", "down", sLeft) bindKey("arrow_r", "down", sRight) bindKey("enter", "down", EnterSpawn) addEventHandler("onClientPreRender", root, drawTeamName) destroyElement( ped ) setElementDimension( localPlayer, 0 ) setTime( 12, 0 ) end, 7000, 1) end) local skinTable = { -- skinID, team -- {105, "Grove"}, {106, "Grove"}, {107, "Grove"}, {108, "Vagos"}, {109, "Vagos"}, {110, "Vagos"}, {102, "Ballas"}, {103, "Ballas"}, {104, "Ballas"}, {114, "Aztecas"}, {115, "Aztecas"}, {116, "Aztecas"},{173, "Aztecas"}, {175, "Aztecas"}, {125, "Mafia"}, {126, "Mafia"}, {127, "Mafia"}, {111, "Russians"}, {112, "Russians"}, {113, "Russians"}, {122, "Russians"}, {163, "Triads"}, {164, "Triads"}, {165, "Triads"}, {166, "Triads"}, {158, "Rifa"}, {159, "Rifa"}, {160, "Rifa"}, {161, "Rifa"}, {162, "Rifa"}, {117, "Street"}, {118, "Street"}, {120, "Street"}, {121, "Street"}, {274, "Medic"}, {275, "Medic"}, {276, "Medic"}, {280, "Police"},{281, "Police"}, {282, "Police"}, {283, "Police"}, {284, "Police"}, {286, "Police"}, {288, "Police"}, {206,"No Team"},{202, "No Team"}, {133, "No Team"}, {128, "No Team"}, {189, "No Team"}, {189, "No Team"}, {68, "No Team"},{70, "No Team"}, {80, "No Team"}, {241, "No Team"}, {242, "No Team"}, {252, "No Team"}, {61, "No Team"},{96, "No Team"}, {14, "No Team"}, {19, "No Team"}, {43, "No Team"}, {176, "No Team"}, {292,"No Team"},{293, "No Team"}, {28, "No Team"}, {29, "No Team"}, {200, "No Team"}, {278, "No Team"}, {73, "No Team"},{203, "No Team"}, {50, "No Team"}, {155, "No Team"}, {137, "No Team"}, {235, "No Team"}, {33, "No Team"},{59, "No Team"}, {185, "No Team"}, {264, "No Team"}, {156, "No Team"}, {230, "No Team"}, {234,"No Team"},{253, "No Team"}, {236, "No Team"}, {239, "No Team"}, {240, "No Team"}, {247, "No Team"}, {261,"No Team"},{259, "No Team"}, {183, "No Team"}, {184, "No Team"}, {26, "No Team"}, {7 , "No Team"}, {16, "No Team"}, } setTimer( function() local x,y,z = getElementRotation(sPed) setElementRotation(sPed,x,y,z-5)end,50,0) setElementFrozen(sPed, true) function adjSelectionSetting(team) if team == "Grove" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Vagos" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Ballas" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Mafia" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Russians" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Triads" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Street" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Rifa" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Aztecas" then -- setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Medic" then setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "Police" then setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) updateSetting(team) elseif team == "No Team" then setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setElementPosition(sPed, -2816.92432,1148.40100 ,19.59490) updateSetting(team) end end function updateSetting(team) if team == "Aztecas" then local rand = math.random(1, 3) if rand == 1 then sX, sY, sZ, sR = 338.4, -1344.52, 14, 270 elseif rand == 2 then sX, sY, sZ, sR = 338.4, -1354.52, 14, 507 elseif rand == 3 then sX, sY, sZ, sR = 351.4, -1362.52, 14, 423 end elseif team == "Rifa" then local rand = math.random(1, 2) if rand == 1 then sX, sY, sZ, sR = -2500 ,1072 ,57 ,180 elseif rand == 2 then sX, sY, sZ, sR = -2483 ,1055 ,61 ,180 end elseif team == "Street" then local rand = math.random(1, 3) if rand == 1 then sX, sY, sZ, sR = -1749.3, 865.6, 25.74, 180 elseif rand == 2 then sX, sY, sZ, sR = -1730.3, 862.6, 24.74, 180 elseif rand == 3 then sX, sY, sZ, sR = -1775.3, 860.6, 24.74, 180 end elseif team == "Triads" then local rand = math.random(1, 3) if rand == 1 then sX, sY, sZ, sR = 2394.75391,1941.82422,12 , 270 elseif rand == 2 then sX, sY, sZ, sR = 2444.26904,1941.67981,11 , 270 elseif rand == 3 then sX, sY, sZ, sR = 2483.46411,1941.32874,10 , 270 end elseif team == "Russians" then local rand = math.random(1, 3) if rand == 1 then sX, sY, sZ, sR = 1970.4, 1623.4, 12.87, 270 elseif rand == 2 then sX, sY, sZ, sR = 1975.4, 1620.4, 12.87, 270 elseif rand == 3 then sX, sY, sZ, sR = 1992.4, 1625.4, 12.87, 270 end elseif team == "Mafia" then local rand = math.random(1, 3) if rand == 1 then sX, sY, sZ, sR = 952.85, -915.8, 45.4, 180 elseif rand == 2 then sX, sY, sZ, sR = 971.85, -920.8, 45.4, 180 elseif rand == 3 then sX, sY, sZ, sR = 959.85, -897.8, 45.4, 180 end elseif team == "Ballas" then local rand = math.random(1, 3) if rand == 1 then sX, sY, sZ, sR = 398.9, -1798.6, 7.8, 0 elseif rand == 2 then sX, sY, sZ, sR = 425.9, -1814.6, 6.8, 0 elseif rand == 3 then sX, sY, sZ, sR = 437.9, -1796.6, 5.8, 0 end elseif team == "Vagos" then local rand = math.random(1, 3) if rand == 1 then sX, sY, sZ, sR = 2421.35, -1224, 25.25, 180 elseif rand == 2 then sX, sY, sZ, sR = 2438.35, -1225, 24.25, 180 elseif rand == 3 then sX, sY, sZ, sR = 2403.35, -1223, 25.25, 180 end elseif team == "Grove" then local rand = math.random(1, 3) if rand == 1 then sX, sY, sZ, sR = 2511.7, -1651.8, 13.9, 140 elseif rand == 2 then sX, sY, sZ, sR = 2495.7, -1686.8, 13.9, 140 elseif rand == 3 then sX, sY, sZ, sR = 2486.7, -1651.8, 13.9, 140 end elseif team == "Medic" then local rand = math.random(1, 2) if rand == 1 then sX, sY, sZ, sR = 1183.28, -1333, 13.6, 270 elseif rand == 2 then sX, sY, sZ, sR = 2029, -1419.2, 17, 270 end elseif team == "Police" then local rand = math.random(1, 4) if rand == 1 then sX, sY, sZ, sR = 1567.99, -1692.43, 5.9, 180 elseif rand == 2 then sX, sY, sZ, sR = 1585.2, -1677.7, 5.9, 270 elseif rand == 3 then sX, sY, sZ, sR = 1580.2,-1635.454, 13.56, 90 elseif rand == 4 then sX, sY, sZ, sR = 1552.753, -1675.37, 16.2, 90 end elseif team == "No Team" then local rand = math.random(1, 14) if rand == 1 then sX, sY, sZ, sR = 958.14, -1388.65, 13.4, 180 elseif rand == 2 then sX, sY, sZ, sR = 914.95, -930.72, 42.601, 180 elseif rand == 3 then sX, sY, sZ, sR = 1554.73, -1095.34, 25.1, 300 elseif rand == 4 then sX, sY, sZ, sR = 2097.8, -1368.8, 24, 180 elseif rand == 5 then sX, sY, sZ, sR = 2422.7, -1229.55, 24.9, 180 elseif rand == 6 then sX, sY, sZ, sR = 2864.37, -1365.63, 11, 270 elseif rand == 7 then sX, sY, sZ, sR = 2457.4, -2109.44, 13.55, 0 elseif rand == 8 then sX, sY, sZ, sR = 1754.91, -2064.52, 13.61, 170 elseif rand == 9 then sX, sY, sZ, sR = 1568, -1893.6, 13.56, 0 elseif rand == 10 then sX, sY, sZ, sR = 331.35, -1518.6, 35.87, 230 elseif rand == 11 then sX, sY, sZ, sR = 911.35, -1251.6, 15.87, 230 elseif rand == 12 then sX, sY, sZ, sR = 1530.35, -800.6, 72.87, 230 elseif rand == 13 then sX, sY, sZ, sR = 2029.35, -961.6, 40.87, 230 elseif rand == 14 then sX, sY, sZ, sR = 1877.35, -1376.6, 13.87, 230 elseif rand == 15 then sX, sY, sZ, sR = 1990.35, -1374.6, 23.87, 230 elseif rand == 16 then sX, sY, sZ, sR = 2794, -1945.6, 13.87, 230 elseif rand == 17 then sX, sY, sZ, sR = 1608, -1254.6, 17.87, 230 end end end function sRight() skinCount = skinCount + 1 playSoundFrontEnd(6) createExplosion (-2816.92432,1148.40100 ,19.5, 12 ) if skinCount > #skinTable then skinCount = 1 end skinID, team = unpack(skinTable[skinCount]) adjSelectionSetting(team) setElementModel(sPed, skinID) end function sLeft() skinCount = skinCount - 1 playSoundFrontEnd(14) createExplosion (-2816.92432,1148.40100 ,19.5, 12 ) if skinCount < 1 then skinCount = #skinTable end skinID, team = unpack(skinTable[skinCount]) adjSelectionSetting(team) setElementModel(sPed, skinID) end function EnterSpawn() if (team == "Police") then local wL = getElementData(localPlayer, "WantLvl") or 0 local LegalStatus = getElementData(localPlayer, "LegalStatus") if wL > 0 then exports.TopBarChat:sendClientMessage("You can't join police when you have stars!", 255, 0, 0) return elseif LegalStatus == "Jailed" then exports.TopBarChat:sendClientMessage("You can't join police when you are jailed!", 255, 0, 0) return end end unbindKey("arrow_l", "down", sLeft) unbindKey("arrow_r", "down", sRight) unbindKey("enter", "down", EnterSpawn) showPlayerHudComponent("all", true) removeEventHandler("onClientPreRender", root, drawTeamName) destroyElement(sPed) triggerServerEvent("spawnMe", localPlayer, skinID, sX, sY, sZ, sR, team) end chgTeamOnDeath = false addEventHandler("onClientPlayerWasted", localPlayer, function() updateSetting(team) setTimer(function() triggerServerEvent("spawnMe", localPlayer, skinID, sX, sY, sZ, sR, team) end, 900, 1) if chgTeamOnDeath then setTimer(function() guiSetVisible(GUIEditor.window[1], false) showCursor(false) if not isElement(sPed) then sPed = createPed(105, 2495.20093, -1687.96082, 13.51605) addEventHandler("onClientPedDamage",sPed,cancelEvent) end bindKey("arrow_l", "down", sLeft) bindKey("arrow_r", "down", sRight) bindKey("enter", "down", EnterSpawn) setCameraMatrix(-2814.688,1152.8944091797,21.36700668305,-2815.7495117188,1150.90029297,21) setPedAnimation(sPed, "DANCING", Anims[math.random(1, 6)]) setElementInterior ( getLocalPlayer() , 0 ) setElementDimension ( getLocalPlayer() , 0 ) addEventHandler("onClientPreRender", root, drawTeamName) showPlayerHudComponent("all", false) chgTeamOnDeath = false end, 2050, 1) end end) bindKey("F4", "down", function() if not chgTeamOnDeath then exports.TopBarChat:sendClientMessage("You will be able to change your team and skin when you die.", 0, 255, 255) chgTeamOnDeath = true else exports.TopBarChat:sendClientMessage("Changing team and skin cancelled.", 255, 0, 0) chgTeamOnDeath = false end end) function drawTeamName() setElementPosition(localPlayer, 0, 0, 0) if sPed and team then local teamElement = getTeamFromName(team) if teamElement then local r, g, b = getTeamColor(teamElement) local x, y, z = getPedBonePosition(sPed, 4) local sx, sy = getScreenFromWorldPosition(x, y, z+0.9) if sx and sy then dxDrawText(team, sx + 1, sy + 1, sx + 1, sy + 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") dxDrawText(team, sx + 1, sy - 1, sx - 1, sy + 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") dxDrawText(team, sx - 1, sy - 1, sx - 1, sy - 3, tocolor(0, 0, 0, 255), 1.3, "bankgothic", "center") dxDrawText(team, sx, sy, sx, sy, tocolor(r, g, b, 255), 1.3, "bankgothic", "center") end end end end -----------------------------------|Medic|----------------------------------- addEventHandler("onClientPlayerDamage", localPlayer, function(healer, weapon) if healer and getElementType(healer) == "player" then local team = getPlayerTeam(healer) local teamName = team and getTeamName(team) or false local Health = getElementHealth(source) if (teamName == "Medic") and (weapon == 41) then cancelEvent() if (Health < 99) then triggerServerEvent("healP", localPlayer, healer) end end end end) -----------------------------------|Medic|---------------------------------- ملحوظة : الاكواد كلها مش انا الي عملها ده واحد صحبي بس انا معدل عليها و ضيفلها حاجات .! تصحيح سريع .!
  8. اهو الكود ب لوحة التسجيل function randomimages() return unpack(loginImages[math.random(#loginImages)]) end local randomi = randomimages() local customFontH = guiCreateFont("QTBodiniItalic.ttf", 15) local rx, ry = guiGetScreenSize() local width, height = 1500, 1000 local X = (rx/2) - (width/2) local Y = (ry/2) - (height/2) mainWindow = guiCreateStaticImage(250, 50, 851, 659, "Login/login_window.png", false) guiSetAlpha(Login, 0.70) userimg = guiCreateStaticImage(260, 180, 40, 30, "userimg.png", false, mainWindow) passimg = guiCreateStaticImage(260, 180, 40, 30, "passimg.png", false, mainWindow) editusername = guiCreateStaticImage(260, 180, 310, 50, "Login/editusername.png", false, mainWindow) editpassword = guiCreateStaticImage(260, 278, 310, 50, "Login/editpassword.png", false, mainWindow) usbnos = guiCreateStaticImage(420, 70, 1.5, 458, "S1.png", false, mainWindow) guiSetAlpha(editPassword, 0.55) us1bnos = guiCreateStaticImage(0, 10, 558, 1.5, "S1.png", false, mainWindow) guiSetAlpha(editPassword, 0.55) editUsername = guiCreateEdit(295, 180, 276, 50,"",false,mainWindow) guiSetAlpha(editUsername, 0.45) guiEditSetMaxLength(editUsername,90) guiSetProperty(editUsername, "NormalTextColour", "#000000") editPassword = guiCreateEdit(295, 278, 276, 50,"",false,mainWindow) guiSetAlpha(editPassword, 0.45) guiEditSetMaxLength(editPassword,90) guiSetProperty(editPassword, "NormalTextColour", "#000000") guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(184, 435, 500, 30,"Click Sign In To Create Account",false,mainWindow)--not guiLabelSetColor(lblUsername,255, 255, 255) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) guiSetFont(lblUsername, customFontH) ald = guiCreateLabel(74, 148, 500, 30,"UserName !",false,mainWindow) guiLabelSetVerticalAlign(ald,"center") guiLabelSetHorizontalAlign(ald,"center",false) guiSetFont(ald, customFontH) asmaf = guiCreateLabel(79, 248, 500, 30,"PassWord !",false,mainWindow) guiLabelSetVerticalAlign(asmaf,"center") guiLabelSetHorizontalAlign(asmaf,"center",false) guiSetFont(asmaf, customFontH) lblPassword = guiCreateLabel(180, 339, 505, 38,"Visit Us On @Www.Gta-Tw.com",false,mainWindow)--not guiLabelSetColor(lblPassword,255, 255, 255) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) guiSetFont(lblPassword, customFontH) lblone = guiCreateLabel(171, 72, 500, 30," Server Managers",false,mainWindow)--not guiLabelSetColor(lblone,255, 255, 255) guiLabelSetVerticalAlign(lblone,"center") guiLabelSetHorizontalAlign(lblone,"center",false) guiSetFont(lblone, customFontH) btnLogin = guiCreateStaticImage(270, 385, 310, 50,"images/login.png",false,mainWindow) guiSetFont(btnLogin,font_0) Loginlabell = guiCreateLabel(67, 10, 30, 17, "", false,btnLogin) btnToggleRegister = guiCreateStaticImage(270, 465, 310, 50,"images/register.png",false,mainWindow) guiSetFont(btnToggleRegister,font_0) Registerlabel = guiCreateLabel(61, 10, 47, 15, "", false,btnToggleRegister) labelreg = guiCreateLabel(320, 20, 252, 128, "Gta-Tw Login Panel", false, mainWindow) guiSetFont(labelreg, customFontH) guiLabelSetColor(labelreg, 255,255,255) guiSetProperty(ShowPass, "NormalTextColour", "FF00FF05") Welcomelabels = guiCreateLabel(227, 531, 598, 28, "Welcome To Gta-Tw Mr/Mrs : ".. getPlayerName(localPlayer), false, mainWindow) guiSetFont(Welcomelabels, customFontH) guiLabelSetColor(Welcomelabels, 255, 255, 255) registerWindow = guiCreateStaticImage(0, 0, 1920, 1200, "Login/"..randomi,false) guiWindowSetSizable(registerWindow,false) welcomereglabel = guiCreateLabel(250, 50, 851, 659, "", false, registerWindow) guiSetFont(welcomereglabel, font_0) re = guiCreateStaticImage(250, 50, 851, 659, "Login/register_window.png", false, registerWindow) usnos = guiCreateStaticImage(425, 0, 5, 758, "S1.png", false, re) imageforeditusername = guiCreateStaticImage(58, 88, 195, 39, "S1.png", false, re) userphotos = guiCreateStaticImage(0, 1, 48, 37, "userimg.png", false, imageforeditusername) editRegistrationUsername = guiCreateEdit(48, 3, 144, 32,"",false,imageforeditusername) guiSetAlpha(editRegistrationUsername, 0.55) editpasswordphoto = guiCreateStaticImage(55, 177, 195, 39, "S1.png", false, re) passphotoimage = guiCreateStaticImage(1, 2, 47, 37, "passimg.png", false, editpasswordphoto) editRegistrationPassword = guiCreateEdit(49, 5, 144, 29,"",false, editpasswordphoto) guiSetAlpha(editRegistrationPassword, 0.55) guiEditSetMasked(editRegistrationPassword,true) password2photo = guiCreateStaticImage(58, 264, 195, 39, "S1.png", false, re) passwordimg2repeat = guiCreateStaticImage(0, 0, 48, 38, "passimg.png", false, password2photo) editRegistrationRepeatPassword = guiCreateEdit(49, 4, 144, 32,"",false,password2photo) guiSetAlpha(editRegistrationRepeatPassword, 0.55) guiEditSetMasked(editRegistrationRepeatPassword,true) usre = guiCreateLabel(88, 55, 146, 34, "Username", false, re) guiSetFont(usre, font_0) passwd = guiCreateLabel(88, 147, 141, 33, "Password", false, re) guiSetFont(passwd, font_0) passre = guiCreateLabel(89, 233, 185, 32, "Re-Password", false, re) guiSetFont(passre, font_0) Welcomelabels = guiCreateLabel(209, 531, 598, 28, "To Register New Account Press Sign Up : ".. getPlayerName(localPlayer), false, re) guiSetFont(Welcomelabels, customFontH) guiLabelSetColor(Welcomelabels, 255, 255, 255) btnConfirmRegistration = guiCreateStaticImage(469, 129, 255, 45,"images/register.png",false,re) guiSetFont(btnConfirmRegistration,font_0) aa = guiCreateLabel(67, 10, 30, 17, "", false,btnConfirmRegistration) btnCancel = guiCreateStaticImage(469, 275, 255, 45,"Login/cancel.png",false,re) guiSetFont(btnCancel,font_0) cancellabell = guiCreateLabel(67, 10, 30, 17, "", false,btnCancel) --guiCreateStaticImage(440,23,300,345,"images/logo.png",false,mainWindow) guiSetFont(Lareulse, "default-bold-small") guiMoveElementToCenter(mainWindow) guiLabelSetColor(Lareulse, 251, 201, 3) guiSetAlpha(Sing12, 1) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) addEventHandler("onClientGUIClick",btnLogin,onClickLogin) addEventHandler("onClientGUIClick",btnToggleRegister,onClickRegisterToggle) addEventHandler("onClientGUIClick",btnConfirmRegistration,onClickRegisterConfirm) addEventHandler("onClientGUIClick",btnCancel,onClickCancel) addEventHandler("onRequestIncreaseAttempts",getRootElement(),increaseAttempts) attemptedLogins = 0 xmlUnloadFile(xmlFile) else xmlFileHandler(true) end addEventHandler("onRequestDisplayPanel",getRootElement(),logoutHandler) end --addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),loginPanel ---------------------------------------------------------------------
  9. طب دلوقتي بيقولي طيب حذفتها بس شوف بيقول ايش في الدي بج ERROR: Loading script failed: The&Smile/clientlogin.lua:7775: <eof> expected near 'else'
  10. السلام عليكم دلوقتي المشكلة في ال end و عملت كل شييء ب ايدي بس ما راضي يشتغل الكودات guiSetFont(Lareulse, "default-bold-small") guiMoveElementToCenter(mainWindow) guiLabelSetColor(Lareulse, 251, 201, 3) guiSetAlpha(Sing12, 1) guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) addEventHandler("onClientGUIClick",btnLogin,onClickLogin) addEventHandler("onClientGUIClick",btnToggleRegister,onClickRegisterToggle) addEventHandler("onClientGUIClick",btnConfirmRegistration,onClickRegisterConfirm) addEventHandler("onClientGUIClick",btnCancel,onClickCancel) addEventHandler("onRequestIncreaseAttempts",getRootElement(),increaseAttempts) attemptedLogins = 0 end xmlUnloadFile(xmlFile) else xmlFileHandler(true) end addEventHandler("onRequestDisplayPanel",getRootElement(),logoutHandler) end و بيطلعلي في الدي بج debugscript 3 ERROR: Loading script failed: The&Smile/clientlogin.lua:7772: <eof> expected near 'end' عشان مفيش حد يسئلي هات اكواد سطر 7772 الاكواد الي فوق دي هيا بتاعت 7772
  11. السلام عليكو ابي الفنكشن الي يخلي مثلا انا عامل لوحة تسجيل صورة ابي الفنكشن الي يخليها ما يظهر الكاميرا و يعطيك شاشة سودا ما يظهر اي شييء لي التوضيح مثلا ساعات بعمل لوحة بتظهر اللوحة و بشوف اللعبة من جوه مو عطيني شاشة سودا استنا الرد منكم و شكرا لكم جميعا !
  12. لاء هو جيم مود يظهر اللوحة و وراها شاشة سودا ما يظهر الكاميرا وش المشكلة ؟؟
  13. شوف انا ضفت الكود تبع الكاميرا الي كونا بنصلح فيه من شوي و عملت اول لما لوحة التسجيل تظهر يظهر اللوحة و عملت ترايجر مبين الكلنت و السيرفر كلنت اهو ---Client function showLoginWindow() guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showChat(false) triggerServerEvent ("onFahdJoin", localPlayer) end addEvent("showLoginWindow", true) addEventHandler("showLoginWindow",getRootElement(),showLoginWindow) و هو ده السيرفر ---سيرفر ---ماقدرت احط اكواد اللوحة عشان دي خاصة بيسيرفري addEvent("onFahdJoin",true) addEventHandler("onFahdJoin",root, function () fadeCamera ( client , true , 5 ) setCameraMatrix ( client , 2528.7255859375, -1681.6027832031, 89.986701965332, 2529.5256347656, -1681.5174560547, 89.392822265625 ) end ) --
  14. بدلتها يا اخوي بس الكاميرا ما تظهر ليش
  15. بوص شوف في تصحيح كود تبع لوحة فعلتو هل فيه اخطاء ولا لاء function showLoginWindow() guiSetVisible(mainWindow, true) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) triggerServerEvent ("onFahdJoin", showLoginWindow) end addEvent("showLoginWindow", true) addEventHandler("showLoginWindow",getRootElement(),showLoginWindow)
  16. شكرا لك حبيبي تسلم لو يمكن تعطيني اسم فيسك
  17. شوف انا حاططها في الكلنت بس ما اشتغلت بردو addEventHandler ("onPlayerLogin", function (source) setCameraTarget(source) end )
  18. طب دلوقتي انا صلحتها بس محتاج فنكشن لما يجي يسجل ب حساب الكاميرا تتشال
  19. السلام عليكم انا سويت كود اول لما اجي اخش السيرفر يظهر لي الكاميرا بس لما اجي اخش مش بيظهر الكاميرا بنزل عادي اي المشكلة ب الظبط ؟؟ function fahd() fadeCamera(source, true, 5) setCameraMatrix(source, 2528.7255859375, -1681.6027832031, 89.986701965332, 2529.5256347656, -1681.5174560547, 89.392822265625 ) end addEventHandler("onPlayerJoin", root, fahd)
  20. السﻻم عليكم انا مقدرش اطرح الاكواد لن ده قيم مود شرية جديد بس المشكلة ان بعد الانترو يروح يجي لوحة التسجيل اجي احرك الماويس ما يظهر الصراحة مشكلة مدوخاني عاوز حد يطرح الاكواد الي تسبب في اخفاء االماويس و انا هشلها
  21. كفوووووووو انت بطل يسطا
  22. كلنت local anzar = createMarker (-711,957,12.382266998291, "cylinder", 1.5, 200,100,100,150) createBlipAttachedTo(anzar,56) --- bindKey ("tab","down",function () if isElementWithinMarker(localPlayer, anzar ) then playSound("anzar.mp3") end end) ميتا اسم الصوت anzar المشكله انك ماكنت ضايف الصوت بملف الميتا شكرا ليك اشتغل
×
×
  • Create New...