Jump to content

#_MR.MoSHaKS

Members
  • Posts

    44
  • Joined

  • Last visited

Everything posted by #_MR.MoSHaKS

  1. انا ماقدر لا اطفي السيرفر ولا اشغله يطلع لي كذا Unknown
  2. انشاء الله مايروح شيء # وانشاء الله يستفيدو من تقفيلة الاستضافة ماتروح ع الفاضي وتتهكر يوم ثاني ههههههههه
  3. طيب عندي سؤآل , ؟! السيرفرات راح تنحدف ولا نفس ماهي ؟؟ والمودات وكذا يعني ..!
  4. مشكووووور برستيج ماقصصرت !! تمت الافادهـ Thanx
  5. لاكن ذا موجود بنفس الكود حق فتح النافذهـ guiSetVisible(GUIEditor.window[1],false)
  6. السلام عليكم ورحمةة الله وبركاتهه # أبي تصحيح لهذا الكود حق اللوحةة # مشكلةة الكود انه اول ما اشغل المود تطلع لي اللوحة ولازم اعص على الزر الي انا حددته حق فتح اللوحة علشان تختفي اللوحةة ارجوا حل المششكلةة هذا الكود ذذ ------------------ -- open Window ------------------ outputChatBox("-",0,150,255,true) guiSetVisible(GUIEditor.window[1],false) bindKey ( "F2" , "down" , function() if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor.window[1] ) == false ) then guiSetVisible ( GUIEditor.window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end )
  7. السلآآم عليكم ورحمةة الله وبركآته ابي اعرف كود لما ادخل السيرفر واختار جيم الحرب + كود لما اختار جيم معين يطفي مود ويشغل مود ثآأني تطفي المودات مثل: الفري روم والاشياء الي تطلع بالخريطةة تآأبع المودآأت ولما اختار جيم الهجولةة تشتغل كلهآأ
  8. bindKey كدا ؟ gate = createObject(980,135.19999694824,1941.3000488281,21,0,0,0) function opendoor() moveObject (gate, 5000, 144.19999694824, 1941.0999755859, 21 ) end binKay ("F1","down",opendoor) function closedoor() moveObject (gate, 5000, 135.19999694824, 1941.5, 21 ) end bindKay ("F2",down",closedoor)
  9. اسف شباب ادري القسم غلط توني منتبه
  10. السلام عليكم ابي تعديل الكود هدا gate = createObject(980,135.19999694824,1941.3000488281,21,0,0,0) function opendoor() moveObject (gate, 5000, 144.19999694824, 1941.0999755859, 21 ) end addCommandHandler("close1", opendoor) function closedoor() moveObject (gate, 5000, 135.19999694824, 1941.5, 21 ) end addCommandHandler("open1", closedoor) ابي البوابة تفتح وتسكر بزر مثلا تاب و لما اللاعب يعص على الزر تفتح البوابة ولما يطلع منها تتسكر و نفس الشيء لما يدخل يعني ما يحتاج يعص على الزر مرة ثانية علشان تتسكر
  11. للتنبيه فقط تسلم عـ التنبيهـ
  12. سويت الكود بس شكلي جبت العيد ض1 تعال خاص ارسله لك ض2
  13. السلام عليكم بغيت كود تغيير خط الازرار حق اللوحة انا عندي كود لاكن يغير خط ازرار الفري روم فقط لاكن باقي المودات مايغيرها وجربت كود ثاني نفس الشيء
  14. طيب حطها بصيغة lua علشان ادخل عليها واعرف وظائفها
  15. function assignNewTeam ( source, commandName, teamName ) local theTeam = createTeam ( D ) -- create a new team with the specified name if theTeam then -- if it was successfully created setPlayerTeam ( source, theTeam ) -- add the player to the new team end end addCommandHandler ( "gimmeateam", assignNewTeam ) function unassignTeam ( source, commandName ) local theTeam = getPlayerTeam ( source ) -- Check if the player is on a team if theTeam then -- this player is on a team, so we can remove them from it setPlayerTeam ( source, nil ) -- remove the player from the current team end end addCommandHandler ( "takeawaymyteam", unassignTeam ) كوبي = بست هدا من الويكي
  16. function assignNewTeam ( source, commandName, teamName ) local theTeam = createTeam ( D ) -- create a new team with the specified name if theTeam then -- if it was successfully created setPlayerTeam ( source, theTeam ) -- add the player to the new team end end addCommandHandler ( "gimmeateam", assignNewTeam ) function unassignTeam ( source, commandName ) local theTeam = getPlayerTeam ( source ) -- Check if the player is on a team if theTeam then -- this player is on a team, so we can remove them from it setPlayerTeam ( source, nil ) -- remove the player from the current team end end addCommandHandler ( "takeawaymyteam", unassignTeam )
  17. طيب انا لما اسوي تيم واحطه فيه واسوي تاج لما يخلص تحميله يرجع حاله حال الزائر العادي يعني
  18. السلام عليكم استفسار عن كود في بعض السيرفرات الي يدخل وعنده تحميل يطلع قبل اسمه Download وبعدين لما يخلص تحميله يطلع قبل اسمه الي انا اختاره من التاج هدا كود ولا من نفس التاج ؟
  19. يعين لازم اسويه من جديد طيب
  20. ver = "v3.0" rRoot = getResourceRootElement(getThisResource()) local root = getRootElement() local Key = "F4" local DimentionHajwlah = 0 local DimentionGang = 1 Teams = { -- here all team name {"Grove", 0, 255, 0}, {"Aztecas", 0, 150, 255}, {"Police", 0, 50, 255}, {"Ballas", 255, 0, 150}, {"No Team", 255, 255, 255}, {"Medic", 6, 183, 248}, {"Drift", 255, 255, 0}, } --Spawn spawnLocations = { --- team, x, y, z ----- ["Grove"] = {2498.77856, -1680.38623, 13.35946}, ["Aztecas"] = {1756.07324, -1928.89209, 13.57651}, ["Police"] = {1586.31616, -1690.74158, 6.21875}, ["Ballas"] = {2206.17603, -1175.95288, 25.72656}, ["No Team"] = {902.20544, -1210.40332, 16.97656}, ["Medic"] = {2031.23291, -1408.93445, 16.99886}, ["Drift"] = {-3666.40087, -3008.73535, 49.00781}, -- Hajwalah } local function set(plr, data, bole) if not isElement(plr) then return end return setElementData(plr, data, bole) end local function get(plr, data) if not isElement(plr) then return end return getElementData(plr, data) end addEventHandler("onResourceStart", resourceRoot, function() setGameType("GameMode Drift,wars v3.0") outputChatBox(".:[ GameMode ]:. " .. ver .. "", root, 0, 255, 0, true) setTimer(OutPut, 50, 1, ".:[ GameMode ]:By MR.ONe " .. ver .. "", root, 0, 255, 0) for _,theTeam in ipairs(Teams) do createTeam(theTeam[1], theTeam[2], theTeam[3], theTeam[4]) end for _,AllTeams in ipairs(getElementsByType("team")) do if getTeamFriendlyFire(AllTeams) == true then setTeamFriendlyFire(AllTeams, false) end end setTeamFriendlyFire(getTeamFromName("No Team"), true) setTeamFriendlyFire(getTeamFromName("Drift"), true) for i,v in ipairs(getElementsByType("player")) do bindKey(v, Key, "down", "changeTeame") setElementData(v, "OnJoinFirstSpawn", false) end setElementData(rRoot,"maxPlayer",getMaxPlayers()) end ) addEventHandler("onResourceStop", resourceRoot, function() local players = getElementsByType("player") for k,v in ipairs(players) do set(v, "hjwalah", false) set(v, "Grove", false) set(v, "Aztecs", false) set(v, "Police", false) set(v, "Ballas", false) set(v, "noTeam", false) set(v, "Medic", false) set(v, "GameModeActive", false) end end ) addEvent("onLoadedClient", true) addEventHandler("onLoadedClient", root, function(player) versionDisplay = textCreateDisplay() local versionText = textCreateTextItem(".:[ Game Mode ]:. By MR.ONe| " .. ver .. "]:.", 0.975, 0.02, "medium", 255, 0, 0, 255, 1.1, "right") textDisplayAddText(versionDisplay, versionText) textDisplayAddObserver(versionDisplay, player) setElementData(player, "CancleFirstSpawn", true) playSoundFrontEnd(player, 16) OutPut("The download was successful|", player, 255, 255, 0) setElementData(player, "OnJoinFirstSpawn", false) end ) addEventHandler("onPlayerJoin", root, function() showTextForPlayer ( source, 6000, 255, 0, 0, 1.5, "Wlecom To Server Drift & Gang Wars") showTextForPlayer1 ( source, 6000, 255, 0, 0, 1.5, "Please wait to download all server resources....!") setCameraMatrix(source,512.2, -1263.57, 32.53,542.16, -1287.07, 17.24) end ) addEventHandler("onPlayerSpawn", root, function() checkWeapon(source) end ) function checkWeapon(player) setTimer(function(player) if isElement(player) then if getElementData(player, "Police") == true then giveWeapon(player, 3) end else takeWeapon(player, 3) end end, 800, 1, player) end addEvent("onClientWantsToSpawn", true) addEventHandler("onClientWantsToSpawn", getRootElement(), function(player, ID, TeamName) setElementData(player, "TeamName", TeamName) setElementData(player, "ID", ID) if TeamName == "Grove" then GroveTeam(player) elseif TeamName == "Aztecas" then AztecsTeam(player) elseif TeamName == "Police" then PoliceTeam(player) elseif TeamName == "Ballas" then Ballas(player) elseif TeamName == "No Team" then NoTeam(player) elseif TeamName == "Medic" then MedicTeam(player) elseif TeamName == "Drift" then hjwalah(player) end end ) function checkWeapon(player) setTimer(function(player) if isElement(player) then if getElementData(player, "Police") == true then giveWeapon(player, 3) end else takeWeapon(player, 3) end end, 800, 2, player) end function onSelectTeam(player) if not isElement(player) then return end local playerTeam = getPlayerTeam(player) showTextForPlayer(player, 5000, 255, 0, 0, 1.5, "You have been assigned to team [" .. tostring(getTeamName(playerTeam)) .. "]") OutPut("To return to spawn press["..Key.."]", player, 255, 255, 255) local playeraccount = getPlayerAccount(player) if playeraccount and not isGuestAccount(getPlayerAccount(player)) then if getElementData(player, "hjwalah") == true then return false end if getElementData(player, "wasgied") == true then return false end setElementData(player, "wasgied", true) local weap0 = getAccountData(playeraccount, "s.weap0") local weap1 = getAccountData(playeraccount, "s.weap1") local weap2 = getAccountData(playeraccount, "s.weap2") local ammo2 = getAccountData(playeraccount, "s.ammo2") local weap3 = getAccountData(playeraccount, "s.weap3") local ammo3 = getAccountData(playeraccount, "s.ammo3") local weap4 = getAccountData(playeraccount, "s.weap4") local ammo4 = getAccountData(playeraccount, "s.ammo4") local weap5 = getAccountData(playeraccount, "s.weap5") local ammo5 = getAccountData(playeraccount, "s.ammo5") local weap6 = getAccountData(playeraccount, "s.weap6") local ammo6 = getAccountData(playeraccount, "s.ammo6") local weap7 = getAccountData(playeraccount, "s.weap7") local ammo7 = getAccountData(playeraccount, "s.ammo7") local weap8 = getAccountData(playeraccount, "s.weap8") local ammo8 = getAccountData(playeraccount, "s.ammo8") local weap9 = getAccountData(playeraccount, "s.weap9") local ammo9 = getAccountData(playeraccount, "s.ammo9") local weap10 = getAccountData(playeraccount, "s.weap10") local weap11 = getAccountData(playeraccount, "s.weap11") local weap12 = getAccountData(playeraccount, "s.weap12") local wanted = getAccountData(playeraccount, "WantedLevel") if tonumber(wanted) then setPlayerWantedLevel(player, wanted) elseif tonumber(weap0) then giveWeapon(player, weap0, 1) elseif tonumber(weap1) then giveWeapon(player, weap1, 1) elseif tonumber(weap2) and tonumber(ammo2) then giveWeapon(player, weap2, ammo2) elseif tonumber(weap3) and tonumber(ammo3) then giveWeapon(player, weap3, ammo3) elseif tonumber(weap4) and tonumber(ammo4) then giveWeapon(player, weap4, ammo4) elseif tonumber(weap6) and tonumber(ammo5) then giveWeapon(player, weap5, ammo5) elseif tonumber(weap6) and tonumber(ammo6) then giveWeapon(player, weap6, ammo6) elseif tonumber(weap7) and tonumber(ammo7) then giveWeapon(player, weap7, ammo7) elseif tonumber(weap8) and tonumber(ammo8) then giveWeapon(player, weap8, ammo8) elseif tonumber(weap9) and tonumber(ammo9) then giveWeapon(player, weap9, ammo9) elseif tonumber(weap10) then giveWeapon(player, weap10, 30) elseif tonumber(weap11) then giveWeapon(player, weap11, 30) elseif tonumber(weap12) then giveWeapon(player, weap12, 10) end end checkWeapon(player) end function camera(plr) if not isElement(plr) then return end setTimer(fadeCamera, 50, 1, plr, false, 1) setTimer(fadeCamera, 100, 1, plr, true, 3) setCameraTarget(plr, plr) showChat(plr, true) end addEventHandler("onPlayerSpawn", root, function() setElementData(source, "FristTimeSpawn", false) bindKey(source, Key, "down", "changeTeame") setElementData(source, "WasChangeTeam", false) end ) Change = false addCommandHandler("changeTeame", function(plr) if getElementData(plr, "WasChangeTeam") == false then setElementData(plr, "ChangeTeam", true) OutPut("The team will change after you die", plr, 255, 0, 255) setTimer(cancleTeam, 1700, 1, plr) setElementData(plr, "WasChangeTeam", true) else OutPut("Change the team has been canceled", plr, 255, 255, 0) setElementData(plr, "ChangeTeam", false) setElementData(plr, "WasChangeTeam", false) end Change =
  21. حطيت كودك في ملف سيرفر مازبط
×
×
  • Create New...