Jump to content

Recommended Posts

slm loled

balahi wasa3o belkom m3aya xD

n7ab script hadha kima bankrob yabda kol 1h wa feha command nchof wa9te yabda wa gate1 wa gate4 itsakro mba3ad 3min mili yabda event :D

balahi 3awnoni wa 3ayachkom :wink:

function start( ) 
startmarker = createMarker ( 264.9, 1878.09998, -30.5, "cylinder", 1.5, 255, 0, 0, 170 ) 
entreterourist1 = createMarker ( 490.20001, 1995.69995, 54.5, "cylinder", 1.5, 255, 255, 0, 170 )  
elevator = createObject ( 3115, 271, 1886.69995, -30.8, 0, 0,0 ) 
keypad1 = createObject ( 2922, 270.10001, 1864.80005, 9.3, 0, 0,90 ) 
keypad2 = createObject ( 2922, 282.89999, 1867.09998, 9.3, 0, 0,90 ) 
keypad3 = createObject ( 2922, 300.29999, 1859.09998, 8.5, 0, 0,90 ) 
keypad4 = createObject ( 2922, 275.20001, 1821, 8.2, 0, 0,270 ) 
keypad5 = createObject ( 2922, 300.29999, 1821, 8.2, 0, 0,90 ) 
markerkeypad1 = createMarker ( 270.10001, 1864.80005, 7.3, "cylinder", 1.5, 255, 0, 0, 170 ) --GATE7 
markerkeypad2 = createMarker ( 282.89999, 1867.09998, 7.3, "cylinder", 1.5, 255, 255, 0, 170 ) --GATE6 
markerkeypad3 = createMarker ( 300.29999, 1859.09998, 6.5, "cylinder", 1.5, 255, 0, 255, 170 ) --GATE5 
markerkeypad4 = createMarker ( 275.20001, 1821, 6.2, "cylinder", 1.5, 0, 0, 255, 170 ) --GATE1 
markerkeypad5 = createMarker ( 300.29999, 1821, 6.2, "cylinder", 1.5, 0, 255, 0, 170 ) --GATE4 
gate1 = createObject ( 2951, 277.2998, 1821.69922, 6.8, 0, 0,0 ) 
gate3 = createObject ( 2951, 313.39999, 1842.30005, 6.8, 0, 0,0 ) 
gate2 = createObject ( 2951, 330.20001, 1842.30005, 6.8, 0, 0,0 ) 
gate4 = createObject ( 2951, 297.9, 1821.69995, 6.8, 0, 0,0 ) 
gate5 = createObject ( 2951, 297.70001, 1858.30005, 6.7, 0, 0,0 ) 
gate6 = createObject ( 2951, 283.10001, 1869.40002, 7.8, 0, 0,90 ) 
gate7 = createObject ( 2951, 268.89999, 1864, 7.8, 0, 0,0 ) 
  
  
exports.zombies:createZombie( 277.79999,1825.19995,7.8,0,0,0,0) 
exports.zombies:createZombie( 276.5,1825.30005,7.8,0,0,0,0) 
exports.zombies:createZombie( 279,1825.59998,7.8,0,0,0,0) 
exports.zombies:createZombie( 278.89999,1827.90002,7.7,0,0,0,0) 
exports.zombies:createZombie( 277.70001,1827.69995,7.7,0,0,0,0) 
exports.zombies:createZombie( 276.70001,1827.5,7.7,0,0,0,0) 
exports.zombies:createZombie( 278.60001,1829.59998,7.7,0,0,0,0) 
exports.zombies:createZombie( 277.39999,1829.59998,7.7,0,0,0,0) 
exports.zombies:createZombie( 276.29999,1829.5,7.7,0,0,0,0) 
exports.zombies:createZombie( 278.60001,1831.19995,7.7,0,0,0,0) 
exports.zombies:createZombie( 277.39999,1831.09998,7.7,0,0,0,0) 
exports.zombies:createZombie( 276.20001,1831.09998,7.7,0,0,0,0) 
exports.zombies:createZombie( 278.39999,1832.80005,7.7,0,0,0,0) 
exports.zombies:createZombie( 277.39999,1832.80005,7.7,0,0,0,0) 
exports.zombies:createZombie( 276.10001,1833,7.7,0,0,0,0) 
exports.zombies:createZombie( 278.29999,1834.69995,7.7,0,0,0,0) 
exports.zombies:createZombie( 277.39999,1834.80005,7.7,0,0,0,0) 
exports.zombies:createZombie( 276.20001,1835.09998,7.7,0,0,0,0) 
exports.zombies:createZombie( 277.89999,1836.80005,7.7,0,0,0,0) 
exports.zombies:createZombie( 277,1836.59998,7.7,0,0,0,0) 
exports.zombies:createZombie( 276.10001,1836.59998,7.7,0,0,0,0) 
exports.zombies:createZombie( 281.10001,1838,7.7,0,0,0,0) 
exports.zombies:createZombie( 281.39999,1839.30005,7.7,0,0,0,0) 
exports.zombies:createZombie( 285.89999,1838.90002,7.7,0,0,0,0) 
exports.zombies:createZombie( 286,1840.19995,7.7,0,0,0,0) 
exports.zombies:createZombie( 282.89999,1840.69995,7.7,0,0,0,0) 
exports.zombies:createZombie( 284.39999,1838.30005,7.7,0,0,0,0) 
exports.zombies:createZombie( 283.79999,1839.40002,7.7,0,0,0,0) 
exports.zombies:createZombie( 285.79999,1841.19995,7.7,0,0,0,0) 
exports.zombies:createZombie( 288,1838.80005,7.7,0,0,0,0) 
exports.zombies:createZombie( 289.39999,1840.19995,7.7,0,0,0,0) 
exports.zombies:createZombie( 291.10001,1838.80005,7.7,0,0,0,0) 
exports.zombies:createZombie( 291,1841,7.7,0,0,0,0) 
exports.zombies:createZombie( 291.89999,1839.90002,7.7,0,0,0,0) 
exports.zombies:createZombie( 296.29999,1838.59998,7.8,0,0,0,0) 
exports.zombies:createZombie( 297.5,1839.90002,7.8,0,0,0,0) 
exports.zombies:createZombie( 298.29999,1837.90002,7.8,0,0,0,0) 
exports.zombies:createZombie( 303.60001,1839.90002,7.7,0,0,0,0) 
exports.zombies:createZombie( 306.79999,1839.59998,7.7,0,0,0,0) 
exports.zombies:createZombie( 305.70001,1841.09998,7.7,0,0,0,0) 
exports.zombies:createZombie( 303.10001,1838.40002,7.7,0,0,0,0) 
exports.zombies:createZombie( 307.29999,1838.09998,7.7,0,0,0,0) 
exports.zombies:createZombie( 308.70001,1839.69995,7.7,0,0,0,0) 
exports.zombies:createZombie( 308.29999,1840.90002,7.7,0,0,0,0) 
exports.zombies:createZombie( 310.10001,1838.19995,7.7,0,0,0,0) 
exports.zombies:createZombie( 311.70001,1839.80005,7.8,0,0,0,0) 
exports.zombies:createZombie( 312.20001,1838.19995,7.8,0,0,0,0) 
exports.zombies:createZombie( 278.29999,1822.90002,7.8,0,0,0,0) 
exports.zombies:createZombie( 281.10001,1823.19995,7.7,0,0,0,0) 
exports.zombies:createZombie( 282.29999,1822.59998,7.8,0,0,0,0) 
exports.zombies:createZombie( 285,1824.69995,7.7,0,0,0,0) 
exports.zombies:createZombie( 282.79999,1824.5,7.7,0,0,0,0) 
exports.zombies:createZombie( 285.60001,1823,7.7,0,0,0,0) 
exports.zombies:createZombie( 313.60001,1839.69995,7.8,0,0,0,0) 
exports.zombies:createZombie( 314.20001,1840.90002,7.8,0,0,0,0) 
exports.zombies:createZombie( 314.5,1838.19995,7.8,0,0,0,0) 
exports.zombies:createZombie( 316.10001,1839.5,7.7,0,0,0,0) 
exports.zombies:createZombie( 318.10001,1838.30005,7.7,0,0,0,0) 
exports.zombies:createZombie( 320.10001,1841.09998,7.7,0,0,0,0) 
exports.zombies:createZombie( 320.79999,1838.5,7.7,0,0,0,0) 
exports.zombies:createZombie( 321.89999,1840.09998,7.7,0,0,0,0) 
exports.zombies:createZombie( 323.39999,1839,7.7,0,0,0,0) 
exports.zombies:createZombie( 326.60001,1840.09998,7.7,0,0,0,0) 
exports.zombies:createZombie( 330,1838.90002,7.8,0,0,0,0) 
exports.zombies:createZombie( 329.5,1840.40002,7.8,0,0,0,0) 
exports.zombies:createZombie( 330.5,1844.59998,7.7,0,0,0,0) 
exports.zombies:createZombie( 330,1847.59998,7.7,0,0,0,0) 
exports.zombies:createZombie( 313.70001,1847.5,7.7,0,0,0,0) 
exports.zombies:createZombie( 319.10001,1855.19995,7.7,0,0,0,0) 
exports.zombies:createZombie( 298.79999,1861.09998,8,0,0,0,0) 
exports.zombies:createZombie( 296.60001,1861.40002,8.1,0,0,0,0) 
exports.zombies:createZombie( 298.5,1864.59998,8.5,0,0,0,0) 
exports.zombies:createZombie( 296.60001,1865.5,8.6,0,0,0,0) 
exports.zombies:createZombie( 298.20001,1867,8.8,0,0,0,0) 
exports.zombies:createZombie( 297.29999,1868.80005,8.8,0,0,0,0) 
exports.zombies:createZombie( 295.5,1867.90002,8.8,0,0,0,0) 
exports.zombies:createZombie( 295.10001,1869.80005,8.8,0,0,0,0) 
exports.zombies:createZombie( 291.89999,1868.5,8.8,0,0,0,0) 
exports.zombies:createZombie( 291.70001,1870.59998,8.8,0,0,0,0) 
exports.zombies:createZombie( 288.60001,1870.59998,8.8,0,0,0,0) 
exports.zombies:createZombie( 288.29999,1868.90002,8.8,0,0,0,0) 
exports.zombies:createZombie( 292.20001,1869.40002,8.8,0,0,0,0) 
exports.zombies:createZombie( 289,1869.80005,8.8,0,0,0,0) 
exports.zombies:createZombie( 285.79999,1870.30005,8.8,0,0,0,0) 
exports.zombies:createZombie( 285.60001,1868.59998,8.8,0,0,0,0) 
exports.zombies:createZombie( 274.10001,1871.30005,8.8,0,0,0,0) 
exports.zombies:createZombie( 273.89999,1870.19995,8.8,0,0,0,0) 
exports.zombies:createZombie( 275.60001,1871.30005,8.8,0,0,0,0) 
exports.zombies:createZombie( 280.5,1871.19995,8.8,0,0,0,0) 
exports.zombies:createZombie( 279,1866.80005,8.8,0,0,0,0) 
exports.zombies:createZombie( 274.79999,1866,8.8,0,0,0,0) 
exports.zombies:createZombie( 272.89999,1865.90002,8.8,0,0,0,0) 
exports.zombies:createZombie( 276.60001,1865.40002,8.8,0,0,0,0) 
exports.zombies:createZombie( 278.20001,1861.59998,8.8,0,0,0,0) 
exports.zombies:createZombie( 274.70001,1861.5,8.8,0,0,0,0) 
exports.zombies:createZombie( 276.29999,1859.69995,9.8,0,0,0,0) 
exports.zombies:createZombie( 277.89999,1856,8.8,0,0,0,0) 
exports.zombies:createZombie( 274.29999,1856.40002,8.8,0,0,0,0) 
exports.zombies:createZombie( 271.79999,1856.19995,8.8,0,0,0,0) 
exports.zombies:createZombie( 269.39999,1854.40002,8.8,0,0,0,0) 
exports.zombies:createZombie( 266.39999,1854.90002,8.8,0,0,0,0) 
exports.zombies:createZombie( 266.20001,1857.90002,8.8,0,0,0,0) 
exports.zombies:createZombie( 266.29999,1860.09998,8.8,0,0,0,0) 
exports.zombies:createZombie( 266.60001,1862,8.8,0,0,0,0) 
exports.zombies:createZombie( 271.20001,1859,8.8,0,0,0,0) 
exports.zombies:createZombie( 271.5,1861.19995,8.8,0,0,0,0) 
exports.zombies:createZombie( 269.20001,1862.5,8.8,0,0,0,0) 
exports.zombies:createZombie( 268.79999,1866.59998,8.6,0,0,0,0) 
exports.zombies:createZombie( 270.60001,1881.40002,-29.5,0,0,0,0) 
addEventHandler ("onResoureStart",getRootElement(), start) 
  
  
function open_gate(hitElement) 
  if (getElementType(hitElement) == "player") then 
      if (getPlayerTeam ( hitElement ) and getTeamName ( getPlayerTeam ( hitElement ) ) == "Resistances") then 
            if ( source == startmarker) then 
                 moveObject ( elevator, 30000, 271, 1886.69995, 7) 
            elseif ( source == entreterourist1) then 
                 setElementPosition ( hitElement, 268.29999, 1890.30005, -28) 
