
Scorpio
Members-
Posts
121 -
Joined
-
Last visited
Everything posted by Scorpio
-
كذا صح؟ -------------------------------- local spots = { -- size -- r, g, b -- a -- { x, y, z, _, size, r, g, b, a }, { 1218.8181152344, -1647.9377441406, 11.796875, _, 1.5, 255, 255, 255, 255 }, { 1219.8000488281, -1655.8000488281, 11.800000190735, _, 1.5, 255, 0, 0, 255 } } --- Cars = { -- ['Name'] = ID ['Enforcer'] = 427, ['FBI Rancher'] = 490, ['S.W.A.T'] = 601, ['FBI Truck'] = 528, ['Cheetah'] = 415 } -------------------------------- -------------------------------- for k,v in ipairs( spots ) do createMarker ( v[1],v[2],v[3] - 1, 'cylinder', v[5], v[6], v[7], v[8], v[9] ) end for k,v in ipairs( getElementsByType ( 'marker', resourceRoot ) ) do setElementData ( v, 'fromMode', true ) end function getIDFromName ( name ) for k,v in pairs( Cars ) do if name == k then return v end end return nil end GUIEditor = { window = { }, grid = { }, button = { } } addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(0.3512,0.2567,0.2825,0.6233,"Cars",true) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) ---- GUIEditor.grid[1] = guiCreateGridList(0.0619,0.0615,0.8761,0.6471,true,GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.grid[1],"Name",0.9) for k,v in pairs( Cars ) do local row = guiGridListAddRow ( GUIEditor.grid[1] ) guiGridListSetItemText ( GUIEditor.grid[1], row, 1, k, false, false ) end ---- GUIEditor.button[1] = guiCreateButton(0.0664,0.7326,0.8628,0.1016,"Selection",true,GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.0664,0.869,0.8628,0.1016,"Close",true,GUIEditor.window[1]) end ) addEventHandler ( 'onClientMarkerHit', root, function ( element ) if element == localPlayer then if getElementData ( source, 'fromMode' ) then if isPedInVehicle ( element ) then return end if getElementData ( element, 'Group' ) == "MO7H" then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) else outputChatBox ( '* You must be SWAT !', 200, 0, 0, true ) end end end end ) addEventHandler ( 'onClientGUIClick', root, function ( ) if source == GUIEditor.button[1] then local row, col = guiGridListGetSelectedItem ( GUIEditor.grid[1] ) if row and col and row ~= -1 and col ~= -1 then local name = guiGridListGetItemText ( GUIEditor.grid[1], row, col ) local id = getIDFromName ( name ) triggerServerEvent ( 'onVehicleCreate', localPlayer, id ); guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else outputChatBox ( 'Choose a car from painting', 0, 0, 255, true ); end elseif source == GUIEditor.button[2] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) end end ) addEventHandler ( 'onClientGUIDoubleClick', root, function ( ) if source == GUIEditor.grid[1] then local row, col = guiGridListGetSelectedItem ( GUIEditor.grid[1] ) if row and col and row ~= -1 and col ~= -1 then local name = guiGridListGetItemText ( GUIEditor.grid[1], row, col ) local id = getIDFromName ( name ) triggerServerEvent ( 'onVehicleCreate', localPlayer, id ); guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else outputChatBox ( 'Choose a car from painting', 0, 0, 255, true ); end end end ) players = getElementsByType ( 'player' ) function getAllowed ( ) for _,v in ipairs( Groups ) do return v end end addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for k,v in ipairs( players ) do local acc = getPlayerAccount ( v ) if isGuestAccount ( acc ) then return end local accName = getAccountName ( acc ) if isObjectInACLGroup ( 'user.'..accName, aclGetGroup ( getAllowed ( ) ) ) then if getElementData ( element, 'Group' ) == "MO7H" then end end end ) addEventHandler ( 'onPlayerLogin', root, function ( _, acc ) if isGuestAccount ( acc ) then return end local accName = getAccountName ( acc ) if isObjectInACLGroup ( 'user.'..accName, aclGetGroup ( getAllowed ( ) ) ) then if getElementData ( element, 'Group' ) == "MO7H" then end end ) addEventHandler ( 'onPlayerLogout', root, function ( ) if getElementData ( element, 'Group' ) == "MO7H" then end ) addEvent ( 'onVehicleCreate', true ) addEventHandler ( 'onVehicleCreate', root, function ( id ) local x, y, z = getElementPosition ( source ) if isElement ( car ) then destroyElement ( car ) end car = createVehicle ( id, x, y, z ) warpPedIntoVehicle ( source, car ) setVehicleDamageProof ( car, false ) setElementData ( car, 'fromMarker', true ) setElementData ( car, 'owner', getPlayerSerial ( source ) ) end ) addEventHandler ( 'onPlayerQuit', root, function ( ) local veh = getPedOccupiedVehicle ( source ) if veh then destroyElement ( veh ) end for k,v in ipairs( getElementsByType ( 'vehicle' ) ) do if getElementData ( v, 'fromMarker' ) then if getPlayerSerial ( source ) == getElementData ( v, 'owner' ) then destroyElement ( v ) end end end end ) addEventHandler ( 'onVehicleStartEnter', root, function ( player, seat ) if getElementData ( source, 'fromMarker' ) then if seat == 0 then local acc = getPlayerAccount ( player ) if isGuestAccount ( acc ) then cancelEvent ( ) return outputChatBox ( '!You must be MO7H', player ) end local accName = getAccountName ( acc ) cancelEvent ( ) return outputChatBox ( '!You must be MO7H', player ) end end end end )
-
برستجي شوف لو تقدر تلب الأكواد زيه الى الجروب واقلبها الأكواد حجت بياأأأأأااااااان -------------------------------- local spots = { -- size -- r, g, b -- a -- { x, y, z, _, size, r, g, b, a }, { 1218.8181152344, -1647.9377441406, 11.796875, _, 1.5, 255, 255, 255, 255 }, { 1219.8000488281, -1655.8000488281, 11.800000190735, _, 1.5, 255, 0, 0, 255 } } --- Cars = { -- ['Name'] = ID ['Enforcer'] = 427, ['FBI Rancher'] = 490, ['S.W.A.T'] = 601, ['FBI Truck'] = 528, ['Cheetah'] = 415 } -------------------------------- -------------------------------- for k,v in ipairs( spots ) do createMarker ( v[1],v[2],v[3] - 1, 'cylinder', v[5], v[6], v[7], v[8], v[9] ) end for k,v in ipairs( getElementsByType ( 'marker', resourceRoot ) ) do setElementData ( v, 'fromMode', true ) end function getIDFromName ( name ) for k,v in pairs( Cars ) do if name == k then return v end end return nil end GUIEditor = { window = { }, grid = { }, button = { } } addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(0.3512,0.2567,0.2825,0.6233,"Car SWAT By Scorpio",true) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) ---- GUIEditor.grid[1] = guiCreateGridList(0.0619,0.0615,0.8761,0.6471,true,GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.grid[1],"Name",0.9) for k,v in pairs( Cars ) do local row = guiGridListAddRow ( GUIEditor.grid[1] ) guiGridListSetItemText ( GUIEditor.grid[1], row, 1, k, false, false ) end ---- GUIEditor.button[1] = guiCreateButton(0.0664,0.7326,0.8628,0.1016,"Selection",true,GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(0.0664,0.869,0.8628,0.1016,"Close",true,GUIEditor.window[1]) end ) addEventHandler ( 'onClientMarkerHit', root, function ( element ) if element == localPlayer then if getElementData ( source, 'fromMode' ) then if isPedInVehicle ( element ) then return end if getElementData ( element, 'Admin' ) then guiSetVisible ( GUIEditor.window[1], true ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) else outputChatBox ( '* You must be SWAT !', 200, 0, 0, true ) end end end end ) addEventHandler ( 'onClientGUIClick', root, function ( ) if source == GUIEditor.button[1] then local row, col = guiGridListGetSelectedItem ( GUIEditor.grid[1] ) if row and col and row ~= -1 and col ~= -1 then local name = guiGridListGetItemText ( GUIEditor.grid[1], row, col ) local id = getIDFromName ( name ) triggerServerEvent ( 'onVehicleCreate', localPlayer, id ); guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else outputChatBox ( 'Choose a car from painting', 0, 0, 255, true ); end elseif source == GUIEditor.button[2] then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) end end ) addEventHandler ( 'onClientGUIDoubleClick', root, function ( ) if source == GUIEditor.grid[1] then local row, col = guiGridListGetSelectedItem ( GUIEditor.grid[1] ) if row and col and row ~= -1 and col ~= -1 then local name = guiGridListGetItemText ( GUIEditor.grid[1], row, col ) local id = getIDFromName ( name ) triggerServerEvent ( 'onVehicleCreate', localPlayer, id ); guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else outputChatBox ( 'Choose a car from painting', 0, 0, 255, true ); end end end )
-
شباب ابي كود الي هو ماركر فيه سيارة محد يقدر يستخدم الماركر غير الي منضم في جروب معين فس المود حج العقرب + محد يقدر يسرق السيارة ابداً ولا يركبها غير الي منضم في الجروب لكن يقدر يرب جمبو وشكراً
-
الميتا "Jamrawy" version="1.0" type="script" />
-
يعطيني في اف 8 ERROR: Couldn't find script k.lua for resource kil Loading of resource 'kil' failed
-
ما ظبت -- # Server Side : addEventHandler("onPlayerWasted",getRootElement(), function ( ) if ( getElementData ( source , "Group" ) == "MO7H" ) then spawnPlayer ( source , 1319.19921875, 746.8994140625, 16 ) end end )
-
م ظبت ذا الأكواد addEventHandler("onPlayerWasted",getRootElement(), function ( ) if ( getElementData ( source , "Group" ) == "MO7H" ) then spawnPlayer ( source , 1319.19921875, 746.8994140625, 16 ) end end )
-
مو الغط منكم انتم لما تعطوني اكواد راح اقرئها + اجرب واشوف واستعمل لين اتعلم يعني لو انت عطيتني كود راح افضل اجرب + ما انسا اي ااحد بالدعاء
-
لا لما يموت الي منضم ينتقل الى مكان
-
ما كنت ادري وش نظام المود,, + الغلط منه يستخدم مود ما يعرف له , اقول ما اعرف اسوي كود واحد وتقول الغلط مني انا لو اعرف اسوي كنت سويت بس ما اعرف اسوي قيم مود كامل ولا حتا كود + لو تبي تساعد ساعد كل شوي تقول سوي وانا لين الحين اقرئ شروحات ولما اجي اسوي الغبط + ما يجي معي صح
-
ما اعرف اسوي كود كل ما احاول الغبط
-
مشكور لكن معلش لو طولت معاك ابي كود جروب سيستم الي منضم في الجروب ينتقل الى مكان وانا احط الأحدثيات وشكراً
-
بيان ممكن تعلمني ميف تجمع الأكواد؟
-
local thePlayer = getPlayerFromName ( "هنا اسم الزر" ) if thePlayer then showCursor ( thePlayer, true ) if isCursorShowing ( thePlayer ) then outputChatBox ( "هنا كلام يطلع في الأتشات عند تشغيل المود" ) end end كذا صح؟
-
اوك معلش ابي المساعدة الأخيرة ابي لما يضغت على زر يخفي النوافذ مثلاً في الوحة زر يقول كانسل اضغت عليه يسكر اللوحة
-
شباب انا سويت نافذة وسيوت زر في النافذة ابي لما احد يضغت على الزر تختفي اللوحة الي انا مسويها و تزهرو لوحة ثانية ابي المساعدات* لا تسوي الكود بي ابي اشوف بأعرف اسوي ولا لاء* وردلكم خبر
-
مشكور يابرستجي + ابي منك خدمة تعلمني كيف تستخدنم الويكي انا اجي استخدم الويكي كل مالا اسوي مود يخرب ما يشتغل + ما اعرف السبب+ ما اعرف اجمع الأكواد لو انت فاضي الأيام زي علمني
-
ابـــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــي مساعــــــــــــــــــــــــــــــــــدة
-
ابي اعدل عليه يعني ازيد اشياء مثل ماركر انتقال لمود جروب سيستم + بدل ما اسوي باب واحد اسوي بابين وزي الأكواد الي انا مسويها + ما نفعت local Object = createObject ( 980, 1319.19921875, 746.8994140625, 16 0, 0, 267.99499511719 ) local Marker = createMarker ( 1318.3000488281, 747.09997558594, 13.39999961853 'cylinder', 15, 0, 0, 0, 0 ) local Open = false function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then if ( getElementData( player , "Group" ) == "MO7H" ) then if not Open then moveObject ( Object, 1500, 1319.19921875, 746.8994140625, 10.3 ) else moveObject ( Object, 1500, 1319.19921875, 746.8994140625, 16 ) end Open = not Open else outputChatBox ( '* You must be (MO7H) !', player, 200, 0, 0, true ) end end end addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( v, 'tab', 'down', OpenObject ) end end ) addEventHandler ( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', OpenObject ) end ) ------------------------ local Object = createObject ( 980, 1319.19921875, 746.8994140625, 16 0, 0, 267.99499511719 ) local Marker = createMarker ( 1318.3000488281, 747.09997558594, 13.39999961853 'cylinder', 15, 0, 0, 0, 0 ) local Open = false function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then if ( getElementData( player , "Group" ) == "MO7H" ) then if not Open then moveObject ( Object, 1500, 1319.19921875, 746.8994140625, 10.3 ) else moveObject ( Object, 1500, 1319.19921875, 746.8994140625, 16 ) end Open = not Open else outputChatBox ( '* You must be (MO7H) !', player, 200, 0, 0, true ) end end end addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( v, 'tab', 'down', OpenObject ) end end ) addEventHandler ( 'onPlayerJoin', root, function ( ) bindKey ( source, 'tab', 'down', OpenObject ) end ) -------------- local x, y, z = 1263.19921875, 742.3994140625, 13 local size = 1.5 local Xtogo, Ytogo, Ztogo = 1609.6018066406, -1714.0665283203, 6.21875 local r, g, b = 125, 122, 132 local marker = createMarker ( x, y, z - 1, 'cylinder', size, r, g, b, 255 ) addEventHandler("onMarkerHit",marker, function ( element ) if ( getElementType ( element ) == ( "player" ) ) then if ( getElementData( player , "Group" ) == "MO7H" ) then outputChatBox("ممتلكات للأدمن",player) return end setElementPosition ( element , Xtogo, Ytogo, Ztogo ) outputChatBox(" مرحباً بك داخل البيت",player) end end ) function GetPlayerACLGroup ( player , Console ) if ( not player or not Group ) then return end if ( not getPlayerAccount ( player ) ) then return end if ( isGuestAccount ( getPlayerAccount ( player ) ) ) then return end if ( not aclGetGroup ( tostring (Group ) ) ) then return end if ( getElementData( player , "Group" ) == "MO7H" ) then return player,Group else return false end end وابي كود اخير الي هو لما يموت الي منضم في جروب سيستم الي هو حج العقرب ينتقل لمكان احط له الأحدثيات وشكراً
-
ابي مبرمج يعلمني كيف استعمل الويكي صح لأني استعملو الغبط وما راح اقدر اسوي كذا مودات ياريت مبرمج يكون فاضي يضفني اسكايبي kris.allen68 or hamou.king1 وشكراً
-
يالغالي انا رحت الموضع الي انت عطيتني اياهم في البداية اول ما كتبت وانت لغبطني -____________________________________________________________-
-
+ غير التيم لـ isObjectInACLGroup getPlayerAccount getAccountName استعمل ذي؟ isObjectInACLGroup getPlayerAccount getAccountName زي باس خلاني اجلس اسوي في كود لين الحين كان المساعدات غلط + ذي الأكواد الي استعملتها function createClaymore ( x,y,z, creator ) local x,y,z = getElementPosition ( creator ) local claymoreObject = createObject ( 1945, x, y, z - 1, 0, 0, 90 ) local claymoreCol = createColSphere ( x, y, z, 1 ) setElementData ( claymoreCol , "type", "claymore" ) setElementData ( claymoreCol, "object", claymoreObject ) setElementData ( claymoreCol, "creatorPlayer", creator ) end function claymoreHit ( player, matchingDimension ) if getElementData ( source, "type" ) == "claymore" then local claymoreObject = getElementData ( source, "object" ) local claymoreCreator = getElementData ( source, "creatorPlayer" ) local x,y,z = getElementPosition ( source ) createExplosion ( x,y,z, 12, claymoreCreator ) destroyElement ( claymoreObject ) destroyElement ( source ) end end addEventHandler ( "onColShapeHit", getRootElement(), claymoreHit ) unction consoleCreateMarker ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) -- create a cylindrical marker next to the player: local theMarker = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) if ( theMarker ) then outputConsole ( "Marker created successfully", thePlayer ) else outputConsole ( "Failed to create marker", thePlayer ) end end end addCommandHandler ( "createmarker", consoleCreateMarker لكن ابقي ما حطيت الأحدثيات
-
ابي كود لو احد خش منطقة معينة تجري وراه الصواريخ لين تفجو + يموت ولكن الصواريخ ما تهاجم الأدمن