Dr.Xen
Members-
Posts
412 -
Joined
-
Last visited
Everything posted by Dr.Xen
-
مازبط .. عدل على ذا يمكن يزبط elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 ) then if getElementData( hPlayer, 'Group' ) == groupName then setPedArmor( hPlayer, 200 ) setElementHealth( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) addVehicleUpgrade ( element, 1010 ) setVehiclePaintjob ( element, 2 ) end
-
تحط في حركة حق Fightine Style لو دخلت لوحة ادمننية تحصل Set stats ولو دخلت عليه تحصل Fightine Style ابي اغير حركة الضرب يعني لو لمست الماركر يتغير حركته
-
elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 ) then if getElementData( hPlayer, 'Group' ) == groupName then setPedArmor( hPlayer, 200 ) setElementHealth( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) addVehicleUpgrade ( element, 1010 ) setVehiclePaintjob ( element, 2 ) end الكود ذا شغال معي ممكن تعدل على ذا @
-
اسمه كذا Fightine Style تحصل في Set stats
-
لو تضغط كلك يمين من الماوس وحرب ب يتغير الحركة
-
السلام عليكم ورحمة الله وبركاته ابيكم تعدلو لي الكود .. elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 ) then if getElementData( hPlayer, 'Group' ) == groupName then setPedArmor( hPlayer, 200 ) setElementHealth( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) addVehicleUpgrade ( element, 1010 ) setVehiclePaintjob ( element, 2 ) end اذا لمست يعبي دمي ودرعي واقدر اضرب كراتيكر وزي كذا
-
السلام عليكم ورحمة الله وبركاته وش حالكم ي عيال .. الزبدهه انا حاولت اخلي الباب يفتح لقروبين بسس هرست الكود ورجعت ما كانت local health = {} local fix = {} local outTawa = {} local groupName = '{X5}' outTawa1 = createMarker(155,5555,100) outTawa3 = createMarker(90.5,50,1000) outTawa4 = createMarker(120,50,1000) door = createObject(16775,2917.6000976563,2175.1999511719,33.799999237061,0,0,89.99951171875) markerDoor = createMarker(2918,2175.1000976563,25,"cylinder",15,0,0,0,0) door1 = createObject(16775,2916.3000488281,2236.6999511719,33.200000762939,0,0,90.25) markerDoor1 = createMarker(2917.6000976563,2236.3000488281,25.799999237061,"cylinder",15,0,0,0,0) health1 = createMarker(2982.5,2164,31,"cylinder",2,15,239,110,255) health2 = createMarker(2982.5,2189.2998046875,31,"cylinder",2,222,157,32,255) health3 = createMarker(2972.8999023438,2185.85,31,"cylinder",1.5,222,157,32,255) health4 = createMarker(2996.1999511719,2178.1000976563,998.40002441406,"cylinder",2.5,222,157,32,255) eB = createMarker(2984.3994140625,2174.8994140625,33,"arrow",2,0,0,255,255) oB = createMarker(2996,2162.5,1000,"arrow",1.5,0,0,255,255) eH1 = createMarker(2982.5,2164,1000,"arrow",2,0,0,255,255) postion = { {847,1422,56}, {855,1244,56}, {958,1257,56}, {951,1424,56} } local outTawa = {} local groupName = '{X5}' outTawa1 = createMarker(1348.93616,597.25146,10,"cylinder",2,0,0,0,255) outTawa4 = createMarker(946,1430,55,"cylinder",2,0,0,0,0) addEventHandler("onMarkerHit",root, function ( hPlayer ) if ( source == outTawa1 ) or ( source == outTawa4 ) then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 1360.51086,596.10760,11.15420 ) end end if ( source == outTawa3 ) then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 1381.54797,561.91400,11.71845 ) end end end ) addEventHandler("onMarkerHit",root, function ( hPlayer ) if ( source == tawa1 ) then if getElementType(hPlayer) == 'player' then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 1271.97681,607.35712,1501.00000 ) end end elseif ( source == markerDoor ) then if getElementData( hPlayer, 'Group' ) == groupName then moveObject( door,1000,2917.6000976563,2175.1999511719,40.799999237061 ) else outputChatBox( ' only For '..groupName, hPlayer, 255, 255, 0, false ) end elseif ( source == markerDoor1 ) then if getElementData( hPlayer, 'Group' ) == groupName then moveObject( door1,1000,2916.3000488281,2236.6999511719,25 ) else outputChatBox( ' only For '..groupName, hPlayer, 255, 255, 0, false ) end elseif ( source == health1 ) or ( source == health2 ) or ( source == health3 ) or ( source == health4 ) then if getElementData( hPlayer, 'Group' ) == groupName then setPedArmor( hPlayer, 200 ) setElementHealth( hPlayer, 100 ) fixVehicle( getPedOccupiedVehicle( hPlayer ) ) addVehicleUpgrade ( element, 1010 ) setVehiclePaintjob ( element, 2 ) end elseif ( source == eB ) then if getElementData( hPlayer, 'Group' ) == groupName then if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 2996.33789,2165.03345,999.19531 ) return end setElementPosition( hPlayer, 2996.33789,2165.03345,999.19531 ) outputChatBox('Welcome In The Home Group {X5} !',hPlayer, 255, 255, 0) else outputChatBox( groupName .. ' only ', hPlayer, 255, 0, 0, false ) end elseif ( source == oB ) then if getElementData( hPlayer, 'Group' ) == groupName then if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 2979.65967,2177.18799,31.81844 ) return end setElementPosition( hPlayer, 2979.65967,2177.18799,31.81844 ) outputChatBox('Good Bye Man !',hPlayer, 255, 255, 0) else outputChatBox( groupName .. ' only ', hPlayer, 255, 0, 0, false ) end elseif ( source == eH1 ) then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 141,1370,1085 ) setElementInterior ( hPlayer, 5 ) setElementDimension ( hPlayer, 7523 ) else outputChatBox( ' Only '..groupName..' !', hPlayer, 255, 0, 255 ) end elseif ( source == oH1 ) then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 777,1357,37 ) setElementInterior ( hPlayer, 0 ) setElementDimension ( hPlayer, 0 ) else outputChatBox( ' Only '..groupName..' !', hPlayer, 255, 0, 255 ) end elseif ( source == eH2 ) then if getElementData( hPlayer, 'Group' ) == groupNam then setElementPosition( hPlayer, 226,1289,1083 ) setElementInterior ( hPlayer, 1 ) setElementDimension ( hPlayer, 7523 ) else outputChatBox( ' Only '..groupName..' !', hPlayer, 255, 0, 255 ) end elseif ( source == oH2 ) then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 744,1314,37 ) setElementInterior ( hPlayer, 0 ) setElementDimension ( hPlayer, 0 ) else outputChatBox( ' Only '..groupName..' !', hPlayer, 255, 0, 255 ) end elseif ( source == eH3 ) then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 1391.86829,544.42426,1003.59998 ) setElementInterior ( hPlayer, 0 ) setElementDimension ( hPlayer, 0 ) output( getPlayerName( hPlayer ) .. ' Welcome at the BattleField of ' .. groupName, hPlayer, 0, 255, 0, false ) end elseif ( source == oH3 ) then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 1381.23584,561.93823,11.71845 ) setElementInterior ( hPlayer, 0 ) setElementDimension ( hPlayer, 0 ) outputChatBox('GooD Bye '..getPlayerName( hPlayer )..' !',hPlayer,0,255,0) elseif ( source == outTawa1 ) or ( source == outTawa2 ) or ( source == outTawa3 ) or ( source == outTawa4 ) then if getElementData( hPlayer, 'Group' ) == groupName then setElementPosition( hPlayer, 1381.23584,561.93823,11.71845 ) end end end end ) onWasted = function() if getPlayerTeam( source ) then function sp( source ) setElementPosition( source, 779,1339,37 ) setElementInterior ( source, 0 ) setElementDimension ( source, 0 ) setElementHealth( source, 100 ) giveWeapon( source, 46 ) setPedSkin( source, 230 ) setPedArmor( source, 100 ) end setTimer(sp,1000,1,source) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted ) addEventHandler("onMarkerLeave",markerDoor, function ( hPlayer ) if getElementData( hPlayer, 'Group' ) == groupName then moveObject( door,500,2917.6000976563,2175.1999511719,33.799999237061 ) end end ) addEventHandler("onMarkerLeave",markerDoor1, function ( hPlayer ) if getElementData( hPlayer, 'Group' ) == groupName then moveObject( door1,1000,2916.3000488281,2236.6999511719,33.200000762939 ) end end ) addEventHandler('onPlayerSpawn', root,function() if getTeamName(getPlayerTeam(source)) == "No Team" and getElementData(source, "gang") == "{X5}" then setTimer(setElementPosition, 500, 1, source, 1383.56091,548.50189,1008.09998) setPedSkin (source, 230 ) end end ) ابيه يشتغل على قروبين
-
السلام عليكم ورحمة الله وبركاته ي شباب انا معي لوحة سيارات كل شي تمام بس اذا انا اخذت سيارات اي واحد يقدر يسوق ابيه فقط عضاء القروب ييسوق الموتر ! الكود:" GUIEditor_Window = {} GUIEditor_Marker = {} GUIEditor_Button = {} GUIEditor_Grid = {} vehicleId = {429,411,560,541,431,451,562,482,409,471,522,463,561,434,487,469,548,520,425,} GUIEditor_Marker[1] = createMarker( 1415.5999755859,541.90002441406,10, 'cylinder', 1.5, 0, 0, 255, 255 ) GUIEditor_Marker[2] = createMarker( 1420.8000488281,541.20001220703,10, 'cylinder', 1.5, 0, 0, 255, 255 ) GUIEditor_Marker[3] = createMarker( 1426.5,540.5,10, 'cylinder', 1.5, 0, 0, 255, 255 ) local groupName = '[MFA]' local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Select Vehicle",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], 'Vehice Name', 0.80 ) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"Close",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"Take Vehicle",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 getElementData ( player , "Group" ) == groupName and not isPedInVehicle( player ) and player == localPlayer then for i,v in ipairs( GUIEditor_Marker ) do if ( source == v ) then x999,y999,z999 = getElementPosition( localPlayer ) if z999 < 13.1 and z999 < 11.1 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 ) كودين هي ملفين @ AircraftIdSpawn = { { 1430.9000244141,596.09997558594,14 }, } local base = createBlip (1384.30298,581.37543,10.91094) setBlipVisibleDistance (base, 30) local groupName = '[MFA]' output = function( text, element, r, g, b, vaule ) exports["guimessages"]:outputServer(element, text, r, g, b) end function start() end addEventHandler('onResourceStart', resourceRoot, start) function mm() end onAbadyWasted = function() if getElementData ( source , "Group" ) == groupName then function sp( source ) setElementPosition( source, 1384.70386,548.67749,1008.09998 ) setElementInterior ( source, 0 ) setElementDimension ( source, 0 ) setPedSkin( source, 230 ) setPedArmor( source, 100 ) 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 == 425 or id == 548 or id == 520 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 ) !!
-
السلام عليكم ورحمة الله وبركاته انا عندي مشكلة بالكود يشتغل تمام بس لو غيرت الإحداثيات مايتشغل ذا يشتغل بس ما غيرت الإحداثيات GUIEditor_Window = {} GUIEditor_Marker = {} GUIEditor_Button = {} GUIEditor_Grid = {} vehicleId = {429,411,560,541,431,451,562,482,409,471,522,463,561,432,487,469,548,520,425,} GUIEditor_Marker[1] = createMarker( 1415.5999755859,541.90002441406,10, 'cylinder', 1.5, 0, 0, 255, 255 ) GUIEditor_Marker[2] = createMarker( 1420.8000488281,541.20001220703,10, 'cylinder', 1.5, 0, 0, 255, 255 ) GUIEditor_Marker[3] = createMarker( 1426.5,540.5,10, 'cylinder', 1.5, 0, 0, 255, 255 ) local groupName = 'WAWI' local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Select Vehicle",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], 'Vehice Name', 0.80 ) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"Close",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"Take Vehicle",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 getElementData ( player , "Group" ) == groupName and not isPedInVehicle( player ) and player == localPlayer then for i,v in ipairs( GUIEditor_Marker ) do if ( source == v ) then x999,y999,z999 = getElementPosition( localPlayer ) if z999 < 13.1 and z999 < 11.1 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 ) وذا مايشتغل انا ما غيرت شي غير الاحداثيات GUIEditor_Window = {} GUIEditor_Marker = {} GUIEditor_Button = {} GUIEditor_Grid = {} vehicleId = {429,411,560,541,431,451,562,482,409,471,522,463,561,432,487,469,548,520,425,} GUIEditor_Marker[1] = createMarker( 2957.5,2234.3999023438,30, 'cylinder', 1.5, 0, 255, 2, 255 ) GUIEditor_Marker[2] = createMarker( 2946.3000488281,2235,30, 'cylinder', 1.5, 0, 255, 2, 255 ) GUIEditor_Marker[3] = createMarker( 2952.3000488281,2234.6000976563,30, 'cylinder', 1.5, 0, 255, 0, 255 ) local groupName = '{X5}' local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(x/2,y/2,208,321,"Select Vehicle",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], 'Vehice Name', 0.80 ) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Button[1] = guiCreateButton(12,277,87,30,"Close",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(107,277,87,30,"Take Vehicle",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 getElementData ( player , "Group" ) == groupName and not isPedInVehicle( player ) and player == localPlayer then for i,v in ipairs( GUIEditor_Marker ) do if ( source == v ) then x999,y999,z999 = getElementPosition( localPlayer ) if z999 < 13.1 and z999 < 11.1 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 ) ممكن تصحيح اذا في خطا
-
السلام عليكم ورحمة الله وبركاته ابي اششتري هوست بسس ابيه ححلوهـ وسمعتها جيدا! والي يعرف يكلمني #
-
السلام عليكم ورحمة الله وبركاته كيف حالكم ي عيال .. كلنا بخير ان شاء الله ي عيال معي كود بس ما يشتغل لقروب حق العقرب ابيه يشتغل في قروب سيستم العقرب addEvent("warningSound", true) local sx, sy = guiGetScreenSize() mainWindow = guiCreateWindow((sx-438)/2, (sy-487)/2, 438, 487, "(RWS)Vehicles", false) guiWindowSetSizable(mainWindow, false) guiSetAlpha(mainWindow, 1.00) guiSetVisible(mainWindow, false) mainTab = guiCreateTabPanel(0.02, 0.04, 0.96, 0.90, true, mainWindow) local vehicles = { cars = { tab = guiCreateTab("Cars", mainTab), list = { {"Cheetah", 415}, {"Bullet", 541}, {"Infernus", 411}, {"Sultan", 560}, {"Turismo", 451}, {"Comet", 480}, {"Huntley", 579}, {"Flash", 565}, {"Bandito", 568} } }, bikes = { tab = guiCreateTab("Bikes", mainTab), list = { {"BF-400", 581}, {"FCR-900", 521}, {"NRG-511", 522}, {"PCJ-600", 461}, {"Sanchez", 468} } }, planes = { tab = guiCreateTab("Planes", mainTab), list = { {"Sparrow", 469}, {"Maverick", 487} } } } vehicles.cars.gridlist = guiCreateGridList(0.05, 0.02, 0.89, 0.95, true, vehicles.cars.tab) table.insert(vehicles.cars, guiGridListAddColumn(vehicles.cars.gridlist, "Cars", 0.9)) vehicles.bikes.gridlist = guiCreateGridList(0.05, 0.02, 0.89, 0.95, true, vehicles.bikes.tab) table.insert(vehicles.bikes, guiGridListAddColumn(vehicles.bikes.gridlist, "Bikes", 0.9)) vehicles.planes.gridlist = guiCreateGridList(0.05, 0.02, 0.89, 0.95, true, vehicles.planes.tab) table.insert(vehicles.planes, guiGridListAddColumn(vehicles.planes.gridlist, "Planes", 0.9)) notice = guiCreateLabel(0.02, 0.94, 0.96, 0.03, "Press (Enter) to select your vehicle", true, mainWindow) guiLabelSetColor(notice, 255, 255, 0) guiLabelSetHorizontalAlign(notice, "center", false) guiLabelSetVerticalAlign(notice, "center") for i,v in pairs(vehicles) do for _,k in ipairs(v.list) do local row = guiGridListAddRow(v.gridlist) guiGridListSetItemText(v.gridlist, row, v[1], k[1], false, false) end end local vehiclesMarker = createColSphere(2676.5754394531, 501.72253417969, 38.639434814453, 1) addEventHandler("onClientColShapeHit", vehiclesMarker, function(hitElement) if hitElement == localPlayer and getElementData(hitElement, "Group") == "(RWS)" and not isPedInVehicle(hitElement) then guiSetVisible(mainWindow, true) showCursor(true) bindKey("enter", "down", selectVehicle) end end,false ) addEventHandler("onClientColShapeLeave", vehiclesMarker, function(leaveElement) if leaveElement == localPlayer and getElementData(leaveElement, "Group") == "(RWS)" and not isPedInVehicle(leaveElement) then guiSetVisible(mainWindow, false) showCursor(false) unbindKey("enter", "down", selectVehicle) end end, false ) function selectVehicle() for i,v in pairs(vehicles) do local tab = v.tab if guiGetSelectedTab(mainTab) == tab then local gridlist = v.gridlist if guiGridListGetSelectedItem(gridlist) ~= -1 then local row = guiGridListGetSelectedItem(gridlist) local vehName = guiGridListGetItemText(gridlist, row, v[1]) for _,k in ipairs(v.list) do if k[1] == vehName then if i == "planes" then triggerServerEvent("spawningVehicle", localPlayer, k[2], true) else triggerServerEvent("spawningVehicle", localPlayer, k[2], false) end unbindKey("enter", "down", selectVehicle) break end end guiSetVisible(mainWindow, false) showCursor(false) break end end end end addEventHandler("warningSound", localPlayer, function() if isElement(warningSound) then stopSound(warningSound) end warningSound = playSound("warning.mp3") end ) addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition(localPlayer) local scX, scY = getScreenFromWorldPosition(1295.4978027344, 1300.7651367188, 10.8203125) local distance = getDistanceBetweenPoints2D(x, y, 1295.4978027344, 1300.7651367188) if distance <= 45 then distance = 44.773872375488 elseif distance >= 70 then return end if scX and scY then dxDrawText("SeySey", scX, scY+2, scX, scY, tocolor(0, 0, 0), distance/10) dxDrawText("SeySey", scX, scY-2, scX, scY, tocolor(0, 0, 0), distance/10) dxDrawText("SeySey", scX, scY, scX, scY, tocolor(255, 255, 0), distance/10) end end ) addEvent("spawningVehicle", true) local warpingMarkers = { {createColSphere(2645.828125, 514.10321044922, 39.452819824219, 0.90), {2637.6328125, 530.11633300781, 1309.5328369141}, 358.17636108398}, {createColSphere(2637.5400390625, 527.49749755859, 1309.5328369141-0.50, 0.90), {2645.8791503906, 516.2900390625, 39.452819824219}, 0}, {createColSphere(2657.4792480469, 537.72381591797+0.45, 1309.7515869141, 0.90), {2617.2275390625, 568.4462890625, 38.639434814453}, 174.67860412598}, {createColSphere(2618.4020996094, 567.37719726563, 44.61971282959, 0.90), {2644.2993164063, 542.98999023438, 38.639434814453}, 358.53848266602}, {createColSphere(2644.1857910156, 541.24450683594, 38.639434814453, 0.90), {2616.7600097656, 569.69165039063, 44.61971282959}, 180.58679199219}, {createColSphere(2619.87890625, 622.59600830078, 8.5071468353271, 1), {2642.0905761719, 517.64105224609, 39.452819824219}, 0} } local healthMarkers = { createMarker(2657.6000976562, 532.09997558594, 1308.8000488281, "cylinder", 1, 0, 255, 0), createMarker(2645.8732910156, 522.28820800781, 37.639434814453, "cylinder", 1.50, 0, 255, 0) } local fixingMarkers = { createMarker(2616.8203125, 496.33172607422, 38.639434814453-1, "cylinder", 2, 255, 255, 0), createMarker(2611.0817871094, 692.97985839844, 10.671875-1, "cylinder", 3, 255, 255, 0) } local activeVehicles = {} local playersVehicles = {} local occupiedVehicles = {} local activeTimers = {} local Intruders = {} local jumpingOutMarker = createMarker(2611.4643554688, 557.24761962891, 38.639434814453-1, "cylinder", 2, 255, 0, 0) local jumpingInMarker = createMarker(2619.8454589844, 622.66082763672, 8.50852394104-1, "cylinder", 2, 255, 0, 0) local joiners = createColCuboid(2607.4125976563-1, 569.38812255859-90, 36.889434814453, 83, 102, 50) createBlip(2645.3168945313, 528.1728515625, 38.639434814453, 23) local function warpPlayer(player, x, y, z, rotation) fadeCamera(player, false, 0.50) setElementFrozen(player, true) setTimer( function(thePlayer) setElementPosition(thePlayer, x, y, z) setTimer(setElementFrozen, 1500, 1, thePlayer, false) setElementRotation(thePlayer, 0, 0, rotation) fadeCamera(thePlayer, true) setCameraTarget(thePlayer, thePlayer) end, 500, 1, player ) end addEventHandler("onColShapeHit", root, function(hitElement) if getElementType(hitElement) == "player" and getElementData(hitElement, "Group") == "(RWS)" or getElementData(hitElement, "RWS(TESTMODE)") and not isPedInVehicle(hitElement) then for i,v in ipairs(warpingMarkers) do if source == v[1] then if i == 3 then local positions = { {2623.9467773438, 566.87329101563, 49.586158752441}, {2675.2319335938, 570.12432861328, 49.108772277832}, {2659.3525390625, 570.4853515625, 49.055759429932}, {2646.0637207031, 555.52850341797, 51.252040863037} } local x, y, z = unpack(positions[math.random(#positions)]) warpPlayer(hitElement, x, y, z, 178.61454772949) return elseif i == 4 then removeElementData(hitElement, "Group") setElementData(hitElement, "RWS(TESTMODE)", true) elseif i == 5 then setElementData(hitElement, "Group", "(RWS)") removeElementData(hitElement, "RWS(TESTMODE)") end local x, y, z = unpack(v[2]) warpPlayer(hitElement, x, y, z, v[3]) break end end end end ) addEventHandler("onMarkerHit", root, function(hitElement) if getElementType(hitElement) == "player" and getElementData(hitElement, "Group") == "(RWS)" then for i,v in ipairs(healthMarkers) do if v == source then setElementHealth(hitElement, 100) setPedArmor(hitElement, 100) break end end elseif getElementType(hitElement) == "vehicle" then for i,v in ipairs(fixingMarkers) do if v == source then local player = getVehicleOccupant(hitElement, 0) if player and getElementData(player, "Group") == "(RWS)" then setElementVelocity(hitElement, 0, 0, 0) fixVehicle(hitElement) exports.guimessages:outputServer(player, "(RWS): Your vehicle has been fixed!", 0, 255, 0) end break end end end end ) addEventHandler("onMarkerHit", jumpingOutMarker, function(hitElement) if getElementType(hitElement) == "vehicle" then setElementVelocity(hitElement, 0, 0, 0) local player = getVehicleOccupant(hitElement, 0) if player and getElementData(player, "Group") == "(RWS)" then local x, y, z = getElementVelocity(hitElement) setElementVelocity(hitElement, x, y+0.45, z+1.30) end end end, false ) addEventHandler("onMarkerHit", jumpingInMarker, function(hitElement) if getElementType(hitElement) == "vehicle" then setElementVelocity(hitElement, 0, 0, 0) setElementRotation(hitElement, 359.10729980469, 359.91583251953, 177.91674804688) local player = getVehicleOccupant(hitElement, 0) if player and getElementData(player, "Group") == "(RWS)" then local x, y, z = getElementVelocity(hitElement) setElementVelocity(hitElement, x, y-0.50, z+1.30) end end end, false ) local function addVehicleToDestroyList(vehicleNumber) activeTimers[vehicleNumber] = setTimer( function(vehicleNumber) destroyElement(activeVehicles[vehicleNumber]) activeVehicles[vehicleNumber] = nil activeTimers[vehicleNumber] = nil for i,v in pairs(playersVehicles) do if v == vehicleNumber then playersVehicles[i] = nil break end end end, 30000, 1, vehicleNumber ) end local function removeVehicleFromDestroyList(vehicleNumber) if isTimer(activeTimers[vehicleNumber]) then killTimer(activeTimers[vehicleNumber]) activeTimers[vehicleNumber] = nil end end addEventHandler("spawningVehicle", root, function(model, planes) local x, y, z = 0, 0, 0 local rx, ry, rz = 0, 0, 0 if planes then x, y, z = 1499,747,43 rx, ry, rz = 0.3275146484375, 359.78839111328, 271.46984863281 else x, y, z = 2676.2900390625, 505.43634033203, 38.298274993896 rx, ry, rz = 359.54382324219, 359.99975585938, 3.48193359375 end if playersVehicles[client] then destroyElement(activeVehicles[playersVehicles[client]]) removeVehicleFromDestroyList(playersVehicles[client]) playersVehicles[client] = nil end local vehicle = #activeVehicles + 1 activeVehicles[vehicle] = createVehicle(model, x, y, z, rx, ry, rz) setVehicleColor(activeVehicles[vehicle], 255, 255, 255) warpPedIntoVehicle(client, activeVehicles[vehicle]) addVehicleUpgrade(activeVehicles[vehicle], 1010) playersVehicles[client] = vehicle occupiedVehicles[vehicle] = nil end ) addEventHandler("onVehicleExit", root, function(player, seat) if seat == 0 then if playersVehicles[player] then addVehicleToDestroyList(playersVehicles[player]) occupiedVehicles[playersVehicles[player]] = nil else for i,v in pairs(activeVehicles) do if v == source then addVehicleToDestroyList(i) occupiedVehicles[i] = nil end end end end end ) addEventHandler("onVehicleEnter", root, function(player, seat) if seat == 0 then if playersVehicles[player] then removeVehicleFromDestroyList(playersVehicles[player]) occupiedVehicles[playersVehicles[player]] = true else for i,v in pairs(activeVehicles) do if v == source then removeVehicleFromDestroyList(i) occupiedVehicles[i] = true break end end end end end ) addEventHandler("onVehicleStartEnter", root, function(player, seat) for i,v in pairs(activeVehicles) do if v == source then if getElementData(player, "Group") ~= "(RWS)" then outputChatBox("This vehicle is only for (RWS) group!", player, 255, 0, 0) cancelEvent() else if seat == 0 and occupiedVehicles[i] then outputChatBox("You cannot take this vehicle as someone in it already!", player, 255, 0, 0) cancelEvent() end end break end end end ) addEventHandler("onPlayerSpawn", root, function(x, y, z, spawnRotation, team) if team == getTeamFromName("No Team") then if getElementData(source, "Stats") == 0 then if getElementData(source, "RWS(TESTMODE)") then setElementData(source, "Group", "(RWS)") removeElementData(source, "RWS(TESTMODE)") end if getElementData(source, "Group") == "(RWS)" then local positions = { {2651.0847167969, 550.11267089844, 1309.5400390625}, {2644.0856933594, 549.88635253906, 1309.5328369141}, {2637.5554199219, 549.92211914063, 1309.5328369141}, {2631.4636230469, 550.81976318359, 1309.5328369141},
-
ي لبييه شنب بمعنى كلمةة .. مشكور ي ابو شنب يعطيك العافية زبط !! تمام التمام !!
-
اللوحة مافتحت @
-
مازبط حاولت اكثر من طريقةة انا استخدم قروبات اف5 الي هو حق العقرب @
-
لقيت الكود بسس ابيه للقروب سيستم حق العقرب local window = guiCreateWindow(353, 146, 323, 358, "Dz,jordan", false) guiWindowSetSizable(window, false) guiSetVisible (window,false) guiSetAlpha(window, 1.00) local gridlist = guiCreateGridList(33, 46, 256, 253, false, window) guiGridListAddColumn(gridlist, "Cars Server Or Group", 0.9) local button2 = guiCreateButton(29, 311, 68, 35, "Use", false, window) guiSetProperty(button2, "NormalTextColour", "ffff0000") local button = guiCreateButton(288, 25, 26, 22, "X", false, window) guiSetProperty(button, "NormalTextColour", "FFFF0000") local car = { 560,450 } for _,vehicle in ipairs (car) do local row = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) end addEventHandler("onClientGUIClick",button2, function () local carxx = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) if carxx == "" then return outputChatBox("Please Use Car",255, 0, 0,true) end triggerServerEvent("carx",localPlayer,carxx) guiSetVisible(window,false) showCursor(false) end,false ) ------------------------------- local car = createMarker ( -2498.23340,-600.63031,131.56250, "cylinder", 1.5, 255, 255, 255, 255 ) addEventHandler('onClientMarkerHit', car, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( window ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) addEventHandler( "onClientGUIClick", button , function () guiSetVisible(window,false) showCursor(false,false) end ) وشكرا@
-
طيب ابي كود جدول سيارات القروب
-
السلام عليكم ورحمة الله وبركاته كيفكم ي عيال .. بخير اان شاء الله + دوم@ بغيت ماركر اذا لمستها يطيرك ولأزم تكون راك موتر فقط لقروب سيستم توضيح : اذا لمست الماركر وانت داخل السيارة يرميك في مكان فقط للاعضاء القروب سيستم ومشكور #
