Litrins Posted June 28, 2008 Report Share Posted June 28, 2008 tapat man ir ja mape ir de_dust2 nextmap atkal ir de_dust2 Link to comment Share on other sites More sharing options...
shine Posted June 28, 2008 Report Share Posted June 28, 2008 Noteikti tikai 1 mape mapciklaa XD Link to comment Share on other sites More sharing options...
Litrins Posted June 28, 2008 Report Share Posted June 28, 2008 Ne.. man vairak !! bet to mapcycle.amxx ir jaliek taja plugins.ini mape ? Link to comment Share on other sites More sharing options...
Kiwix Posted June 28, 2008 Report Share Posted June 28, 2008 ROFL parādi man plugins.ini mapi... Gribas redzēt... P.S. Varbūt tomēr jāliek mapē plugins?! Link to comment Share on other sites More sharing options...
Litrins Posted June 28, 2008 Report Share Posted June 28, 2008 nu ieliekot vinu plugins mape pec tam lai plugins stradatu jaliek ir plugins.ini Link to comment Share on other sites More sharing options...
4ava Posted June 11, 2009 Report Share Posted June 11, 2009 plugins tikvaitā nestrādā kad vajag maini laiku cikos tev vajag , bet night viņš taja laikā nepalaiž .. nomainīju lai palaiž uz 23:00 palaidās 00:04 nodomāju varbūt stundu kavē.. nomainīju starting uz 22:00 palaidās 00:14 .. interesanta liets.. + viņš cenšas izlaist līdz beigām day mapjuciklu un tad palaist nakts.. Link to comment Share on other sites More sharing options...
shine Posted June 11, 2009 Report Share Posted June 11, 2009 Kavē 2 mapes. Link to comment Share on other sites More sharing options...
4ava Posted June 11, 2009 Report Share Posted June 11, 2009 nu kā tad nākas ka uzlikts uz 22:00 un nomainās 00:14 ? maptyme 20 min ja kas .. cik noprotu jānomaina šie dnm_night_from","23" dnm_night_to","10" Tātad man stāv dnm_night_from","22" dnm_night_to","9" Link to comment Share on other sites More sharing options...
shine Posted June 11, 2009 Report Share Posted June 11, 2009 Vienā mapē viņš pārbauda laiku sākumā, ja pulkstens ir 21.59 viņš palaiž to mapi līdz baigām. 21:19 viņš maina mapi. Pieņemsim 21:20 viņš pārbauda laiku vēlreiz(dažas sec mapchange). Saprot, ka ir laiks night mapciklam, viņš uzliek night map ciklu. Nextmap ir vēl pēc vecā map cikla. Tātad nextmap 21:40 ir vēl vecais. 22:00 sākās īstais jaunais night mapcikls. Link to comment Share on other sites More sharing options...
4ava Posted June 12, 2009 Report Share Posted June 12, 2009 (edited) nu jā pats jau esi rakstījis viņu , tad tā tam vajadzētu būt bet jau plugins uz servera stāv nedēļu, un ne reizi nav bijis tā vienmēr viss sākas ap 00:14 ~~... . un ja jāsākas būtu 22:00 ,bet palaiž pēc divpatamitiem sanāk ka viņš izlaiž veselas 6 mapes ne tikai 2vas. edīte tiko speciāli uzcēlos lai pavērotu ,, no nakts cikla uz rīta viņš palaiž tā kā vajadzētu.. Edited June 12, 2009 by 4ava Link to comment Share on other sites More sharing options...
shine Posted June 12, 2009 Report Share Posted June 12, 2009 Noņem 1h nost.. tur ir: from > to - viņš ņem pēc stundām tātad +1 stunda. Man tagad ātri iebraukt kodā ir grūti, bet pamaini: if(from > to && (hour > from || hour < to)) uz if(from >= to && (hour > from || hour < to)) Tad vari neņemt -1h pie night sākšanās, ja negribi labot kodu nomaini laiku uz -1h(piemēram, ja tev night mapcickls sākas 00:00, tad liec 23:00.. vispār noņem vēl stundu drošības pēc, jo viņš uzliek mapciklu tikai pēc 2 mapēm. Link to comment Share on other sites More sharing options...
4ava Posted June 12, 2009 Report Share Posted June 12, 2009 kodu gan netīkas labot.. un jā ir jau noņemtas 2 stundas nost. respektīvi jau nedēļu stāv 00 vietā 22 .. bet izmaiņu nav.. Kad ir brīvāks brīdis izskati kodu lūdzu .. Link to comment Share on other sites More sharing options...
shine Posted June 12, 2009 Report Share Posted June 12, 2009 Tu teici, ka uzliekas 00:14? Tas nav pieņemami? Katru dienu būs +/- 20 min no uzliktā laika, un tur tu neko nepadarīsi. Viss ir atkarīgs no laika, kad tu ieslēdz serveri un laika, cik viņš pavada mainot mapi. Viņš ik pa 20min pārbauda ciklu, un mapchange ir ik pa 20 min tāpēc ar šo kodu tu precīzi 00:00 nedabūsi. Ja nu tu gribi, lai viņš ik pa 10pārbauda laiku, un ja ir 00:00 automātiski nomaina uz pirmo mapi night cycle, pat ja tikko mape ir sākusies. Link to comment Share on other sites More sharing options...
4ava Posted June 12, 2009 Report Share Posted June 12, 2009 (edited) tas : uzliekas bija domāts šādi... dnm_night_from","24") man stāv uz dnm_night_from","22") . plugins ciparu 22 ignorē un 22:00 vietā night.txt palaižas 00:14.. tātad 22:00 vieta jāparēķina + 2 mapes. tas rupji rēkinot būtu ka 23:00 jau sākas night.txt bet man pēc tiem 22:00 nav + 2 mapes bet gan kādas +6 mapes , jo palaižas nevis ap 23:00 bet ap 00:14. Edited June 12, 2009 by 4ava Link to comment Share on other sites More sharing options...
shine Posted June 12, 2009 Report Share Posted June 12, 2009 Tu nesaproti, ka +1h iet klāt tāpēc, ka ir larger than nevis larger or equal? +19min(max)+20min+20min... Uzliec -2h un miers. Link to comment Share on other sites More sharing options...
4ava Posted June 12, 2009 Report Share Posted June 12, 2009 (edited) bet tu nesaproti ka mainot ciparus vienalga laiks tas pats.. kad staveja 24 tad night loading on 00:14 .23 kad staveja tad night loading 00:14 22 kad stāvēja tad night loading 00:14 .. jēga tad vēl ņemt 1h minusā ja būs tas pats ? edīte.. mby ir vienkārši another plugin ?? kautkas līdzīgs ? Edited June 12, 2009 by 4ava Link to comment Share on other sites More sharing options...
shine Posted June 12, 2009 Report Share Posted June 12, 2009 Maybe tu cvarus nemāki uzlikt? Jo pēc def ir 22 + 2h = 00:00 + +/- 20min. Link to comment Share on other sites More sharing options...
remix.cc Posted June 12, 2009 Report Share Posted June 12, 2009 plugin_end'a nevar to load_mapcycle() ? Link to comment Share on other sites More sharing options...
4ava Posted June 12, 2009 Report Share Posted June 12, 2009 (edited) sakarā cvarus nemāku likt ? stāv šādi #include <amxmodx> new nightfrom,nightto public plugin_init() { register_plugin("Day/Night Mapcycle","0.7","Sh!nE*") nightfrom = register_cvar("dnm_night_from","22") nightto = register_cvar("dnm_night_to","9") load_mapcycle() } public load_mapcycle() { new hours[6] get_time("%H",hours,5) new hour = str_to_num(hours) new from = get_pcvar_num(nightfrom) new to = get_pcvar_num(nightto) if(from > 24 || from < 0 || to < 0 || to > 24) set_fail_state("How many hours are in one day?") if((from > to && (hour > from || hour < to)) || (from < to && (hour < from || hour > to))) server_cmd("mapcyclefile mapcycle/night.txt") else server_cmd("mapcyclefile mapcycle/day.txt") } Edited June 12, 2009 by 4ava Link to comment Share on other sites More sharing options...
shine Posted June 12, 2009 Report Share Posted June 12, 2009 22 + 2 = 00:00. Plugin end arī var.. bet kāda jēga? Tas neko nemaina, jo pēc mapchange būs plugin_init. Aj, cik es neglīti tad rakstīju šo kodu.. Link to comment Share on other sites More sharing options...
remix.cc Posted June 12, 2009 Report Share Posted June 12, 2009 es zinu.. tapec es ari uzbuveju savu mapcycle plugu :D:D Link to comment Share on other sites More sharing options...
4ava Posted June 12, 2009 Report Share Posted June 12, 2009 :D:D nedalamies ? Link to comment Share on other sites More sharing options...
shine Posted June 12, 2009 Report Share Posted June 12, 2009 Viņš ir skops. Nez, kas 20 rindiņās koda varētu mainīties? Cvaru nosaukumi? Link to comment Share on other sites More sharing options...
4ava Posted June 12, 2009 Report Share Posted June 12, 2009 (edited) nu nav man talanta kautko izlabot, kautko uzrakstīt. ja tev ir tad uzraksti ja nē iztiksim. edīte shine: noņēmu vēl 1h nost .. same shit. šoreiz 00:21 Edited June 12, 2009 by 4ava Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now