Ultimate Reallife Halloween event Zombies spawnen nicht

  • Ultimate

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Ultimate Reallife Halloween event Zombies spawnen nicht

    Hallo liebe mta-sa.org Community!

    Ich habe ein Problem mit dem Ultimate Reallife Script!

    Unzwar: Bei dem Halloween Feature spawnen keine Zombies. Es werden keine Errors in der Konsole gesendet.

    Danke im Vorraus.
  • Die Errors:

    WARNING: ultimate\events\Halloween_intro_client.lua:60 Bad Argument @ 'guiSetEnabled' [Expectet gui-element at argument 1, got nil]
    WARNING: ultimate\events\Halloween_intro_client.lua:61 Bad Argument @ 'guiSetAlpha' [Expectet gui-element at argument 1, got Nil]
    WARNING: ultimate\events\Halloween_intro_client.lua:144 Bad Argument @ 'guiSetEnabled' [Expectet gui-element at argument 1, got Nil]
    WARNING: ultimate\events\Halloween_intro_client.lua:155 Bad Argument @ 'guiSetAlpha'[Expectet gui-element at argument 1, got Nil]
  • cani1221 schrieb:

    Wie kopiert man denn die Sachen aus Debugscript ?
    Kommt drauf an, aus welcher Datei das kommt.

    Serverseitig:
    Ist in logs -> server.log (logs ist da im Ordner, wo auch mtaserver.conf und acl.xml sind)

    Clientseitig:
    In deinem MTA Ordner -> MTA -> Logs -> clientscript.log
  • Das ist alles:

    [2016-10-22 17:49:10] WARNING: ultimate\events\halloween_intro_client.lua:60: Bad argument @ 'guiSetEnabled' [Expected gui-element at argument 1, got nil]
    [2016-10-22 17:49:10] WARNING: ultimate\events\halloween_intro_client.lua:61: Bad argument @ 'guiSetAlpha' [Expected gui-element at argument 1, got nil]
    [2016-10-22 17:49:18] WARNING: ultimate\events\halloween_intro_client.lua:144: Bad argument @ 'guiSetEnabled' [Expected gui-element at argument 1, got nil]
    [2016-10-22 17:49:18] WARNING: ultimate\events\halloween_intro_client.lua:145: Bad argument @ 'guiSetAlpha' [Expected gui-element at argument 1, got nil]
    [2016-10-22 17:58:00] WARNING: ultimate\admin\vip_radio_c.lua:139: Bad usage @ 'addEventHandler' ['onClientVehicleRespawn' with this function is already handled]
    [2016-10-22 17:58:00] WARNING: ultimate\admin\vip_radio_c.lua:140: Bad usage @ 'addEventHandler' ['onClientVehicleExplode' with this function is already handled]
    [2016-10-22 17:58:24] WARNING: ultimate\admin\vip_radio_c.lua:139: Bad usage @ 'addEventHandler' ['onClientVehicleRespawn' with this function is already handled]
    [2016-10-22 17:58:24] WARNING: ultimate\admin\vip_radio_c.lua:140: Bad usage @ 'addEventHandler' ['onClientVehicleExplode' with this function is already handled]
    [2016-10-22 17:59:05] WARNING: ultimate\clicksys\playerclick\car_click.lua:41: Bad argument @ 'getElementData' [Expected element at argument 1]
    [2016-10-22 17:59:05] WARNING: ultimate\clicksys\playerclick\car_click.lua:42: Bad argument @ 'getElementData' [Expected element at argument 1]
    [2016-10-22 18:02:06] WARNING: ultimate\carsys\tacho\speedo.lua:99: Bad usage @ 'addEventHandler' ['onClientRender' with this function is already handled]
    [2016-10-22 18:25:47] WARNING: ultimate\events\halloween_intro_client.lua:60: Bad argument @ 'guiSetEnabled' [Expected gui-element at argument 1, got nil]
    [2016-10-22 18:25:47] WARNING: ultimate\events\halloween_intro_client.lua:61: Bad argument @ 'guiSetAlpha' [Expected gui-element at argument 1, got nil]
    [2016-10-22 18:25:52] WARNING: ultimate\events\halloween_intro_client.lua:144: Bad argument @ 'guiSetEnabled' [Expected gui-element at argument 1, got nil]
    [2016-10-22 18:25:52] WARNING: ultimate\events\halloween_intro_client.lua:145: Bad argument @ 'guiSetAlpha' [Expected gui-element at argument 1, got Nil]
  • Halloween Client:

    local camLookAtX, camLookAtY, halloweenCamPos
    local HalloweenModels = {
    [1]=13,
    [2]=22,
    [3]=68,
    [4]=84,
    [5]=152,
    [6]=162,
    [7]=264
    }
    local zombiePositions = {}
    zombiePositions["x"] = {}
    zombiePositions["y"] = {}
    zombiePositions["z"] = {}
    local i = 0
    i = i + 1
    zombiePositions["x"], zombiePositions["y"][i], zombiePositions["z"][i] = 913.24499511719, -1103.3891601563, 23.946100234985
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 895.55462646484, -1106.3125, 23.149225234985
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 869.08483886719, -1108.5260009766, 23.8812084198
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 886.93902587891, -1097.1392822266, 23.879888534546
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 905.06921386719, -1094.5563964844, 23.946100234985
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 918.78948974609, -1097.4002685547, 23.954639434814
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 919.36199951172, -1108.2281494141, 23.923425674438
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 864.36004638672, -1099.8049316406, 23.946100234985
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 848.19622802734, -1106.0549316406, 23.916841506958
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 839.73645019531, -1099.0528564453, 23.916841506958
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 835.41534423828, -1110.8784179688, 23.839847564697
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 929.67938232422, -1110.2612304688, 23.850492477417
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 930.51190185547, -1092.0285644531, 23.850492477417
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 940.51928710938, -1104.5961914063, 23.850492477417
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 935.65948486328, -1117.8385009766, 23.850492477417
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 943.47680664063, -1089.142578125, 23.850492477417
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 925.80029296875, -1080.3283691406, 23.850492477417
    i = i + 1
    zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 894.421875, -1078.8986816406, 23.850492477417
    local zombieSpawnPositions = i
    local HalloweenZombiesOnLoadScreen = {}
    function startHalloweenCamFlight ()
    guiSetEnabled ( damageImage, false )
    guiSetAlpha ( damageImage, 0 )
    loadHalloweenSkins ()
    setWeather ( 9 )
    setTime ( 1, 0 )
    camLookAtX, camLookAtY, camLookAtZ = 895.65313720703, -1101.6677246094, 24.171594619751
    halloweenCamPos = createObject ( 1337, 945.86889648438, -1103.2341308594, 29.125005722046 )
    setElementAlpha ( halloweenCamPos, 0 )
    moveObject ( halloweenCamPos, 20000, 822.66461181641, -1116.329345703, 29.125005722046 )

    setTimer ( turnHalloweenCamAroundA, 20000, 1 )
    setTimer ( churchBell, 3000, 12 )

    -- Spawn zombies --
    for i = 1, zombieSpawnPositions do
    local zombie = createPed ( HalloweenModels[math.random ( 1, 7 )], zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] )
    setPedRotation ( zombie, math.random ( 1, 360 ) )
    setElementDimension ( zombie, getElementDimension ( lp ) )
    setElementParent ( zombie, halloweenCamPos )
    letZombieDoAnything ( zombie )
    end
    -- --

    addEventHandler ( "onClientRender", getRootElement(), halloweenCamRender )
    end
    function churchBell ()
    if isElement ( halloweenCamPos ) then
    local sound = playSound ( "sounds/bell.ogg", false )
    setSoundVolume ( sound, 0.5 )
    end
    end
    function letZombieDoAnything ( ped )
    if isElement ( ped ) then
    setPedAnimation ( ped )
    setElementDimension ( ped, getElementDimension ( lp ) )
    local rnd = math.random ( 1, 4 )
    if rnd == 1 then
    setPedRotation ( ped, math.random ( 1, 360 ) )
    setPedAnimation ( ped, "ped", "run_old" )
    setTimer ( letZombieDoAnything, 2000, 1, ped )
    elseif rnd == 2 then
    setPedRotation ( ped, math.random ( 1, 360 ) )
    setPedAnimation ( ped, "PED", "Player_Sneak" )
    setTimer ( letZombieDoAnything, 2000, 1, ped )
    elseif rnd == 3 then
    -- Do nothing
    setTimer ( letZombieDoAnything, 3000, 1, ped )
    else
    setPedAnimation ( ped, "MEDIC", "cpr", -1, false, true, false, true )
    setTimer ( letZombieDoAnything, 4200, 1, ped )
    end
    end
    end
    function loadHalloweenSkins ()
    --[[local models = {
    [13]=true,
    [22]=true,
    [68]=true,
    [84]=true,
    [152]=true,
    [162]=true,
    [264]=true
    }
    local skin
    for key, index in pairs ( models ) do
    skin = engineLoadTXD ( "models/"..key..".txd" )
    engineImportTXD ( skin, key )
    end]]
    end
    function unloadHalloweenSkins ()
    -- Unable
    end
    function stopHalloweenCamFlight ()
    destroyElement ( halloweenCamPos )
    guiSetEnabled ( damageImage, true )
    guiSetAlpha ( damageImage, 1 )
    unloadHalloweenSkins ()
    triggerServerEvent ( "resyncWeatherAndTimeFromHalloween", lp )
    end
    function resyncWeatherAndTimeFromHalloween ( weather, hours, minutes )
    setWeather ( weather )
    setTime ( hours, minutes )
    end
    addEvent ( "resyncWeatherAndTimeFromHalloween", true )
    addEventHandler ( "resyncWeatherAndTimeFromHalloween", getRootElement (), resyncWeatherAndTimeFromHalloween )
    function halloweenCamRender ()
    if isElement ( halloweenCamPos ) then
    setTime ( 1, 0 )
    if not ( getWeather == 9 ) then
    setWeather ( 9 )
    end
    local x1, y1, z1 = getElementPosition ( halloweenCamPos )
    local x2, y2, z2 = camLookAtX, camLookAtY, camLookAtZ
    setCameraMatrix ( x1, y1, z1, x2, y2, z2 )
    else
    removeEventHandler ( "onClientRender", getRootElement(), halloweenCamRender )
    end
    end
    function turnHalloweenCamAroundA ()
    if isElement ( halloweenCamPos ) then
    moveObject ( halloweenCamPos, 20000, 945.86889648438, -1103.2341308594, 29.125005722046 )
    setTimer ( turnHalloweenCamAroundB, 20000, 1 )
    end
    end
    function turnHalloweenCamAroundB ()
    if isElement ( halloweenCamPos ) then
    moveObject ( halloweenCamPos, 20000, 822.66461181641, -1116.329345703, 29.125005722046 )
    setTimer ( turnHalloweenCamAroundA, 20000, 1 )
    end
    end
    -- Michi --
    function closeHalloweenGUI ( )
    destroyElement ( gWindow["halloweenMenue"] )
    showCursor ( false )
    setElementClicked ( false )
    end
    local gHalloweenButton = {}
    function createHalloweenGUI ( )
    if isHalloween then
    if getElementClicked () then
    return
    end
    showCursor ( true )
    setElementClicked ( true )

    local x, y = guiGetScreenSize()
    local windowx = x/2 - 627/2
    local windowy = y/2 - 221/2

    gWindow["halloweenMenue"] = guiCreateWindow( windowx, windowy, 627, 221, "Halloween-Boni", false )
    gHalloweenButton[1] = guiCreateButton( 10, 25, 147, 65, "Suessigkeiten\nfuer 10 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[2] = guiCreateButton( 10, 95, 147, 65, "'Sensenmann' fuer 100 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[3] = guiCreateButton( 10, 165, 147, 65, "Premium fuer 5000 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[4] = guiCreateButton( 162, 25, 147, 65, "10.000$\nfuer 250 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[5] = guiCreateButton( 162, 95, 147, 65, "Kopflos-Munition\nfuer 150 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[6] = guiCreateButton( 467, 165, 147, 65, "Clown Kostuem \nfuer 15 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[7] = guiCreateButton( 314, 25, 147, 65, "Auto-Gutschein\nfuer 1200 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[8] = guiCreateButton( 314, 95, 147, 65, "Turismo\nfuer 2000 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[9] = guiCreateButton( 467, 25, 147, 65, "Hotring\nfuer 5000 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[10] = guiCreateButton( 467, 95, 147, 65, "Hausmarker\nfuer 1000 Kuerbisse", false, gWindow["halloweenMenue"] )
    gHalloweenButton[11] = guiCreateButton( (627/2-239/2), 160, 239, 48, "Abbrechen", false, gWindow["halloweenMenue"] )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[11],
    function ( )
    closeHalloweenGUI ( )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[1],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "suess" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[2],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "state" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[3],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "premium" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[4],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "dollar" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[5],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "munni" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[6],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "clown" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[7],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "gutschein" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[8],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "turismo" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[9],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "ht b" )
    end, false )

    addEventHandler ( "onClientGUIClick", gHalloweenButton[10],
    function ( )
    closeHalloweenGUI ( )
    triggerServerEvent ( "buyEasterBonus", lp, "haus" )
    end, false )
    end
    end
    addCommandHandler ( "halloween", createHalloweenGUI )
  • LUA-Quellcode: halloween_intro_client.lua

    1. local camLookAtX, camLookAtY, halloweenCamPos
    2. local HalloweenModels = {
    3. [1]=13,
    4. [2]=22,
    5. [3]=68,
    6. [4]=84,
    7. [5]=152,
    8. [6]=162,
    9. [7]=264
    10. }
    11. local zombiePositions = {}
    12. zombiePositions["x"] = {}
    13. zombiePositions["y"] = {}
    14. zombiePositions["z"] = {}
    15. local i = 0
    16. i = i + 1
    17. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 913.24499511719, -1103.3891601563, 23.946100234985
    18. i = i + 1
    19. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 895.55462646484, -1106.3125, 23.149225234985
    20. i = i + 1
    21. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 869.08483886719, -1108.5260009766, 23.8812084198
    22. i = i + 1
    23. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 886.93902587891, -1097.1392822266, 23.879888534546
    24. i = i + 1
    25. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 905.06921386719, -1094.5563964844, 23.946100234985
    26. i = i + 1
    27. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 918.78948974609, -1097.4002685547, 23.954639434814
    28. i = i + 1
    29. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 919.36199951172, -1108.2281494141, 23.923425674438
    30. i = i + 1
    31. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 864.36004638672, -1099.8049316406, 23.946100234985
    32. i = i + 1
    33. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 848.19622802734, -1106.0549316406, 23.916841506958
    34. i = i + 1
    35. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 839.73645019531, -1099.0528564453, 23.916841506958
    36. i = i + 1
    37. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 835.41534423828, -1110.8784179688, 23.839847564697
    38. i = i + 1
    39. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 929.67938232422, -1110.2612304688, 23.850492477417
    40. i = i + 1
    41. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 930.51190185547, -1092.0285644531, 23.850492477417
    42. i = i + 1
    43. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 940.51928710938, -1104.5961914063, 23.850492477417
    44. i = i + 1
    45. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 935.65948486328, -1117.8385009766, 23.850492477417
    46. i = i + 1
    47. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 943.47680664063, -1089.142578125, 23.850492477417
    48. i = i + 1
    49. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 925.80029296875, -1080.3283691406, 23.850492477417
    50. i = i + 1
    51. zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] = 894.421875, -1078.8986816406, 23.850492477417
    52. local zombieSpawnPositions = i
    53. local HalloweenZombiesOnLoadScreen = {}
    54. function startHalloweenCamFlight ()
    55. guiSetEnabled ( damageImage, true )
    56. guiSetAlpha ( damageImage, 1 )
    57. loadHalloweenSkins ()
    58. setWeather ( 9 )
    59. setTime ( 1, 0 )
    60. camLookAtX, camLookAtY, camLookAtZ = 895.65313720703, -1101.6677246094, 24.171594619751
    61. halloweenCamPos = createObject ( 1337, 945.86889648438, -1103.2341308594, 29.125005722046 )
    62. setElementAlpha ( halloweenCamPos, 0 )
    63. moveObject ( halloweenCamPos, 20000, 822.66461181641, -1116.329345703, 29.125005722046 )
    64. setTimer ( turnHalloweenCamAroundA, 20000, 1 )
    65. setTimer ( churchBell, 3000, 12 )
    66. -- Spawn zombies --
    67. for i = 1, zombieSpawnPositions do
    68. local zombie = createPed ( HalloweenModels[math.random ( 1, 7 )], zombiePositions["x"][i], zombiePositions["y"][i], zombiePositions["z"][i] )
    69. setPedRotation ( zombie, math.random ( 1, 360 ) )
    70. setElementDimension ( zombie, getElementDimension ( lp ) )
    71. setElementParent ( zombie, halloweenCamPos )
    72. letZombieDoAnything ( zombie )
    73. end
    74. -- --
    75. addEventHandler ( "onClientRender", getRootElement(), halloweenCamRender )
    76. end
    77. function churchBell ()
    78. if isElement ( halloweenCamPos ) then
    79. local sound = playSound ( "sounds/bell.ogg", false )
    80. setSoundVolume ( sound, 0.5 )
    81. end
    82. end
    83. function letZombieDoAnything ( ped )
    84. if isElement ( ped ) then
    85. setPedAnimation ( ped )
    86. setElementDimension ( ped, getElementDimension ( lp ) )
    87. local rnd = math.random ( 1, 4 )
    88. if rnd == 1 then
    89. setPedRotation ( ped, math.random ( 1, 360 ) )
    90. setPedAnimation ( ped, "ped", "run_old" )
    91. setTimer ( letZombieDoAnything, 2000, 1, ped )
    92. elseif rnd == 2 then
    93. setPedRotation ( ped, math.random ( 1, 360 ) )
    94. setPedAnimation ( ped, "PED", "Player_Sneak" )
    95. setTimer ( letZombieDoAnything, 2000, 1, ped )
    96. elseif rnd == 3 then
    97. -- Do nothing
    98. setTimer ( letZombieDoAnything, 3000, 1, ped )
    99. else
    100. setPedAnimation ( ped, "MEDIC", "cpr", -1, false, true, false, true )
    101. setTimer ( letZombieDoAnything, 4200, 1, ped )
    102. end
    103. end
    104. end
    105. function loadHalloweenSkins ()
    106. --[[local models = {
    107. [13]=true,
    108. [22]=true,
    109. [68]=true,
    110. [84]=true,
    111. [152]=true,
    112. [162]=true,
    113. [264]=true
    114. }
    115. local skin
    116. for key, index in pairs ( models ) do
    117. skin = engineLoadTXD ( "models/"..key..".txd" )
    118. engineImportTXD ( skin, key )
    119. end]]
    120. end
    121. function unloadHalloweenSkins ()
    122. -- Unable
    123. end
    124. function stopHalloweenCamFlight ()
    125. destroyElement ( halloweenCamPos )
    126. guiSetEnabled ( damageImage, false )
    127. guiSetAlpha ( damageImage, 0 )
    128. unloadHalloweenSkins ()
    129. triggerServerEvent ( "resyncWeatherAndTimeFromHalloween", lp )
    130. end
    131. function resyncWeatherAndTimeFromHalloween ( weather, hours, minutes )
    132. setWeather ( weather )
    133. setTime ( hours, minutes )
    134. end
    135. addEvent ( "resyncWeatherAndTimeFromHalloween", true )
    136. addEventHandler ( "resyncWeatherAndTimeFromHalloween", getRootElement (), resyncWeatherAndTimeFromHalloween )
    137. function halloweenCamRender ()
    138. if isElement ( halloweenCamPos ) then
    139. setTime ( 1, 0 )
    140. if not ( getWeather == 9 ) then
    141. setWeather ( 9 )
    142. end
    143. local x1, y1, z1 = getElementPosition ( halloweenCamPos )
    144. local x2, y2, z2 = camLookAtX, camLookAtY, camLookAtZ
    145. setCameraMatrix ( x1, y1, z1, x2, y2, z2 )
    146. else
    147. removeEventHandler ( "onClientRender", getRootElement(), halloweenCamRender )
    148. end
    149. end
    150. function turnHalloweenCamAroundA ()
    151. if isElement ( halloweenCamPos ) then
    152. moveObject ( halloweenCamPos, 20000, 945.86889648438, -1103.2341308594, 29.125005722046 )
    153. setTimer ( turnHalloweenCamAroundB, 20000, 1 )
    154. end
    155. end
    156. function turnHalloweenCamAroundB ()
    157. if isElement ( halloweenCamPos ) then
    158. moveObject ( halloweenCamPos, 20000, 822.66461181641, -1116.329345703, 29.125005722046 )
    159. setTimer ( turnHalloweenCamAroundA, 20000, 1 )
    160. end
    161. end
    162. -- Michi --
    163. function closeHalloweenGUI ( )
    164. destroyElement ( gWindow["halloweenMenue"] )
    165. showCursor ( false )
    166. setElementClicked ( false )
    167. end
    168. local gHalloweenButton = {}
    169. function createHalloweenGUI ( )
    170. if isHalloween then
    171. if getElementClicked () then
    172. return
    173. end
    174. showCursor ( true )
    175. setElementClicked ( true )
    176. local x, y = guiGetScreenSize()
    177. local windowx = x/2 - 627/2
    178. local windowy = y/2 - 221/2
    179. gWindow["halloweenMenue"] = guiCreateWindow( windowx, windowy, 627, 221, "Halloween-Boni", false )
    180. gHalloweenButton[1] = guiCreateButton( 10, 25, 147, 65, "Suessigkeiten\nfuer 10 Kuerbisse", false, gWindow["halloweenMenue"] )
    181. gHalloweenButton[2] = guiCreateButton( 10, 95, 147, 65, "'Sensenmann' fuer 100 Kuerbisse", false, gWindow["halloweenMenue"] )
    182. gHalloweenButton[3] = guiCreateButton( 162, 25, 147, 65, "10.000$\nfuer 250 Kuerbisse", false, gWindow["halloweenMenue"] )
    183. gHalloweenButton[4] = guiCreateButton( 162, 95, 147, 65, "Kopflos-Munition\nfuer 150 Kuerbisse", false, gWindow["halloweenMenue"] )
    184. gHalloweenButton[5] = guiCreateButton( 314, 25, 147, 65, "Auto-Gutschein\nfuer 1200 Kuerbisse", false, gWindow["halloweenMenue"] )
    185. gHalloweenButton[6] = guiCreateButton( 314, 95, 147, 65, "Turismo\nfuer 2000 Kuerbisse", false, gWindow["halloweenMenue"] )
    186. gHalloweenButton[7] = guiCreateButton( 467, 25, 147, 65, "Hotring\nfuer 5000 Kuerbisse", false, gWindow["halloweenMenue"] )
    187. gHalloweenButton[8] = guiCreateButton( 467, 95, 147, 65, "Hausmarker\nfuer 10000 Kuerbisse", false, gWindow["halloweenMenue"] )
    188. gHalloweenButton[9] = guiCreateButton( (627/2-239/2), 160, 239, 48, "Abbrechen", false, gWindow["halloweenMenue"] )
    189. addEventHandler ( "onClientGUIClick", gHalloweenButton[9],
    190. function ( )
    191. closeHalloweenGUI ( )
    192. end, false )
    193. addEventHandler ( "onClientGUIClick", gHalloweenButton[1],
    194. function ( )
    195. closeHalloweenGUI ( )
    196. triggerServerEvent ( "buyEasterBonus", lp, "suess" )
    197. end, false )
    198. addEventHandler ( "onClientGUIClick", gHalloweenButton[2],
    199. function ( )
    200. closeHalloweenGUI ( )
    201. triggerServerEvent ( "buyEasterBonus", lp, "state" )
    202. end, false )
    203. addEventHandler ( "onClientGUIClick", gHalloweenButton[3],
    204. function ( )
    205. closeHalloweenGUI ( )
    206. triggerServerEvent ( "buyEasterBonus", lp, "dollar" )
    207. end, false )
    208. addEventHandler ( "onClientGUIClick", gHalloweenButton[4],
    209. function ( )
    210. closeHalloweenGUI ( )
    211. triggerServerEvent ( "buyEasterBonus", lp, "munni" )
    212. end, false )
    213. addEventHandler ( "onClientGUIClick", gHalloweenButton[5],
    214. function ( )
    215. closeHalloweenGUI ( )
    216. triggerServerEvent ( "buyEasterBonus", lp, "gutschein" )
    217. end, false )
    218. addEventHandler ( "onClientGUIClick", gHalloweenButton[6],
    219. function ( )
    220. closeHalloweenGUI ( )
    221. triggerServerEvent ( "buyEasterBonus", lp, "turismo" )
    222. end, false )
    223. addEventHandler ( "onClientGUIClick", gHalloweenButton[7],
    224. function ( )
    225. closeHalloweenGUI ( )
    226. triggerServerEvent ( "buyEasterBonus", lp, "ht b" )
    227. end, false )
    228. addEventHandler ( "onClientGUIClick", gHalloweenButton[8],
    229. function ( )
    230. closeHalloweenGUI ( )
    231. triggerServerEvent ( "buyEasterBonus", lp, "haus" )
    232. end, false )
    233. end
    234. end
    235. --addCommandHandler ( "halloween", createHalloweenGUI )
    Alles anzeigen

    Quellcode: halloween_intro_server.lua

    1. function resyncWeatherAndTimeFromHalloween ()
    2. triggerClientEvent ( client, "resyncWeatherAndTimeFromHalloween", client, getWeather (), getTime () )
    3. end
    4. addEvent ( "resyncWeatherAndTimeFromHalloween", true )
    5. addEventHandler ( "resyncWeatherAndTimeFromHalloween", getRootElement(), resyncWeatherAndTimeFromHalloween )
  • ich sehe da keine Zeile etc weiß also nicht welche heile gemeint ist
    Könnte aber vermuten das es an vio_stored_files liegt? Ist die resource bei dir gestartet bzw eingetragen und das vor ultimate?