antiblock
https://i.imgur.com/aJ17bf7.gif
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
TheSubKIller aka Skinning

[TRADUÇÃO] Quest shutdown

4 posts in this topic

Boas Cyber-Gamers

quest shutdown begin

state start begin

when 20094.chat."Desligado o Servidor" with pc . is_gm ( ) == true begin

say_title ( "Shutdown:" )

say ( "Deseja Desligar o Servidor?" )

local siono = select ( "Sim","Não" )

if siono == 2 then

return

elseif siono == 1 then

say_title ( "Shutdown:" )

say ( "Processo de desligar o Servidor..." )

local ciao = tostring(input())

timer ( "shutdown" , 900 )

notice_all ( "Servidor desligará em 30 minutos!" )

notice_all ( "Recomendamos que saia da conta.." )

notice_all ( "Qualquer perda de itens a culpa não é nossa" )

end

end

when shutdown.timer begin

notice_all ( "Servidor desligará em 15 minutos!" )

notice_all ( "Recomendamos que saia da conta.." )

notice_all ( "Qualquer perda de itens a culpa não é nossa" )

timer ( "shutdown2" ,899 )

end

when shutdown2.timer begin

notice_all ( "Servidor desligará em 1 minutos!" )

notice_all ( "Recomendamos que saia da conta.." )

notice_all ( "Qualquer perda de itens a culpa não é nossa" )

timer ( "shutdown3" , 20 )

end

when shutdown3.timer begin

notice_all ( "Servidor desligará em 40 segundos!" )

notice_all ( "Recomendamos que saia da conta.." )

notice_all ( "Qualquer perda de itens a culpa não é nossa" )

timer ( "shutdown4", 31 )

end

when shutdown4.timer begin

notice_all ( "Reboot!" )

game . set_event_flag ( "test" , 1 )

timer ( "shutdown5" , 1 )

end

when shutdown5.timer begin

command ( "shutdown" )

game . set_event_flag ( "test" , 0 )

end

end

end

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif

onde meto esse texto ?

Share this post


Link to post
Share on other sites

Crias um ficheiro .quest com o nome: shoutdown.quest, e metes na pasta de quest das files

depois é so dar o comando ./qc shutdown.quest

Share this post


Link to post
Share on other sites

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
Sign in to follow this