Hallo,
Ich habe ein Problem und zwar wenn ich auf meinen Homeserver Connecte bleibt alles schwartz... liegt das jetzt wohl am Script oder an den Einstellungen?
Hier der Script:
-----------------------------------------------
--
-- Freeroam v1.0a
-- (c) 2010 by Mohnertsoft
--
-- Developer: AndyStyle
--
----------------------------------------------
function joinHandler()
spawn(source)
outputChatBox("Willkommen auf dem 1. Lua Freeroam Server von Mohnertsoft " ..getPlayerName(source), source)
for(local al = 0; al < 50; al++) then
outputChatBox(getPlayerName(source).. " hat den Server betretten", al)
end
end
addEventHandler("onPlayerJoin", getRootElement(), joinHandler)
function resourceStart (name)
setTimer(Credits, 1000*60*15, 0)
createVehicle(596,1535.8170166016 ,-1677.9151611328 ,13.275792121887 ,0 ,0 ,0 ,"MSF 1" ) -- ID, X, Y, Z, rX, rY, rZ, Nummernschild
createVehicle(596,1535.8825683594 ,-1668.3218994141 ,13.275792121887 ,0 ,0 ,178.65002441406 ,"MSF 2" )
createVehicle(451,1453.4807128906 ,-1740.1146240234 ,13.311246871948 ,0 ,0 ,269.9599609375 ,"MSF 3" )
createVehicle(497,1564.6135253906 ,-1652.5876464844 ,28.660606384277 ,0 ,0 ,91.31005859375 ,"MSF 4" )
createVehicle(542,1656.8549804688 ,-1718.4235839844 ,20.327774047852 ,0 ,0 ,0 ,"MSF 5" )
createVehicle(475,1662.4383544922 ,-1718.8381347656 ,20.38437461853 ,0 ,0 ,0 ,"MSF 6" )
createVehicle(496,1649.5694580078 ,-1708.2838134766 ,20.272102355957 ,0 ,0 ,73.445068359375 ,"MSF 7" )
createVehicle(522,1923.9881591797 ,-1412.0350341797 ,13.230690002441 ,0 ,0 ,0 ,"MSF 8" )
createVehicle(522,1920.6427001953 ,-1412.5178222656 ,13.230690002441 ,0 ,0 ,0 ,"MSF 9" )
createVehicle(522,1917.427734375 ,-1412.9063720703 ,13.230690002441 ,0 ,0 ,0 ,"MSF 10" )
createVehicle(522,1914.1783447266 ,-1413.1706542969 ,13.230690002441 ,0 ,0 ,0 ,"MSF 11" )
createVehicle(445,2117.7573242188 ,-1773.5297851563 ,13.382623672485 ,0 ,0 ,95.280029296875 ,"MSF 12" )
createVehicle(405,2118.4560546875 ,-1777.7950439453 ,13.390540122986 ,0 ,0 ,89.325012207031 ,"MSF 13" )
createVehicle(566,2103.7077636719 ,-1781.9188232422 ,13.288526535034 ,0 ,0 ,0 ,"MSF 14" )
createVehicle(546,2108.3955078125 ,-1782.1696777344 ,13.230251312256 ,0 ,0 ,0 ,"MSF 15" )
end
addEventHandler ( "onResourceStart", root, resourceStart )
addEventHandler("onResourceStart", resourceRoot,
function()
for i,player in ipairs(getElementsByType("player")) do
spawn(player)
end
end
)
function spawn(player)
spawnPlayer(player, 1480.4419,-1742.6559,13.2902)
fadeCamera(player, true)
setCameraTarget(player, player)
end
addEventHandler("onPlayerWasted", root,
function()
setTimer(spawn, 1800, 1, source)
end
)