-------------------------------------------------------------------------------------------------------- 
            elseif ( source == markerkeypad2) then 
                 moveObject ( gate6,20000, 283.10001, 1869.40002, 10)  
            elseif ( source == markerkeypad1) then 
                 moveObject ( gate7,20000, 268.89999, 1864, 10) 
            elseif ( source == markerkeypad3) then 
                 moveObject ( gate5,20000, 297.70001, 1858.30005, 9.7) 
                 moveObject ( gate3,20000, 313.39999, 1842.30005, 9.-- s8) -->
            end 
      end 
  
      if (getPlayerTeam ( hitElement ) and getTeamName ( getPlayerTeam ( hitElement ) ) == "Army") then 
                 if ( source == markerkeypad4) then 
                 moveObject ( gate1,20000, 277.2998, 1821.69922, 9) 
                 moveObject ( gate2,60000, 330.20001, 1842.30005, 9) 
                 elseif ( source == markerkeypad5) then 
                 moveObject ( gate4,20000, 297.9, 1821.69995, ) 
                 moveObject ( gate2,60000, 330.20001, 1842.30005, 9) 
            end 
      end 
  end 
end 
addEventHandler ("onMarkerHit",getRootElement(),open_gate) 

Edited by Guest
Link to comment
  • 4 weeks later...

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