Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. مافهمت قصدي انت انا قصدي مثلا عندي ايديت وزر والزر ذة اشتري منه سلاح طيب الايديت اكتب فيه عدد الطلقات مثلا كتبت 20 طلقة يزود سعر السلاح ويصير ب 100
  2. آلسلام عليكم ابي فنكشنات مثلا عندي ايديت وزر اذا كتبت في الايديت عدد الطلقات سرع السلاح يرتفع اكثر يعني كل مثلا كتبت في الايديت 5 طلقات مثلا يصير السعر 10 او ادا كتبت 50 طلقة يصير السعر 500
  3. اكتب في اف 8 debugscript 3
  4. GUIEditor = { button = {}, window = {}, label = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(373, 168, 494, 438, "M.5||M.5", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.72) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF10EFBD") guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.button[1] = guiCreateButton(66, 114, 173, 60, "الــيــزر", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFDFA01") GUIEditor.button[2] = guiCreateButton(66, 216, 173, 60, "لـوحةة آلـششيلآت", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF36D300") GUIEditor.label[1] = guiCreateLabel(26, -184, 313, 49, "", false, GUIEditor.button[2]) GUIEditor.button[3] = guiCreateButton(66, 318, 173, 60, "قريبآآآ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFCD040E") GUIEditor.button[4] = guiCreateButton(261, 114, 173, 60, "ارسآل الفلوووسء", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF20B72") GUIEditor.button[5] = guiCreateButton(261, 216, 173, 60, "قوانين السيرفر", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], "default-bold-small") guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF4102D0") GUIEditor.button[6] = guiCreateButton(261, 318, 173, 60, "قريبآآآ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFAF02C8") GUIEditor.label[2] = guiCreateLabel(146, 36, 318, 50, "=======================", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 244, 247, 43) end ) bindKey ( "F6", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) local dots = {} CMD_LASER = "laser" CMD_LASERCOLOR = "lasercolor" laserWidth = 2 dotSize = .05 localPlayer = getLocalPlayer() picklasercolor = 0 colorPickerInitialized = 0 oldcolors = {r=255,g=0,b=0,a=255} addEventHandler("onClientResourceStart", root, function(res) if res == getThisResource() then outputChatBox("", 245,0,0) SetLaserEnabled(localPlayer, true) SetLaserColor(localPlayer, oldcolors.r,oldcolors.g,oldcolors.b,oldcolors.a) if colorPickerInitialized == 0 then initColorPicker() end elseif res == getResourceFromName("colorpicker") then if colorPickerInitialized == 0 then initColorPicker() end end end ) addEventHandler("onClientResourceStop", root, function(res) if res == getThisResource() then outputChatBox("STOP", 245,0,0) SetLaserEnabled(localPlayer, false) end end ) function centerWindow(center_window) local screenW, screenH = guiGetScreenSize() local windowW, windowH = guiGetSize(center_window, false) local x, y = (screenW - windowW) / 2, (screenH - windowH) / 2 guiSetPosition(center_window, x, y, false) end LASE = { tab = {}, button = {}, window = {}, checkbox = {}, label = {}, tabpanel = {}, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) Laser_Wnd = guiCreateWindow(183, 26, 405, 498, "===[ M.5|~لوحة اختيار لون الليزر ~|M.5]===", false) guiWindowSetSizable(Laser_Wnd, false) guiSetProperty(Laser_Wnd, "CaptionColour", "FFFEEF00") setElementID(Laser_Wnd,'laser') guiSetVisible(Laser_Wnd,false) LASE.tabpanel[1] = guiCreateTabPanel(10, 43, 386, 424, false, Laser_Wnd) LASE.tab[1] = guiCreateTab("=[ لون اللزر 1 ]=", LASE.tabpanel[1]) LASE.checkbox[1] = guiCreateCheckBox(261, 21, 122, 15, "=[ اختيار اللون ]=", true, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[1], "NormalTextColour", "FF0005FF") LASE.checkbox[2] = guiCreateCheckBox(261, 62, 122, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[2], "NormalTextColour", "FFFFF600") LASE.checkbox[3] = guiCreateCheckBox(260, 109, 122, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[3], "NormalTextColour", "FF41FF00") LASE.checkbox[4] = guiCreateCheckBox(260, 155, 122, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[4], "NormalTextColour", "FFFF0000") LASE.checkbox[5] = guiCreateCheckBox(260, 200, 122, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[5], "NormalTextColour", "FF00FFFB") LASE.checkbox[6] = guiCreateCheckBox(260, 244, 122, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[6], "NormalTextColour", "FFFF00FC") LASE.checkbox[7] = guiCreateCheckBox(260, 289, 122, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[7], "NormalTextColour", "FF04FA72") LASE.checkbox[8] = guiCreateCheckBox(259, 326, 122, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[8], "NormalTextColour", "FFFF3C00") LASE.checkbox[9] = guiCreateCheckBox(260, 365, 122, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[1]) guiSetProperty(LASE.checkbox[9], "NormalTextColour", "FFF00EED") LASE.tab[2] = guiCreateTab("=[ لون الليزر 2 ]=", LASE.tabpanel[1]) LASE.checkbox[10] = guiCreateCheckBox(267, 25, 111, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[2]) guiSetProperty(LASE.checkbox[10], "NormalTextColour", "FFDF5E00") LASE.checkbox[11] = guiCreateCheckBox(267, 62, 111, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[2]) guiSetProperty(LASE.checkbox[11], "NormalTextColour", "FFC51942") LASE.checkbox[12] = guiCreateCheckBox(267, 104, 111, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[2]) guiSetProperty(LASE.checkbox[12], "NormalTextColour", "FFBF1EAE") LASE.checkbox[13] = guiCreateCheckBox(267, 154, 111, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[2]) guiSetProperty(LASE.checkbox[13], "NormalTextColour", "FF1E4F56") LASE.checkbox[14] = guiCreateCheckBox(267, 202, 111, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[2]) guiSetProperty(LASE.checkbox[14], "NormalTextColour", "FFA94DE9") LASE.checkbox[15] = guiCreateCheckBox(267, 255, 111, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[2]) guiSetProperty(LASE.checkbox[15], "NormalTextColour", "FFC01385") LASE.checkbox[16] = guiCreateCheckBox(267, 303, 111, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[2]) guiSetProperty(LASE.checkbox[16], "NormalTextColour", "FFD30000") LASE.checkbox[17] = guiCreateCheckBox(267, 359, 111, 15, "=[ اختيار اللون ]=", false, false, LASE.tab[2]) guiSetProperty(LASE.checkbox[17], "NormalTextColour", "FF000BFF") LASE.button[1] = guiCreateButton(231, 23, 165, 25, "تشغيل الليزر", false, Laser_Wnd) guiSetProperty(LASE.button[1], "NormalTextColour", "FFAAAAAA") LASE.label[1] = guiCreateLabel(10, 473, 343, 20, "By:Mr.SPORT ", false, Laser_Wnd) LASE.button[2] = guiCreateButton(360, 469, 36, 20, "X", false, Laser_Wnd) end ) addCommandHandler('LASER', function() local vis = not guiGetVisible(Laser_Wnd) guiSetVisible(Laser_Wnd,vis) showCursor(vis) end ) addEventHandler ( "onClientGUIClick",LASE.button[1], function ( ) ToggleLaserEnabled() end,false ) addEventHandler ( "onClientGUIClick",LASE.button[2], function ( ) playSoundFrontEnd(40) guiSetVisible (Laser_Wnd, false) showCursor ( false ) end,false ) addEventHandler("onClientMouseEnter",root, function ( ) for k,v in ipairs(getElementsByType("gui-checkbox",resourceRoot)) do if source == v then playSoundFrontEnd(3) end end end ) addEventHandler("onClientGUIClick", getResourceGUIElement(getThisResource()), function(buttonN,state) if(buttonN == "left" and state == "up") and getElementType(source) == "gui-checkbox" then if IsLaserEnabled(localPlayer) == false then outputChatBox("يجب تشغيل الليزر أولا !^", 245,0,0) return end for i = 1,#LASE.checkbox do if LASE.checkbox[i] ~= source then guiCheckBoxSetSelected(LASE.checkbox[i],false) end end if ( guiCheckBoxGetSelected(source) ) then local GetColor = guiGetProperty(source, "NormalTextColour") if GetColor then local hex = '#'..GetColor hex = hex:gsub("#","") local r,g,b = tonumber("0x"..hex:sub(3,4)), tonumber("0x"..hex:sub(5,6)), tonumber("0x"..hex:sub(7,8)) playSoundFrontEnd(1) ChangeLaserColor(cmd, r,g,b,255) outputChatBox('تم إختيار اللون بنجاح',255,0,0) end end end end ) addEventHandler("onClientElementDataChange", localPlayer, function(dataName, oldValue) if getElementType(source) == "player" and source == localPlayer and dataName == "laser.on" then local newValue = getElementData(source, dataName) if oldValue == true and newValue == false then unbindKey("aim_weapon", "both", AimKeyPressed) elseif oldValue == false and newValue == true then bindKey("aim_weapon", "both", AimKeyPressed) end end end ) addEventHandler( "onClientRender", root, function() local players = getElementsByType("player") for k,v in ipairs(players) do if getElementData(v, "laser.on") then DrawLaser(v) end end end ) addEventHandler( "onClientPreRender", root, function() local players = getElementsByType("player") for k,v in ipairs(players) do if getElementData(v, "laser.on") then --DrawLaser(v) end end end ) function AimKeyPressed(key, state) -- attempt to sync when aiming with binds, getPedControlState seems weird... if state == "down" then
  5. "onPlayerJoin" "onPlayerQuit" triggerClientEvent guiCreateLabel guiSetVisible guiSetText او "onClientPlayerJoin" "onClientPlayerQuit" triggerServerEvent triggerClientEvent guiCreateLabel guiSetVisible guiSetText
  6. هذا لوب يسوي شي 10 مرات او حسب الي تكتبه مثال : addCommandHandler ( "Hala", function ( ) for i = 1, 50 do outputChatBox ( "هلا", root, 255, 255, 255, true ) end end ) الحين بيكتب 50 هلا في الشات
  7. كيف تضيف الفنكشن قبل الحدث ؟
  8. Rockyz

    طلب

    كيف يعني تزيد سيارات سيارات ايش ؟
  9. veh = {} marker = {} Data = { {-3275.2436523438,-3007.7487792969,5, "corona", 4, 255, 0, 0, 155 }, } setElementData(marker,'text3D','لـ أخذ موتر #') function giveVehicle ( element ) if ( getElementType ( element ) == "player" and not isPedInVehicle ( element ) ) then if ( isElement ( veh [ element ] ) ) then destroyElement ( veh [ element ] ) end veh [ element ] = nil local x, y, z = getElementPosition( element ) veh [ element ] = createVehicle ( math.random ( 400, 600 ), x , y + 3 , z + 3 ) setVehicleDamageProof ( veh [ element ] , true ) warpPedIntoVehicle( element ,veh [ element ] ) addVehicleUpgrade( veh [ element ] , 1010) addVehicleUpgrade( veh [ element ] , 1087) outputChatBox ( "# [ تم أعطائك موتر مع : نيترو + هيدروليك ]", element, 255, 0, 0, true ) outputChatBox ( "# [ ( Ctrl ) لـ تشغيل/ايقاف النيترو اضغط ]", element, 255, 255, 0, true ) outputChatBox ( "# [ ( Caps Lock ) لـ تشغيل/ايقاف الهيدروليك اضغط ]", element, 255, 0, 255, true ) end end addEventHandler("onResourceStart",resourceRoot, function () for k,v in ipairs ( Data ) do marker [ k ] = createMarker ( v [ 1 ] , v [ 2 ] , v [ 3 ] - 1 , v [ 4 ] , v [ 5 ] , v [ 6 ], v [ 7 ] , v [ 8 ] , v [ 9 ] ) addEventHandler("onMarkerHit", marker [ k ] , giveVehicle ) end end) addEventHandler("onPlayerQuit",root,function() if ( isElement ( veh [ source ] ) ) then destroyElement ( veh [ source ] ) end veh [ source ] = nil end) addEventHandler( "onVehicleExplode", root, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if Vehicles[source] then destroyElement( Vehicles[source] ) end end )
  10. وليش تزويد المشاركات الويكي واضحح جدا 16 Grenade 17 Tear Gas Grenade 18 Molotov 19 Rocket (simple) 20 Rocket (heat seeking) 21 Air Bomb 39 Satchel Charge 58 Flare from hydra (doesn't work)
  11. اكوادك هريسة ^
  12. طيب قول لنا وش تبي تسوي ؟ وثاني مرة عدل اسامي مواضيعك
  13. هنا الوقت 1000 = 1 ثانية end, 2000, 1 ) في كودك الي انت مسويه كيف تبي تسوي تايمر وانت صاكه كذا ؟ setTimer ( 60000,1 ) ? الحين كيف بيكمل الحدث ؟ انصحك تتعلم الاساسيات !
  14. لاتاخد كوبي بست تعلم من الاكواد وشوف وش ضفت myMarker = createMarker ( 2485.64136, -1666.60461 ,12.5, "cylinder", 2.0, 255, 0, 0, 150) hillRadar = createRadarArea ( 2485.64136, -1666.60461, 111, 440, 0, 255, 0, 175 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( checkPla ) if ( getElementType ( checkPla ) == "player" ) then if ( source == myMarker ) then local Gteam = getPlayerTeam ( checkPla ) local Gname = getTeamName ( Gteam ) if not ( Gteam ) then return outputChatBox ( "You Not In Any Team", checkPla, 255, 0, 0, true ) end if ( Gteam and Gname == "Ballas" ) then local r, g, b = getTeamColor ( Gteam ) setTimer ( function ( ) for i, v in ipairs ( getPlayersInTeam ( Gteam ) ) do setRadarAreaColor ( hillRadar, r, g, b, 255 ) outputChatBox ( "The Rader Color Has Been Changed !", checkPla, 0, 255, 0, true ) givePlayerMoney ( v, math.random ( 500,5000 ) ) end end, 2000, 1 ) else outputChatBox ( "You Not In Ballas Team", checkPla, 255, 0, 0, true ) end end end end ) هذا مثال يعطي فلوس من 500 الى 5000
  15. setTimer بالنسبة للوقت لدخول الماركر استخدم تايمر خلها فوق فنكشن تغير لون الرادار
  16. Rockyz

    ?

    ياخي عدل أسامي مواضيعك الحين ماعرف وش ذة ووش ذة
  17. وبالنسبة لــ كــذا : myMarker = createMarker( 2485.64136, -1666.60461 ,12.5, "cylinder", 2.0, 255, 0, 0, 150) hillRadar = createRadarArea ( 2485.64136, -1666.60461, 111, 440, 0, 255, 0, 175 ) addEventHandler ( "onMarkerHit", resourceRoot, function ( checkPla ) if ( getElementType ( checkPla ) == "player" ) then if ( source == myMarker ) then local Gteam = getPlayerTeam ( checkPla ) local Gname = getTeamName ( Gteam ) if not ( Gteam ) then return outputChatBox ( "You Not In Any Team", checkPla, 255, 0, 0, true ) end if ( Gteam and Gname == "TeamName" ) then local r, g, b = getTeamColor ( Gteam ) setRadarAreaColor ( hillRadar, r, g, b, 255 ) outputChatBox ( "The Rader Color Has Been Changed !", checkPla, 0, 255, 0, true ) else outputChatBox ( "You Not In ( TeamName ) Team", checkPla, 255, 0, 0, true ) end end end end ) وبالنسبة لــ استخدم setTimer
×
×
  • Create New...