Hey Leute,
ich Versuch grade für die Army was zu Scripten aber irgendwie geht es nicht es passiert einfach nichts wen ich den Command eingebe:
Lua
AtomIcon = createPickup ( 214.10000610352, 1818.5999755859, 6.4000000953674, 3, 1239, 50 )
function AtomIconHit ( player )
local x, y, z = getElementPosition(player)
if getDistanceBetweenPoints3D ( 214.10000610352, 1818.5999755859, 6.4000000953674, x, y, z ) < 4 then
outputChatBox ( "--- General PC --- ", player, 125, 0, 0 )
outputChatBox ( "Bitte loggen sie sich ein. /log general passwort", player, 125, 0, 0 )
end
addEventHandler ( "onPickupHit", AtomIcon, AtomIconHit )
function Login
outputChatBox ( "Erfolgreich Eingeloggt!", player, 125, 0, 0 )
outputChatBox ( "Bitte ein moment Geduld Massen Vernichtungs Waffen werden Hochgefahren.", player, 125, 0, 0 )
outputChatBox ( "10%", player, 125, 0, 0 )
setTimer( upload2 , 2000,1 )
end
addCommandHandler ( "log", AtomIconHit )
function upload2
outputChatBox ( "20%", player, 125, 0, 0 )
setTimer( upload3 , 2000,1 )
end
function upload3
outputChatBox ( "30%", player, 125, 0, 0 )
setTimer( upload4 , 2000,1 )
end
function upload4
outputChatBox ( "40%", player, 125, 0, 0 )
setTimer( upload5 , 2000,1 )
end
function upload5
outputChatBox ( "50%", player, 125, 0, 0 )
setTimer( upload6 , 2000,1 )
end
function upload6
outputChatBox ( "60%", player, 125, 0, 0 )
setTimer( upload7 , 2000,1 )
end
function upload7
outputChatBox ( "70%", player, 125, 0, 0 )
setTimer( upload8 , 2000,1 )
end
function upload8
outputChatBox ( "80%", player, 125, 0, 0 )
setTimer( upload9 , 2000,1 )
end
function upload9
outputChatBox ( "90%", player, 125, 0, 0 )
setTimer( upload10 , 2000,1 )
end
function upload10
outputChatBox ( "100%", player, 125, 0, 0 )
--setTimer( vernichtung , 1000,1 )
end
Alles anzeigen