Jump to content

مساعده بسكربت فتح الابواب بزر " تاب " لتيم البوليس


Recommended Posts

السلام عليكم ورحمه الله وبركاته

ككيفكم شباب عساكم بخخير

#$

ععندي مشكله بسكربت فتح الابواب لـ تيم البوليس فقط !

ياليت تساعدوني !!

Server:

function createTheGate () 
    myGate1 = createObject (2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
    myGate2 = createObject (2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)    
    myGate3 = createObject (2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
    myGate4 = createObject (2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
    myGate5 = createObject (2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
    myGate6 = createObject (2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
    myGate7 = createObject (2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
    myGate8 = createObject (2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
    myGate9 = createObject (2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
    myGate10 = createObject (2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
    myGate11 = createObject (2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
    myGate12 = createObject (2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
    myGate13 = createObject (2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
    myGate14 = createObject (2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
    myGate15 = createObject (2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
    myGate16 = createObject (2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
    myGate17 = createObject (2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
    myGate18 = createObject (2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
    myGate19 = createObject (2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
    myGate20 = createObject (2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
    myGate21 = createObject (2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
    myGate22 = createObject (2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
    myGate23 = createObject (2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
    myGate24 = createObject (2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
    myGate25 = createObject (2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
    myGate26 = createObject (2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
    myGate27 = createObject (2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
    myGate28 = createObject (2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
    myGate29 = createObject (2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
    myGate30 = createObject (2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
    myGate31 = createObject (2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
    myGate32 = createObject (2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
    myGate33 = createObject (2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
    myGate34 = createObject (2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
    myGate35 = createObject (2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
    myGate36 = createObject (2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
    myGate37 = createObject (2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
    myGate38 = createObject (2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
    myGate39 = createObject (2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) 
  
  
function openMyGate ( player ) 
local Team = getPlayerTeam ( player ) 
    if ( Team == getTeamFromName ( "Police" ) ) then 
        moveObject ( myGate1,2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate2,2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)    
        moveObject ( myGate3,2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
        moveObject ( myGate4,2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate5,2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate6,2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate7,2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate8,2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate9,2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate10,2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
        moveObject ( myGate11,2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate12,2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate13,2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate14,2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate15,2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate16,2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate17,2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate18,2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate19,2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate20,2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate21,2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate22,2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate23,2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate24,2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate25,2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate26,2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate27,2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate28,2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate29,2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate30,2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate31,2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate32,2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate33,2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate34,2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate35,2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate36,2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate37,2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate38,2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate39,2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
    end 
end  
addCommandHandler("beopen",openMyGate) 
bindKey("Tab","down","beopen") 
  
function movingMyGateBack ( player ) 
local Team = getPlayerTeam ( player ) 
    if ( Team == getTeamFromName ( "Police" ) ) then 
        moveObject ( myGate1,2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate2,2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)    
        moveObject ( myGate3,2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
        moveObject ( myGate4,2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate5,2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate6,2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate7,2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate8,2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate9,2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate10,2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
        moveObject ( myGate11,2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate12,2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate13,2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate14,2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate15,2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        moveObject ( myGate16,2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate17,2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate18,2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate19,2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate20,2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate21,2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate22,2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate23,2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate24,2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate25,2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        moveObject ( myGate26,2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate27,2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate28,2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate29,2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate30,2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate31,2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate32,2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        moveObject ( myGate33,2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate34,2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate35,2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate36,2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate37,2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate38,2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
        moveObject ( myGate39,2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
    end 
end 
addCommandHandler("beclose",movingMyGateBack) 
bindKey("Tab","down","beclose") 

بانتظظارككم #

[email protected]

:mrgreen:

Edited by Guest
Link to comment
isGateOpened = "false" 
function createTheGate () 
    myGate1 = createObject ( 988, 313.599, -61.799, 1.6499, 0, 0, 0 ) 
    myGate2 = createObject ( 988, 319, -61.799, 1.6499, 0, 0, 0 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) 
  
  
function gateControl ( player ) 
local Team = getPlayerTeam ( player ) 
    if ( Team == getTeamFromName ( "Police" ) ) then 
    if isGateOpened == "false" then 
        moveObject ( myGate1, 2500, 308.5, -61.799, 1.6499 ) 
        moveObject ( myGate2, 2500, 324, -61.799, 1.6499 ) 
        isGateOpened = "true" 
        else 
         moveObject ( myGate1, 2500, 313.599, -61.799, 1.6499 ) 
         moveObject ( myGate2, 2500, 319, -61.799, 1.6499 ) 
         isGateOpened = "false" 
    end 
end 
end 
  
  
addEventHandler("onResourceStart",root, 
function () 
for i,player in ipairs(getElementsByType("player")) do 
bindKey ( player, "Tab", "down", gateControl ) 
end 
end) 
  
addEventHandler("onPlayerJoin",root, 
function () 
bindKey ( source, "Tab", "down", gateControl ) 
end) 
  

^ غير مجرب

Edited by Guest
Link to comment

امسح

bindKey("Tab","down","beopen") 
bindKey("Tab","down","beclose") 

و اضف ذي الفنكشن

addEventHandler("onPlayerJoin",root, 
    function () 
        bindKey(source,"Tab","down","beclose") 
        bindKey(source,"Tab","down","beopen") 
    end 
) 

و سوي ريستارت للمود

و اخرج و ادخل

و جرب

Link to comment
الححين وش المشكله ب الضبط ؟

لمششكلة وآنـآآ آخووك ان الاخ الحبيب

Professor

New User

Posts: 2

والوآآضح من المضوع ان المبرمجين بداية تكوون لمسستين عـ المود

الماركر يعطي فلووس , صناعة ماركر , ماركر دم

والاخخ الحبيب مدررعم علينا جايب كود مدري من ويين

يقول عدلوه

بمـآآ انه Posts : 2

اكييد لاقييناا يعني سسوو لي كود ولآآ see u! :D

Link to comment
الححين وش المشكله ب الضبط ؟

لمششكلة وآنـآآ آخووك ان الاخ الحبيب

Professor

New User

Posts: 2

والوآآضح من المضوع ان المبرمجين بداية تكوون لمسستين عـ المود

الماركر يعطي فلووس , صناعة ماركر , ماركر دم

والاخخ الحبيب مدررعم علينا جايب كود مدري من ويين

يقول عدلوه

بمـآآ انه Posts : 2

اكييد لاقييناا يعني سسوو لي كود ولآآ see u! :D

لزوم كود جاهز؟؟

Link to comment
الححين وش المشكله ب الضبط ؟

لمششكلة وآنـآآ آخووك ان الاخ الحبيب

Professor

New User

Posts: 2

والوآآضح من المضوع ان المبرمجين بداية تكوون لمسستين عـ المود

الماركر يعطي فلووس , صناعة ماركر , ماركر دم

والاخخ الحبيب مدررعم علينا جايب كود مدري من ويين

يقول عدلوه

بمـآآ انه Posts : 2

اكييد لاقييناا يعني سسوو لي كود ولآآ see u! :D

لزوم كود جاهز؟؟

مو آنـآاا اطلب هو يبي اححد يسسوي لهه ابواب تنفتحح بزر

Link to comment
سوي

/debugscript 3

وضع الاخطاء الي تطلع لك

لما تشغل السكربت

او لما تضغط الزر تاب

سويتها بس ماطلع لي اي خخطا !

المود ششغال

انا مسوي الابواب بـ ماب اديتور

يعني لازم اضيف الاحداثيات ؟

Link to comment
احداثيات اوبجت الابواب:
createObject (43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)    
createObject (47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
createObject (34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
createObject (38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
createObject (34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (14.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (18.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
createObject (14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 

حق الأوبجيكت؟ ID وين رقم الـ

Link to comment
احداثيات اوبجت الابواب:
createObject (43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)    
createObject (47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
createObject (34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
createObject (38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
createObject (34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (14.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (18.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
createObject (14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 

حق الأوبجيكت؟ ID وين رقم الـ

createObject (model="2930",43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)    
createObject (model="2930",47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
createObject (model="2930",34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
createObject (model="2930",34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",14.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (model="2930",18.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (model="2930",22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (model="2930",26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
createObject (model="2930",30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (model="2930",34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (model="2930",38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (model="2930",38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (model="2930",34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (model="2930",30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (model="2930",26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (model="2930",22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (model="2930",18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
createObject (model="2930",14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 

تم تعديلها !

Link to comment
احداثيات اوبجت الابواب:
createObject (43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)    
createObject (47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
createObject (34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
createObject (38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
createObject (34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
createObject (22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (14.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (18.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
createObject (14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 

حق الأوبجيكت؟ ID وين رقم الـ

createObject (model="2930",43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)    
createObject (model="2930",47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
createObject (model="2930",34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
createObject (model="2930",34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
createObject (model="2930",38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
createObject (model="2930",14.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (model="2930",18.5, 1978.5, 30, 17.5, 0, 0, 186) 
createObject (model="2930",22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (model="2930",26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
createObject (model="2930",30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (model="2930",34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (model="2930",38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
createObject (model="2930",38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (model="2930",34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (model="2930",30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (model="2930",26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
createObject (model="2930",22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
createObject (model="2930",18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
createObject (model="2930",14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 

تم تعديلها !

شل model=

فقط حط 2930 بدون ال" "

modelid: A whole integer specifying the GTASA object model ID.
Link to comment
    function createTheGate () 
        myGate1 = createObject (2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        myGate2 = createObject (2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)   
        myGate3 = createObject (2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
        myGate4 = createObject (2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate5 = createObject (2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate6 = createObject (2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate7 = createObject (2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate8 = createObject (2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
        myGate9 = createObject (2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate10 = createObject (2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
        myGate11 = createObject (2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate12 = createObject (2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate13 = createObject (2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate14 = createObject (2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate15 = createObject (2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate16 = createObject (2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate17 = createObject (2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        myGate18 = createObject (2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate19 = createObject (2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
        myGate20 = createObject (2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate21 = createObject (2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
        myGate22 = createObject (2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate23 = createObject (2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate24 = createObject (2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        myGate25 = createObject (2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        myGate26 = createObject (2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
        myGate27 = createObject (2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
        myGate28 = createObject (2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate29 = createObject (2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
        myGate30 = createObject (2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate31 = createObject (2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate32 = createObject (2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate33 = createObject (2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        myGate34 = createObject (2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate35 = createObject (2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate36 = createObject (2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        myGate37 = createObject (2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate38 = createObject (2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
        myGate39 = createObject (2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
    end 
    addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) 
      
      
    function openMyGate ( player ) 
    local Team = getPlayerTeam ( player ) 
        if ( Team == getTeamFromName ( "Police" ) ) then 
            moveObject ( myGate1,2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate2,2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)   
            moveObject ( myGate3,2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
            moveObject ( myGate4,2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate5,2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate6,2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate7,2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate8,2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate9,2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate10,2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
            moveObject ( myGate11,2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate12,2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate13,2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate14,2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate15,2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate16,2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate17,2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate18,2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate19,2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate20,2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate21,2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate22,2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate23,2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate24,2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate25,2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate26,2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate27,2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate28,2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate29,2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate30,2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate31,2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate32,2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate33,2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate34,2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate35,2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate36,2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate37,2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate38,2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate39,2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        end 
    end 
    addCommandHandler("beopen",openMyGate) 
    bindKey("Tab","down","beopen") 
      
    function movingMyGateBack ( player ) 
    local Team = getPlayerTeam ( player ) 
        if ( Team == getTeamFromName ( "Police" ) ) then 
            moveObject ( myGate1,2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate2,2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)   
            moveObject ( myGate3,2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
            moveObject ( myGate4,2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate5,2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate6,2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate7,2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate8,2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate9,2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate10,2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
            moveObject ( myGate11,2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate12,2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate13,2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate14,2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate15,2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate16,2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate17,2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate18,2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate19,2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate20,2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate21,2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate22,2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate23,2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate24,2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate25,2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate26,2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate27,2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate28,2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate29,2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate30,2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate31,2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate32,2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate33,2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate34,2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate35,2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate36,2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate37,2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate38,2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate39,2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        end 
    end 
    addCommandHandler("beclose",movingMyGateBack) 
    bindKey("Tab","down","beclose") 

تم تعديله مره اخرى lool

Link to comment
    function createTheGate () 
        myGate1 = createObject (2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        myGate2 = createObject (2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)   
        myGate3 = createObject (2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
        myGate4 = createObject (2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate5 = createObject (2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate6 = createObject (2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate7 = createObject (2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate8 = createObject (2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
        myGate9 = createObject (2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate10 = createObject (2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
        myGate11 = createObject (2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate12 = createObject (2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate13 = createObject (2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate14 = createObject (2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate15 = createObject (2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate16 = createObject (2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate17 = createObject (2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        myGate18 = createObject (2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate19 = createObject (2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
        myGate20 = createObject (2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate21 = createObject (2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
        myGate22 = createObject (2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate23 = createObject (2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate24 = createObject (2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        myGate25 = createObject (2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        myGate26 = createObject (2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
        myGate27 = createObject (2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
        myGate28 = createObject (2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate29 = createObject (2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
        myGate30 = createObject (2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate31 = createObject (2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate32 = createObject (2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate33 = createObject (2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        myGate34 = createObject (2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate35 = createObject (2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate36 = createObject (2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        myGate37 = createObject (2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate38 = createObject (2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
        myGate39 = createObject (2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
    end 
    addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) 
      
      
    function openMyGate ( player ) 
    local Team = getPlayerTeam ( player ) 
        if ( Team == getTeamFromName ( "Police" ) ) then 
            moveObject ( myGate1,2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate2,2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)   
            moveObject ( myGate3,2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
            moveObject ( myGate4,2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate5,2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate6,2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate7,2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate8,2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate9,2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate10,2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
            moveObject ( myGate11,2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate12,2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate13,2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate14,2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate15,2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate16,2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate17,2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate18,2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate19,2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate20,2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate21,2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate22,2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate23,2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate24,2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate25,2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate26,2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate27,2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate28,2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate29,2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate30,2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate31,2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate32,2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate33,2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate34,2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate35,2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate36,2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate37,2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate38,2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate39,2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        end 
    end 
    addCommandHandler("beopen",openMyGate) 
    bindKey("Tab","down","beopen") 
      
    function movingMyGateBack ( player ) 
    local Team = getPlayerTeam ( player ) 
        if ( Team == getTeamFromName ( "Police" ) ) then 
            moveObject ( myGate1,2930,43.099998474121, 1981.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate2,2930,11.89999961853, 1994.9000244141, 25.60000038147, 17.5, 0, 0, 186)   
            moveObject ( myGate3,2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
            moveObject ( myGate4,2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate5,2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate6,2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate7,2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate8,2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate9,2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate10,2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
            moveObject ( myGate11,2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate12,2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate13,2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate14,2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate15,2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
            moveObject ( myGate16,2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate17,2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate18,2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate19,2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate20,2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate21,2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate22,2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate23,2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate24,2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate25,2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
            moveObject ( myGate26,2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate27,2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate28,2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate29,2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate30,2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate31,2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate32,2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
            moveObject ( myGate33,2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate34,2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate35,2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate36,2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate37,2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate38,2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
            moveObject ( myGate39,2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        end 
    end 
    addCommandHandler("beclose",movingMyGateBack) 
    bindKey("Tab","down","beclose") 

تم تعديله مره اخرى lool

  
isGateOpened = "false" 
  
        myGate1 = createObject ( 988, 313.599, -61.799, 1.6499, 0, 0, 0 ) 
        myGate2 = createObject ( 988, 319, -61.799, 1.6499, 0, 0, 0 ) 
        myGate3 = createObject (2930,47.900001525879, 1927.1999511719, 19.299999237061, 17.5, 0, 0, 186) 
        myGate4 = createObject (2930,34.599998474121, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate5 = createObject (2930,30.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate6 = createObject (2930,26.60000038147, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate7 = createObject (2930,22.700000762939, 1997.4000244141, 34.200000762939, 17.5, 0, 0, 186) 
        myGate8 = createObject (2930,18.89999961853, 1997.3000488281, 34.200000762939, 17.5, 0, 0, 186) 
        myGate9 = createObject (2930,38.799999237061, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate10 = createObject (2930,32.299999237061, 2001.6999511719, 36, 17.5, 0, 0, 186) 
        myGate11 = createObject (2930,34.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate12 = createObject (2930,30.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate13 = createObject (2930,26.700000762939, 1997.4000244141, 30.200000762939, 17.5, 0, 0, 186) 
        myGate14 = createObject (2930,22.700000762939, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate15 = createObject (2930,18.5, 1997.5, 30.200000762939, 17.5, 0, 0, 186) 
        myGate16 = createObject (2930,38.5, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate17 = createObject (2930,34.700000762939, 1997.4000244141, 25.60000038147, 17.5, 0, 0, 186) 
        myGate18 = createObject (2930,30.799999237061, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate19 = createObject (2930,26.799999237061, 1997.5, 25.60000038147, 17.5, 0, 0, 186) 
        myGate20 = createObject (2930,22.700000762939, 1997.3000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate21 = createObject (2930,38.799999237061, 1978.6999511719, 25.60000038147, 17.5, 0, 0, 186) 
        myGate22 = createObject (2930,34.799999237061, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate23 = createObject (2930,30.89999961853, 1978.8000488281, 25.60000038147, 17.5, 0, 0, 186) 
        myGate24 = createObject (2930,26.799999237061, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        myGate25 = createObject (2930,22.39999961853, 1978.5999755859, 25.60000038147, 17.5, 0, 0, 186) 
        myGate26 = createObject (2930,14.5, 1978.5, 30, 17.5, 0, 0, 186) 
        myGate27 = createObject (2930,18.5, 1978.5, 30, 17.5, 0, 0, 186) 
        myGate28 = createObject (2930,22.5, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate29 = createObject (2930,26.799999237061, 1978.6999511719, 30, 17.5, 0, 0, 186) 
        myGate30 = createObject (2930,30.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate31 = createObject (2930,34.799999237061, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate32 = createObject (2930,38.700000762939, 1978.5999755859, 30, 17.5, 0, 0, 186) 
        myGate33 = createObject (2930,38.700000762939, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        myGate34 = createObject (2930,34.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate35 = createObject (2930,30.799999237061, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate36 = createObject (2930,26.799999237061, 1978.6999511719, 34, 17.5, 0, 0, 186) 
        myGate37 = createObject (2930,22.39999961853, 1978.5999755859, 34, 17.5, 0, 0, 186) 
        myGate38 = createObject (2930,18.200000762939, 1978.5, 34, 17.5, 0, 0, 186) 
        myGate39 = createObject (2930,14.5, 1978.5999755859, 34, 17.5, 0, 0, 186) 
  
function gateControl ( player ) 
local Team = getPlayerTeam ( player ) 
    if ( Team == getTeamFromName ( "Police" ) ) then 
    if isGateOpened == "false" then 
            open(player) 
        isGateOpened = "true" 
        else 
         close(player) 
         isGateOpened = "false" 
    end 
end 
end 
  
  
addEventHandler("onResourceStart",root, 
function () 
for i,player in ipairs(getElementsByType("player")) do 
bindKey ( player, "Tab", "down", gateControl ) 
end 
end) 
  
addEventHandler("onPlayerJoin",root, 
function () 
bindKey ( source, "Tab", "down", gateControl ) 
end) 
  
function open(player) 
local target = getPedTarget ( player ) 
   if target == myGate1 then 
   moveObject ( myGate1, 2500, 308.5, -61.799, 1.6499 ) 
   elseif target == myGate2 then 
   moveObject ( myGate2, 2500, 324, -61.799, 1.6499 ) 
-- اكمل الكود بنفس الطريقه 
   end 
end 
  
function close(player) 
local target = getPedTarget ( player ) 
   if target == myGate1 then 
  moveObject ( myGate1, 2500, 313.599, -61.799, 1.6499 ) 
   elseif target == myGate2 then 
   moveObject ( myGate2, 2500, 319, -61.799, 1.6499 ) 
-- اكمل الكود بنفس الطريقه 
   end 
end 
  

اضف الاوبجكتات واكمل الكود

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...