Jump to content

кιηg-αвα∂у

Members
  • Posts

    396
  • Joined

  • Last visited

Everything posted by кιηg-αвα∂у

  1. -- server addEvent("fix", true) addEventHandler("fix",root, function () local vehicle = getPedOccupiedVehicle ( source ) if vehicle then fixVehicle ( vehicle ) end end)
  2. local progress = guiCreateProgressBar( 0.8, 0.8, 0.1, 0.1, true) render = function() if guiProgressBarGetProgress(progress) >= 100 then outputChatBox("Welcome To The Server", 255, 0, 0) elseif guiProgressBarGetProgress(progress) < 100 then guiProgressBarSetProgress(progress,guiProgressBarGetProgress(progress)+1) end end addEventHandler('onClientResourceStart',root,function() setTimer( render, 1000, 10 ) end) اذا تبي تغير الحجم ولا المكان كذا element guiCreateProgressBar ( float x, float y, float width, float height, bool relative, [element parent = nil] )
  3. تسلم اخي ذا الانا كنت عايزو local progress = guiCreateProgressBar( 0.8, 0.8, 0.1, 0.1, true) render = function() if guiProgressBarGetProgress(progress) >= 100 then removeEventHandler('onClientRender',root,render) outputChatBox("Welcome To The Server", 255, 0, 0) end guiProgressBarSetProgress(progress,guiProgressBarGetProgress(progress)+1) end addEventHandler('onClientRender',root,render) بس في شغله ما فاهمها ممكن تساعدني طيب انت ماحددت تبي البروجرس يطلع اول مايدخل الاعب ولا متى ؟
  4. انت تبي واحد جاهز ولا تبي تعرف كيف تضبط الأسل ؟؟
  5. شوف هذا الموضوع viewtopic.php?f=160&t=87206
  6. Client Side Timer = setTimer( function() if not isTransferBoxActive() then setElementData(localPlayer,'DownloadFinish',true) if isTimer(Timer) then killTimer(Timer) end end end,1000,0) Server Side exports.scoreboard:addScoreboardColumn('tag') addEventHandler("onPlayerChat",root, function (msg,type) local name = getElementData(source,"tag") or getPlayerName(source) local acc = getAccountName(getPlayerAccount(source)) if ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("Console")) ) then cancelEvent() outputChatBox("[ Server Owner ] " .. name .. " : #ffffff" .. msg,root, math.random(0,255), math.random(0,255), math.random(0,255), true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("Admin")) ) then cancelEvent() outputChatBox("#ff0000* [ Admin ]" .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("Head.Admin")) ) then cancelEvent() outputChatBox("#ff0000* [ Head.Admin ]" .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("Big.Admin")) ) then cancelEvent() outputChatBox("#ff0000* [ Big.Admin ]" .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("SuperModerator")) ) then cancelEvent() outputChatBox("#00ff00* [ SuperModerator ] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("lvl 1")) ) then cancelEvent() outputChatBox("#330033* [ʟɛʋɛʟ.1] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("lvl 2")) ) then cancelEvent() outputChatBox("#7D1B7E* [ʟɛʋɛʟ.2] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("lvl 3")) ) then cancelEvent() outputChatBox("#827B60* [ʟɛʋɛʟ.3] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("lvl 4")) ) then cancelEvent() outputChatBox("#E78A61* [ʟɛʋɛʟ.4] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("lvl 5")) ) then cancelEvent() outputChatBox("#15317E* [ʟɛʋɛʟ.5] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("Moderator")) ) then cancelEvent() outputChatBox("#0069c7* [ Moderator ] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 and isObjectInACLGroup("user." .. acc,aclGetGroup("V.I.P")) ) then cancelEvent() outputChatBox("#999999* [ V.I.P ] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) elseif ( type == 0 ) then if ( getElementData(source,'DownloadFinish') ) then cancelEvent() outputChatBox("" .. name .. " : #ffffff" .. msg,root,255,0,0,true) else cancelEvent() outputChatBox("* [ Downloader ] " .. name .. " : #ffffff" .. msg,root,255,0,0,true) end end end )
  7. "onPlayerTarget" -- اذا صوبت getElementHealth -- تجيب دم الاعب وتتحقق setPedAnimation -- يستسلم attachElements -- يلحقك createMarker -- تسوي ماركر setElementVisibleTo -- تخلي الي يشوف الماركر الخاطف والمخطوف "onMarkerHit" -- لما توقف على الماركر getElementAttachedTo -- تجيب المخطوف عن طريق الخاطف الي وقف على الماركر detachElements -- تفصله setElementPosition -- تحطه في مكان المخطوفين setAccountData -- تحط انه صاحب هذا الحساب مخطوف onPlayerJoin -- لما يدخل الاعب getAccountData -- يتحقق اذا كان مخطوف او لا spawnPlayer -- تحطه في مكان المخطوفين -- اذا تببي دفع المبلغ زر onClientGUIClick triggerServerEvent -- اذا تبيه زر من لوحة المفاتيح bindKey -- اذا تبيه كلمة في اف8 addCommandHandler getPlayerMoney -- تجيب فلوس الاعب تتحقق اذا يقدر يدفع ولآ takePlayerMoney -- تسحب الفلوس setAccountData -- تشيل الخطف من حسابه setElementPosition -- تنقله خارج مكان الخطف givePlayerMoney -- لتعطي الخاطف فلوس -- طبعاً تحدد الخاطف بداتا او الي تبي حاول وحنا بنساعدك
  8. "onPlayerTarget" -- اذا صوبت getElementHealth -- تجيب دم الاعب وتتحقق setPedAnimation -- يستسلم attachElements -- يلحقك createMarker -- تسوي ماركر setElementVisibleTo -- تخلي الي يشوف الماركر الخاطف والمخطوف "onMarkerHit" -- لما توقف على الماركر getElementAttachedTo -- تجيب المخطوف عن طريق الخاطف الي وقف على الماركر detachElements -- تفصله setElementPosition -- تحطه في مكان المخطوفين setAccountData -- تحط انه صاحب هذا الحساب مخطوف onPlayerJoin -- لما يدخل الاعب getAccountData -- يتحقق اذا كان مخطوف او لا spawnPlayer -- تحطه في مكان المخطوفين -- اذا تببي دفع المبلغ زر onClientGUIClick triggerServerEvent -- اذا تبيه زر من لوحة المفاتيح bindKey -- اذا تبيه كلمة في اف8 addCommandHandler getPlayerMoney -- تجيب فلوس الاعب تتحقق اذا يقدر يدفع ولآ takePlayerMoney -- تسحب الفلوس setAccountData -- تشيل الخطف من حسابه setElementPosition -- تنقله خارج مكان الخطف givePlayerMoney -- لتعطي الخاطف فلوس -- طبعاً تحدد الخاطف بداتا او الي تبي حاول وحنا بنساعدك
  9. local lights = { "High Quality", "Blue Doom", "Blue Estrellas", "Blue Flecha", "Blue Neon HQ", "Blue Oblique", "Blue X", "Colored", "Green FFS", "Green Mustang", "Green Onda", "Green Paradise", "Grey Audi I", "MEME Derp HQ", "MEME Me Gusta HQ", "MEME Troll HQ", "Orange Cupido", "Orange Led", "Orange Lines", "Pink Dots", "Purple I", "Purple II", "Red Alfa Romeo", "Red Alien", "Red Angry Mouth", "Red Angry Shape", "Red Audi I", "Red Audi II", "Red Audi III", "Red BMW I", "Red BMW II", "Red BMW M5", "Red Canibus", "Red Chevrolet Malibu", "Red Citroen Survolt", "Red Cupido", "Red Curve", "Red Curves HQ", "Red Dino", "Red Double Oval", "Red Double Ring", "Red Double Ring Led", "Red Double Rounded Restangles HQ", "Red Double Stripes", "Red Fast Line", "Red FFS", "Red Infiniti Electric", "Red KIA", "Red Lamborghini", "Red Lexus", "Red Lines", "Red Metropolis", "Red Mustang", "Red Passat", "Red Peugeot", "Red Rhombus", "Red Ring", "Red Sexy", "Red Slanted Stripes", "Red Spray", "Red Subaru", "Red The N", "Red The X", "Red The Y", "Red Triangles", "Red Triple Stripes", "Red Volkswagen", "Violet Lilac", "White Slanted Stripes", "White Snake" } local shaders = {} local currentLight = "high quality" local drawLights = true addEventHandler("onClientResourceStart",resourceRoot, function () currentLight = getCookieOption("lights") or "high quality" setElementData(localPlayer,"vehiclelight",currentLight,true) if getCookieOption("draw") ~= "false" then for i,vehicle in ipairs (getElementsByType("vehicle")) do loadVehicleLights(vehicle) end end end ) addEventHandler("onClientElementStreamIn",root, function () if getElementType(source) == "vehicle" then loadVehicleLights(source) end end ) addEventHandler("onClientVehicleEnter",root, function () loadVehicleLights(source) end ) function loadVehicleLights (vehicle) local controller = getVehicleController(vehicle) if not controller then return end local image = getElementData(controller,"vehiclelight") if not image then return end if not shaders[image] then local texture = dxCreateTexture("images/"..image..".jpg","dxt3") local shader = dxCreateShader("lights.fx") dxSetShaderValue(shader,"gTexture",texture) shaders[image] = shader end engineApplyShaderToWorldTexture(shaders[image],"vehiclelights128",vehicle) engineApplyShaderToWorldTexture(shaders[image],"vehiclelightson128",vehicle) -- needs messing with alpha end function unloadVehicleLights (vehicle) local controller = getVehicleController(vehicle) if not controller then return end local image = getElementData(controller,"vehiclelight") if not image then return end engineRemoveShaderFromWorldTexture(shaders[image],"vehiclelights128",vehicle) engineRemoveShaderFromWorldTexture(shaders[image],"vehiclelightson128",vehicle) end function saveChanges (btn) if btn ~= "left" then return end if guiCheckBoxGetSelected(drawlightsCheckBox) ~= drawLights then local drawlights = guiCheckBoxGetSelected(drawlightsCheckBox) if drawlights then for i,vehicle in ipairs (getElementsByType("vehicle")) do loadVehicleLights(vehicle) end else for i,vehicle in ipairs (getElementsByType("vehicle")) do unloadVehicleLights(vehicle) end for name,shader in pairs (shaders) do destroyElement(shader) shaders[name] = nil end end setCookieOption("draw",tostring(drawlights)) end local image = guiComboBoxGetItemText(lightsComboBox,guiComboBoxGetSelected(lightsComboBox)) if image ~= currentLight then currentLight = image setElementData(localPlayer,"vehiclelight",image) setCookieOption("lights",image) end guiSetVisible(lightsWindow,false) showCursor(false) end function closeWindow (btn) if btn ~= "left" then return end guiStaticImageLoadImage(previewStaticImage,"images/"..currentLight..".jpg") guiSetVisible(lightsWindow,false) showCursor(false) end function changeLights () local image = guiComboBoxGetItemText(lightsComboBox,guiComboBoxGetSelected(lightsComboBox)) guiStaticImageLoadImage(previewStaticImage,"images/"..image..".jpg") end addEventHandler("onClientElementDataChange",root, function (key,oldvalue) if key == "vehiclelight" then local vehicle = getPedOccupiedVehicle(source) if vehicle then loadVehicleLights(vehicle) end end end ) --GUI: function startGui () lightsWindow = guiCreateWindow (200, 70, 400, 450, "Vehicle Lights", false) guiSetAlpha (lightsWindow, 1) guiWindowSetSizable (lightsWindow, false) guiCreateLabel (15, 40, 380, 20, "Lights:", false, lightsWindow) guiCreateLabel (15, 140, 380, 20, "Preview:", false, lightsWindow) lightsComboBox = guiCreateComboBox (25, 60, 350, 160, "Default", false, lightsWindow) for i,light in ipairs (lights) do local id = guiComboBoxAddItem (lightsComboBox,light) if light == currentLight then guiComboBoxSetSelected(lightsComboBox,id) end end addEventHandler("onClientGUIComboBoxAccepted",lightsComboBox,changeLights) drawlightsCheckBox = guiCreateCheckBox (15, 90, 380, 20, "Draw lights", true, false, lightsWindow) previewStaticImage = guiCreateStaticImage (25, 160, 350, 220, "images/"..currentLight..".jpg", false, lightsWindow) local saveChangesButton = guiCreateButton (25, 400, 150, 30, "Save", false, lightsWindow) local closeWindowButton = guiCreateButton (225, 400, 150, 30, "Close", false, lightsWindow) addEventHandler("onClientGUIClick",saveChangesButton,saveChanges,false) addEventHandler("onClientGUIClick",closeWindowButton,closeWindow,false) end bindKey('F3','down', function () if lightsWindow then guiSetVisible(lightsWindow,not guiGetVisible(lightsWindow)) showCursor(guiGetVisible(lightsWindow)) else showCursor (true) startGui() end end)
  10. http://community.multitheftauto.com/ind ... ls&id=3032 http://community.multitheftauto.com/ind ... ls&id=4820
  11. مقدمة في البرمجة https://wiki.multitheftauto.com/wiki/Sc ... troduction باللغة العربية https://wiki.multitheftauto.com/wiki/Sc ... troduction
  12. تابل هو جرب على الكود الخطأ ماعطيته الكود بعد التعديل صاحب الموضوع جرب ذا time = {} function Countdown (player, cmd) if isTimer(time[player]) then return end time[player] = setTimer(function() time[player] = nil end,30000,1) local name = getPlayerName(player) local r,g,b = getPlayerNametagColor (player) local accountname = getAccountName (getPlayerAccount(player)) outputChatBox ( "" .. name .. ": #2600FF start countdown!!!", getRootElement(), r, g, b, true ) outputChatBox ( "#2600FF ===3===", getRootElement(), 255, 255, 255, true ) triggerClientEvent("triggerclientforGridCountdown", getRootElement()) setTimer ( Countdown5, 1000, 1 ) end function Countdown5 ( root ) outputChatBox ( "#2600FF ===2===", getRootElement(), 255, 255, 255, true ) setTimer ( Countdown4, 1000, 1 ) end function Countdown4 ( root ) outputChatBox ( "#2600FF ===1===", getRootElement(), 255, 255, 255, true ) setTimer ( Countdown3, 1000, 1 ) end function Countdown3 ( root ) outputChatBox ( "#2600FF Go Go Go!!!", getRootElement(), 255, 255, 255, true ) setTimer ( Countdown2, 1000, 1 ) end addCommandHandler( "countdown", Countdown )
  13. انا جربت كلآم البندر في اكثر من سيرفر جاني كيك وماتوقع احد بيحمي كل الحسابات اكيد حساب ادمن
  14. Image Name PID Session Name Session# Mem Usage ========================= ======== ================ =========== ============ System Idle Process 0 Services 0 20 K System 4 Services 0 80 K smss.exe 436 Services 0 628 K csrss.exe 564 Services 0 3,528 K wininit.exe 620 Services 0 2,504 K services.exe 716 Services 0 7,268 K lsass.exe 724 Services 0 9,600 K svchost.exe 840 Services 0 6,388 K svchost.exe 904 Services 0 7,208 K svchost.exe 968 Services 0 21,900 K svchost.exe 268 Services 0 122,060 K svchost.exe 464 Services 0 16,160 K svchost.exe 712 Services 0 44,348 K svchost.exe 1084 Services 0 13,004 K AvastSvc.exe 1228 Services 0 73,676 K afwServ.exe 1336 Services 0 13,036 K spoolsv.exe 1520 Services 0 9,200 K svchost.exe 1548 Services 0 18,472 K dasHost.exe 1300 Services 0 12,984 K hamachi-2.exe 1032 Services 0 5,292 K rlservice.exe 2136 Services 0 3,752 K slsvc.exe 2308 Services 0 788 K svchost.exe 2332 Services 0 4,744 K PersonalizeEnabler.exe 2448 Services 0 816 K ToolbarUpdater.exe 2504 Services 0 7,092 K loggingserver.exe 2800 Services 0 1,780 K conhost.exe 2808 Services 0 1,076 K taskeng.exe 3060 Services 0 3,052 K svchost.exe 2848 Services 0 2,604 K svchost.exe 2496 Services 0 12,648 K OptimizerPro.exe 2388 Services 0 2,120 K svchost.exe 3564 Services 0 13,380 K SearchIndexer.exe 3720 Services 0 31,224 K WmiPrvSE.exe 4376 Services 0 14,580 K dllhost.exe 4956 Services 0 2,960 K wmpnetwk.exe 2516 Services 0 8,652 K csrss.exe 7768 Console 2 10,044 K winlogon.exe 5136 Console 2 5,952 K dwm.exe 7136 Console 2 39,248 K taskhostex.exe 4716 Console 2 10,940 K explorer.exe 7008 Console 2 98,684 K rlvknlg.exe 6824 Console 2 46,600 K LiveComm.exe 4732 Console 2 7,788 K unsecapp.exe 5516 Console 2 7,188 K rlvknlg64.exe 5840 Console 2 4,220 K rlvknlg32.exe 4464 Console 2 4,732 K hkcmd.exe 7268 Console 2 7,848 K igfxpers.exe 6752 Console 2 8,712 K RuntimeBroker.exe 1288 Console 2 5,352 K IDMan.exe 492 Console 2 17,348 K Skype.exe 696 Console 2 100,540 K Steam.exe 7016 Console 2 99,876 K sidebar.exe 3312 Console 2 45,768 K coin-miner.exe 6932 Console 2 8,688 K conhost.exe 5096 Console 2 3,856 K audiodg.exe 4440 Services 0 8,676 K msnmsgr.exe 3164 Console 2 16,852 K vprot.exe 7088 Console 2 23,072 K AvastUI.exe 6288 Console 2 7,880 K wlcomm.exe 2688 Console 2 22,272 K SteamService.exe 5704 Services 0 10,284 K chrome.exe 2844 Console 2 168,700 K chrome.exe 824 Console 2 103,584 K chrome.exe 1572 Console 2 46,656 K chrome.exe 6096 Console 2 100,076 K chrome.exe 4332 Console 2 48,380 K chrome.exe 3384 Console 2 51,980 K chrome.exe 5768 Console 2 46,620 K chrome.exe 5628 Console 2 49,668 K chrome.exe 8116 Console 2 79,160 K cmd.exe 6600 Console 2 2,620 K conhost.exe 3840 Console 2 7,688 K tasklist.exe 4948 Console 2 6,088 K
  15. function move() GATE = createObject(980, x,y,z,0,0,90)-- نسوي باب -حط الاحداثيات GATEmove(1) end function GATEmove(position) if position == 1 then moveObject(GATE, 3000, x,y,z) -- المكان الي تبي الباب يتحرك له setTimer(GATEmove, 120000+120000, 1, 2) elseif position == 2 then moveObject(GATE, 3000, x,y,z)-- بعد دقيقتين يرجع لنفس المكان حط الاحداثيات setTimer(GATEmove, 120000+120000, 1, 1) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), move)
  16. داخل مود الريس racevoting_server.lua ملف ضيف هذا الكود voteRedo = function(value) if ( value == true ) then local currentMap = exports.mapmanager:getRunningGamemodeMap() if currentMap then outputChatBox('#00aaff* #ECECECCurrent map #00aaffhas been #ECECECrestarted #00aaffby #ECECEC [ VoteRedo ]', g_Root, 236, 236, 236, true) if not exports.mapmanager:changeGamemodeMap (currentMap, nil, true) then problemChangingMap() end else outputChatBox("#00aaff* #FF0000You can't restart the map because no map is running", g_Root,236, 236, 236, true) end else outputChatBox("#00aaff* #ff0000Vote Cancelled [ VoteRedo ]", g_Root, 255, 255, 255, true) end end وضيف في الميتا تبع الريس function="voteRedo" type="server" /> كذا تكون ضبطت الريس للريدو باقي تسوي التصويت اذا كانت نتيجة التصويت صحيحة exports.race:voteRedo(true) اذا العكس exports.race:voteRedo(false) بالنسبة لمود التصويت https://wiki.multitheftauto.com/wiki/Re ... otemanager
  17. https://wiki.multitheftauto.com/wiki/OnMarkerHit givePlayerMoney getElementType getPlayerTeam getTeamName getAttachedElements
  18. اي بهذي الطريقة تجيب المبلغ كامل و tonumber تستخدمها اذا بتستخدم + - * / % ^ # == ~= <= >= < > =
  19. الطلقة الوحدة بـ100 دولآ Ak-47 مثلآ تبي تبيع edit = guiCreateEdit( ... ) -- تسوي اديت يكتب فيه عدد الطلقات button = guiCreateButton( ... ) -- تسوي زر الشراء ه لما يضغط على زر الشراء كيف تجيب السعر ؟؟ local ammount = guiGetText( edit ) -- تجيب عدد الرصاص local ammount = tonumber(ammount) * 100 -- تضرب عدد الرصاص في السعر وراح يطلع لك المبلغ الكامل -- كود الشراء تكمله هنا ذذ
  20. الأول يتحقق انه الأديت مو فاضي يعني مكتوب فيه اي شي مو فاضي الثانية الرقم الي في الأديت يضربه في 100
  21. شفت كود بس ما اعرف اذا شغال وشفته مركب client GUIEditor_Window = {} GUIEditor_Marker = {} GUIEditor_Button = {} GUIEditor_Grid = {} vehicleId = {562,411,565,503,431,522,571,487,469} GUIEditor_Marker[1] = createMarker( 2062.3999023438, -2870.3999023438, 11, 'cylinder', 1.5, 0, 0, 255, 255 ) GUIEditor_Marker[2] = createMarker( 1692.1005859375, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) GUIEditor_Marker[3] = createMarker( 1697.5015869141, 936.51446533203, 76.365867614746, 'cylinder', 1.5, 0, 0, 255, 255 ) local groupName = 'GHOST' local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Vehicles And Aircraft List",false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(10,25,184,244,false,GUIEditor_Window[1]) column = guiGridListAddColumn( GUIEditor_Grid[1], 'vehiceName', 0.80 ) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"الغاء",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"اختيار",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) for i,id in ipairs ( vehicleId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromID( id ), false, false ) end addEventHandler ("onClientMarkerHit", root, function( player ) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' and not isPedInVehicle( player ) and player == localPlayer and getElementData ( player , "Group" ) == groupName then for i,v in ipairs( GUIEditor_Marker ) do if ( source == v ) then x999,y999,z999 = getElementPosition( localPlayer ) if z999 < 80 and z999 > 74 then setPedFrozen ( localPlayer, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) end end end end end ) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) setPedFrozen ( localPlayer, false ) elseif ( source == GUIEditor_Button[2] ) then local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) triggerServerEvent('gvoa', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setPedFrozen ( localPlayer, false ) showCursor( false ) end end ) server AircraftIdSpawn = { { 1632.2233886719, 1072.5324707031, 78.613006591797 }, { 1659.8581542969, 1072.5324707031, 78.612922668457 }, { 1683.9832763672, 1072.5324707031, 78.611885070801 }, { 1704.2257080078, 1072.5324707031, 78.611885070801 } } abady1 = createMarker( 1710.7998,986,76.5, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) abady2 = createMarker( 1774.09998,974.09998,6.7, 'cylinder', 1.7000000476837, 0, 0, 0, 0 ) abady3 = createMarker( 1654.6380615234, 947.18682861328, 79.218444824219, 'arrow', 1.5, 255, 0, 0, 255 ) abady4 = createMarker( 2196.8364257813, -1204.4274902344, 1050.0234375, 'arrow', 1.5, 255, 0, 0, 255 ) setElementInterior ( abady4, 6 ) setElementDimension ( abady4, 1219 ) abady5 = createMarker( 1665.0239257813, 948.65478515625, 77.218444824219, 'cylinder', 1.3, 255, 0, 0, 255 ) abady6 = createObject( 980, 1618.5, 1017, 79.099998474121, 0, 0, 90 ) abady6_1 = createMarker( 1618.5, 1017, 79.099998474121, 'cylinder', 5, 0, 0, 0, 0 ) createBlip( 1665.8670654297, 1004.8731689453, 80.699996948242, 23 ) local groupName = 'GHOST' output = function( text, element, r, g, b, vaule ) exports["guimessages"]:outputServer(element, text, r, g, b) end function start() ob = createObject(7981, 1662, 1005, 74.699996948242, 0, 0, 0) mm() end addEventHandler('onResourceStart', resourceRoot, start) function mm() moveObject(ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) setTimer(moveObject, 5000, 0, ob, 5000, 1662, 1005, 74.699996948242, 0, 0, 500) end addEventHandler('onMarkerHit', root, function( hPlayer ) if ( source == abady1 ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1779.6077880859, 974.29040527344, 7.1151790618896 ) return end setElementPosition( hPlayer, 1779.6077880859, 974.29040527344, 7.1151790618896 ) else output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) end elseif ( source == abady2 ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 1705.3963623047, 985.94622802734, 77.365867614746 ) return end setElementPosition( hPlayer, 1705.3963623047, 985.94622802734, 77.365867614746 ) else output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) end elseif ( source == abady3 ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then setElementPosition( hPlayer, 2195.4248046875, -1203.8707275391, 1049.0234375 ) setElementInterior ( hPlayer, 6 ) setElementDimension ( hPlayer, 1219 ) output( getPlayerName( hPlayer ) .. ' Welcome at the home of ' .. groupName, hPlayer, 0, 255, 0, false ) end elseif ( source == abady4 ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then setElementPosition( hPlayer, 1654.9460449219, 951.95379638672, 78.218444824219 ) setElementInterior ( hPlayer, 0 ) setElementDimension ( hPlayer, 0 ) output( getPlayerName( hPlayer ) .. ' See You', hPlayer, 0, 255, 0, false ) end elseif ( source == abady5 ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then if isPedInVehicle( hPlayer ) then setElementHealth( hPlayer, 100 ) setPedArmor ( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) return end setElementHealth( hPlayer, 100 ) setPedArmor ( hPlayer, 100 ) end elseif ( source == abady6_1 ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then moveObject( abady6, 4000, 1618.5, 1026, 79.099998474121 ) end end end ) addEventHandler('onMarkerLeave', abady6_1, function( hPlayer ) if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then moveObject( abady6, 4000, 1618.5, 1017, 79.099998474121 ) end end ) addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), function(player,seat) if getElementData( player, 'Group' ) == groupName and getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' then return end if seat == 0 then output("Group " .. groupName .. " Only", player, 255, 0, 0, true) cancelEvent() end end ) onAbadyWasted = function() if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then function sp( source ) setElementPosition( source, 2192.7319335938, -1216.6350097656, 1049.0234375 ) setElementInterior ( source, 6 ) setElementDimension ( source, 1219 ) end setTimer(sp,1000,1,source) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onAbadyWasted ) TableCars = {} addEvent('gvoa', true) addEventHandler('gvoa', root, function( nameCar ) if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end local id = getVehicleIDFromName( nameCar ) if id == 487 or id == 469 then local x, y, z = unpack( AircraftIdSpawn[math.random(#AircraftIdSpawn)] ) TableCars[source] = createVehicle( id, x, y, z ) if not TableCars[source] then return end warpPedIntoVehicle ( source, TableCars[source] ) return end local x,y,z = getElementPosition( source ) TableCars[source] = createVehicle( id, x, y, z ) if not TableCars[source] then return end warpPedIntoVehicle ( source, TableCars[source] ) addVehicleUpgrade(TableCars[source], 1147) addVehicleUpgrade(TableCars[source], 1041) addVehicleUpgrade(TableCars[source], 1035) addVehicleUpgrade(TableCars[source], 1010) addVehicleUpgrade(TableCars[source], 1087) addVehicleUpgrade(TableCars[source], 1171) addVehicleUpgrade(TableCars[source], 1149) setVehiclePaintjob(TableCars[source], 1) end ) addEventHandler('onPlayerQuit', root, function() if isElement( TableCars[source] ) then destroyElement( TableCars[source] ) end end ) القسم النسب وش هو؟ انا الصراحة دفعت مليونين بسيرفر حتى يبرمجلوي مقري وقررت افك البرمجة واعمل لوحة تانية :@ وجربت وبرمجت بيت + ماركر دم ودرع + ماركر نقل احسن ما ادفع :@ مليونين كل مرة من وين جايبه ><
  22. local chat addCommandHandler bindKey getElementsByType getDistanceBetweenPoints3D outputChatBox
×
×
  • Create New...