.HaveGone 81 Posted April 13, 2013 Olá Cyber-Gamers, Venho-vos apresentar um sistema feito em quest! Este sistema fará com que anoiteça e e amanheça automaticamente. Código: state start begin function funktion() local text = { -------Gunduz Yazisi--- {"Gunduz Modu Aktif"}, {"Iyı Gunler , Quality2!"}, -------Gece Yazisi--- {"Gece Modu Aktif"}, {"Iyı Geceler , Quality2!"}, } local safa1 = number(1, 2) local safa1e = number(3, 4) local gunduzyazi = text[safa1][1] local geceyazi = text[safa1e][1] local saat = os.date ("%H") if saat >= "19" and game.get_event_flag("eclipse") == 0 then notice_all(""..geceyazi.."") game.set_event_flag("eclipse", 1 ) elseif saat >= "07" and game.get_event_flag("eclipse") == 1 then notice_all(""..gunduzyazi.."") game.set_event_flag("eclipse", 0 ) end end when login or levelup or logout begin daymode.funktion() endendendDownload: https://mega.co.nz/#!6BlDXThL!S1jNpUJiWnfh3Lh8mK8oSwNriqosXYCWuSBnZuYnRZo VirusTotal: https://www.virustotal.com/pt/file/7cb06a11f136524eb7b8254a61c73912249ab9e69d095ec3c7d53f3d05acf594/analysis/1365853459/ Créditos: [*]ChevChelios Cumprimentos, Luis Bizarro 4 Drakyma, SINVAL o.O, p0w3r0ff and 1 other reacted to this Share this post Link to post Share on other sites
SINVAL o.O 728 Posted April 13, 2013 kkk tudo que eu quero se ta postado 1 por dia né maladrinho, http://cyber-gamers.org/public/style_emoticons/default/451960.gif és grande parçeiro Share this post Link to post Share on other sites
.HaveGone 81 Posted April 13, 2013 kkk tudo que eu quero se ta postado 1 por dia né maladrinho, http://cyber-gamers.org/public/style_emoticons/default/451960.gif és grande parçeiro I'm fuckin'awsome xD 2 保羅·蓋伊 and SINVAL o.O reacted to this Share this post Link to post Share on other sites
SINVAL o.O 728 Posted April 13, 2013 http://cyber-gamers.org/public/style_emoticons/default/451960.gif Share this post Link to post Share on other sites
RicardoMoreira 4 Posted April 20, 2013 como isso funciona? sempre que está de dia na vida real no server fica de dia? e quando esta noite na vida real no sv tambem fica noite? Share this post Link to post Share on other sites
тнєℓιƒє 488 Posted April 20, 2013 como isso funciona? sempre que está de dia na vida real no server fica de dia? e quando esta noite na vida real no sv tambem fica noite? local saat = os.dat ("%H") Como podes ver, Pela data do Dedicado. Ou seja, se onde o dedicado tiver, Forem 19Horas, Ele ajusta o tempo consoante as 19 Horas :) Share this post Link to post Share on other sites
RicardoMoreira 4 Posted April 20, 2013 se tiver o sv em casa ajusta as horas do pc certo'? Share this post Link to post Share on other sites
.HaveGone 81 Posted April 20, 2013 se tiver o sv em casa ajusta as horas do pc certo'?Sim Share this post Link to post Share on other sites
RicardoMoreira 4 Posted April 22, 2013 está quest nao funciona :S disme core dumped alguem me ajuda? 1 保羅·蓋伊 reacted to this Share this post Link to post Share on other sites
RicardoMoreira 4 Posted April 22, 2013 Bem eu tentei instalar essa quest e aparece isto:QUEST : dianoiteSTATE : startFUNCTION funktion()when : login orwhen : levelup orwhen : logout orCalls undeclared function! :daymode.funktionos.dateabort (core dumped)alguem me ajuda? 1 保羅·蓋伊 reacted to this Share this post Link to post Share on other sites
Guest Origin. Posted April 22, 2013 Bem eu tentei instalar essa quest e aparece isto: QUEST : dianoite STATE : start FUNCTION funktion() when : login or when : levelup or when : logout or Calls undeclared function! : daymode.funktion os.date abort (core dumped) alguem me ajuda? se não estou em erro tens de adicionar a função "daymode.funktion" a "quest_functions" no ftp Share this post Link to post Share on other sites
RicardoMoreira 4 Posted April 22, 2013 Pois já fiz isso :S Share this post Link to post Share on other sites
RicardoMoreira 4 Posted April 26, 2013 Desculpem duble post nao consegui editar o outro, mas ja consegui colocar a quest, atualizei todas as quest_funcion, e consegui, agora só tenho um problema, nao fica de noite, quando é 00:00 aqui no meu pc :/ que se passa? 1 保羅·蓋伊 reacted to this Share this post Link to post Share on other sites
YonN 28 Posted February 24, 2014 vo testa essa quest estava a procura ;) Tks ai o guerreiro *-* Share this post Link to post Share on other sites