Jump to content

مشكلة في مقري ><


Recommended Posts

السلام عليكم ورحمة الله وبركاتة كيفكم شباب انشالله بخير ..المهم ندخل صلب الموضوع

برمجت مقر .. والبرمجة تمام 100% بس فيه مشكلة وحدة التصميم حقت المقر اختفى :shock:

مدري ليه اختفى تعرفون السبب؟ لا تقصرون معاي

Link to comment
AircraftIdSpawn = { -- مكان سسباون الطائرات 
{ 1033.62170, 1746.23535, 10.82031 }, -- احداثيات 
} 
  
abady1 = createMarker( 1050.88416, 1791.06848, 10.82031, 'cylinder', 1.7000000476837, 100, 0, 0, 255 ) -- ماركر انتقال 
abady2 = createMarker( 1064.15601, 1832.52380, 10.82031, 'cylinder', 1.7000000476837, 100, 0, 0, 255 ) -- ماركر انتقال 2 
abady3 = createMarker( 1075.95703, 1743.85425, 11.78396, '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, 1235 ) -- لا داعي للتغيير  
abady5 = createMarker( 1079.62061, 1746.97949, 10.82031, 'cylinder', 1.3, 255, 0, 0, 255 ) -- ماركر تعبئة الدم 
abady6 = createObject( 1064.2001953125, 1797.5, 12.60000038147, 12.5, 0, 0, 0 ) -- احداثيات الباب 
abady6_1 = createMarker( 2506.3000488281, 1602.4000244141, 12.5, 'cylinder', 7, 0, 0, 0, 0 ) -- ماركر الباب 
createBlip( 1064.00244, 1797.10864, 10.82031, 12.5, 23 )-- صورة بالخريطة 
local groupName = 'KsA' 
  
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 
  
addEventHandler('onMarkerHit', root, 
function( hPlayer ) 
    if ( source == abady1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 2568.1999511719, 1478.5999755859, 10.10000038147 ) return end 
            setElementPosition( hPlayer, 2568.1999511719, 1478.5999755859, 10.10000038147 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady2 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 2567, 1488.5, 10.10000038147 ) return end 
            setElementPosition( hPlayer, 2567, 1488.5, 10.10000038147 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady3 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            setElementPosition( hPlayer, 2195.4248046875, -1203.8707275391, 1049.0234375 ) 
            setElementInterior ( hPlayer, 6 ) 
            setElementDimension ( hPlayer, 1235  ) 
            output( getPlayerName( hPlayer ) .. ' اهلا بك في بيت عصابتك ' .. groupName, hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady4 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            setElementPosition( hPlayer, 2486.3999023438, 1525.4000244141, 9.8999996185303 ) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 
            output( getPlayerName( hPlayer ) .. ' انت خارج بيت عصابتك', hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady5 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName 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 then 
        moveObject( abady6, 1000, 1064.1999511719, 1797.5, 17.60000038147 ) -- حركة الباب للاعلى او للاسفل : 2506.3000488281, 1602.4000244141, 18.5 
        --  abady6, 1000 , 1000 = سرعت الباب 
        end   
    end 
end 
) 
  
addEventHandler('onMarkerLeave', abady6_1, 
function( hPlayer ) 
    if getElementData( hPlayer, 'Group' ) == groupName then 
        moveObject( abady6, 1000, 1064.1999511719, 1797.5, 12.60000038147 ) -- عودة الباب لمكانه 
    -- سرعة الرجوع : 1000 
    end 
end 
) 
  
addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), 
 function(player,seat) 
  if getElementData( player, 'Group' ) == groupName then return end 
    if seat == 0 then 
    output("Group " .. groupName .. " Only", player, 255, 0, 0, true) 
    cancelEvent() 
  end 
end 
) 
  
onAbadyWasted = function() 
    if getElementData ( source , "Group" ) == groupName then 
            function sp( source ) 
            setElementPosition( source, 1075.91711, 1746.23267, 10.97053 ) -- لما يطلع من البيت وين يرسبن 
            setElementInterior ( source, 6 ) 
            setElementDimension ( source, 1235  ) 
            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 == 497 or id == 548 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 
) 

Link to comment
AircraftIdSpawn = { -- مكان سسباون الطائرات 
{ 1033.62170, 1746.23535, 10.82031 }, -- احداثيات 
} 
  
abady1 = createMarker( 1050.88416, 1791.06848, 10.82031, 'cylinder', 1.7000000476837, 100, 0, 0, 255 ) -- ماركر انتقال 
abady2 = createMarker( 1064.15601, 1832.52380, 10.82031, 'cylinder', 1.7000000476837, 100, 0, 0, 255 ) -- ماركر انتقال 2 
abady3 = createMarker( 1075.95703, 1743.85425, 11.78396, '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, 1235 ) -- لا داعي للتغيير  
abady5 = createMarker( 1079.62061, 1746.97949, 10.82031, 'cylinder', 1.3, 255, 0, 0, 255 ) -- ماركر تعبئة الدم 
abady6 = createObject( 1064.2001953125, 1797.5, 12.60000038147, 12.5, 0, 0, 0 ) -- احداثيات الباب 
abady6_1 = createMarker( 2506.3000488281, 1602.4000244141, 12.5, 'cylinder', 7, 0, 0, 0, 0 ) -- ماركر الباب 
createBlip( 1064.00244, 1797.10864, 10.82031, 12.5, 23 )-- صورة بالخريطة 
local groupName = 'KsA' 
  
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 
  
addEventHandler('onMarkerHit', root, 
function( hPlayer ) 
    if ( source == abady1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 2568.1999511719, 1478.5999755859, 10.10000038147 ) return end 
            setElementPosition( hPlayer, 2568.1999511719, 1478.5999755859, 10.10000038147 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady2 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 2567, 1488.5, 10.10000038147 ) return end 
            setElementPosition( hPlayer, 2567, 1488.5, 10.10000038147 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady3 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            setElementPosition( hPlayer, 2195.4248046875, -1203.8707275391, 1049.0234375 ) 
            setElementInterior ( hPlayer, 6 ) 
            setElementDimension ( hPlayer, 1235  ) 
            output( getPlayerName( hPlayer ) .. ' اهلا بك في بيت عصابتك ' .. groupName, hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady4 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            setElementPosition( hPlayer, 2486.3999023438, 1525.4000244141, 9.8999996185303 ) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 
            output( getPlayerName( hPlayer ) .. ' انت خارج بيت عصابتك', hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady5 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName 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 then 
        moveObject( abady6, 1000, 1064.1999511719, 1797.5, 17.60000038147 ) -- حركة الباب للاعلى او للاسفل : 2506.3000488281, 1602.4000244141, 18.5 
        --  abady6, 1000 , 1000 = سرعت الباب 
        end   
    end 
end 
) 
  
addEventHandler('onMarkerLeave', abady6_1, 
function( hPlayer ) 
    if getElementData( hPlayer, 'Group' ) == groupName then 
        moveObject( abady6, 1000, 1064.1999511719, 1797.5, 12.60000038147 ) -- عودة الباب لمكانه 
    -- سرعة الرجوع : 1000 
    end 
end 
) 
  
addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), 
 function(player,seat) 
  if getElementData( player, 'Group' ) == groupName then return end 
    if seat == 0 then 
    output("Group " .. groupName .. " Only", player, 255, 0, 0, true) 
    cancelEvent() 
  end 
end 
) 
  
onAbadyWasted = function() 
    if getElementData ( source , "Group" ) == groupName then 
            function sp( source ) 
            setElementPosition( source, 1075.91711, 1746.23267, 10.97053 ) -- لما يطلع من البيت وين يرسبن 
            setElementInterior ( source, 6 ) 
            setElementDimension ( source, 1235  ) 
            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 == 497 or id == 548 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 
) 

الماب وين اصلالا؟ ههه + انت مسويه على ال guimasseg حق جراند العرب :lol:

Link to comment
AircraftIdSpawn = { -- مكان سسباون الطائرات 
{ 1033.62170, 1746.23535, 10.82031 }, -- احداثيات 
} 
  
abady1 = createMarker( 1050.88416, 1791.06848, 10.82031, 'cylinder', 1.7000000476837, 100, 0, 0, 255 ) -- ماركر انتقال 
abady2 = createMarker( 1064.15601, 1832.52380, 10.82031, 'cylinder', 1.7000000476837, 100, 0, 0, 255 ) -- ماركر انتقال 2 
abady3 = createMarker( 1075.95703, 1743.85425, 11.78396, '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, 1235 ) -- لا داعي للتغيير  
abady5 = createMarker( 1079.62061, 1746.97949, 10.82031, 'cylinder', 1.3, 255, 0, 0, 255 ) -- ماركر تعبئة الدم 
abady6 = createObject( 1064.2001953125, 1797.5, 12.60000038147, 12.5, 0, 0, 0 ) -- احداثيات الباب 
abady6_1 = createMarker( 2506.3000488281, 1602.4000244141, 12.5, 'cylinder', 7, 0, 0, 0, 0 ) -- ماركر الباب 
createBlip( 1064.00244, 1797.10864, 10.82031, 12.5, 23 )-- صورة بالخريطة 
local groupName = 'KsA' 
  
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 
  
addEventHandler('onMarkerHit', root, 
function( hPlayer ) 
    if ( source == abady1 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 2568.1999511719, 1478.5999755859, 10.10000038147 ) return end 
            setElementPosition( hPlayer, 2568.1999511719, 1478.5999755859, 10.10000038147 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady2 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            if isPedInVehicle( hPlayer ) then setElementPosition( getPedOccupiedVehicle( hPlayer ), 2567, 1488.5, 10.10000038147 ) return end 
            setElementPosition( hPlayer, 2567, 1488.5, 10.10000038147 ) 
        else 
        output( groupName .. ' only ', hPlayer, 255, 0, 0, false ) 
        end 
    elseif ( source == abady3 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            setElementPosition( hPlayer, 2195.4248046875, -1203.8707275391, 1049.0234375 ) 
            setElementInterior ( hPlayer, 6 ) 
            setElementDimension ( hPlayer, 1235  ) 
            output( getPlayerName( hPlayer ) .. ' اهلا بك في بيت عصابتك ' .. groupName, hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady4 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName then 
            setElementPosition( hPlayer, 2486.3999023438, 1525.4000244141, 9.8999996185303 ) 
            setElementInterior ( hPlayer, 0 ) 
            setElementDimension ( hPlayer, 0  ) 
            output( getPlayerName( hPlayer ) .. ' انت خارج بيت عصابتك', hPlayer, 0, 255, 0, false ) 
        end 
    elseif ( source == abady5 ) then 
        if getElementData( hPlayer, 'Group' ) == groupName 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 then 
        moveObject( abady6, 1000, 1064.1999511719, 1797.5, 17.60000038147 ) -- حركة الباب للاعلى او للاسفل : 2506.3000488281, 1602.4000244141, 18.5 
        --  abady6, 1000 , 1000 = سرعت الباب 
        end   
    end 
end 
) 
  
addEventHandler('onMarkerLeave', abady6_1, 
function( hPlayer ) 
    if getElementData( hPlayer, 'Group' ) == groupName then 
        moveObject( abady6, 1000, 1064.1999511719, 1797.5, 12.60000038147 ) -- عودة الباب لمكانه 
    -- سرعة الرجوع : 1000 
    end 
end 
) 
  
addEventHandler("onVehicleStartEnter", getResourceRootElement(getThisResource()), 
 function(player,seat) 
  if getElementData( player, 'Group' ) == groupName then return end 
    if seat == 0 then 
    output("Group " .. groupName .. " Only", player, 255, 0, 0, true) 
    cancelEvent() 
  end 
end 
) 
  
onAbadyWasted = function() 
    if getElementData ( source , "Group" ) == groupName then 
            function sp( source ) 
            setElementPosition( source, 1075.91711, 1746.23267, 10.97053 ) -- لما يطلع من البيت وين يرسبن 
            setElementInterior ( source, 6 ) 
            setElementDimension ( source, 1235  ) 
            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 == 497 or id == 548 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 
) 

الماب وين اصلالا؟ ههه + انت مسويه على ال guimasseg حق جراند العرب :lol:

خهخهخخهخهخهخ انا مو مسوية حقت جراند العرب + ذي كودات جاتني جاهزة :) + صلحتة ؟ وشو كانت المشكلة !

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...