ljaron Posted December 17, 2008 Report Share Posted December 17, 2008 Sveiki! Man taads jautaajums, vai ir plugins,fails.. nez... kas mapes beigaas taisa votemap un izveelaas mapes nahaljavu kas ir cstrike/maps failaa. Vnk es nevaru taa noliidzinaat mapcycle.txt failaa mapes lai viss buutu labi un lai visiem patiktu... ceru, ka saprataat ideju Link to comment Share on other sites More sharing options...
0.7lb Posted December 17, 2008 Report Share Posted December 17, 2008 (edited) Cofigs mapee maps.ini failu apskaties un izdari nepiecieshamas izmainjas(jauna rindaa pieraksti kartes). Plugina nosaukums mapsmenu, ja nemaldos jabuut jau ieksh defultaa amxx. Edited December 17, 2008 by 0.7lb Link to comment Share on other sites More sharing options...
ljaron Posted December 18, 2008 Author Report Share Posted December 18, 2008 tu vispaar saprati ko es pajautaaju? Es gribu, lai nav jaasaliek tajaa maps.ini vai mapcycle.txt taas mapes, bet gan lai serveris uz votemap njem nahaljavu mapes, kas ir @ cstrike/maps Link to comment Share on other sites More sharing options...
ImMortl Posted December 19, 2008 Report Share Posted December 19, 2008 saliec tai maps.ini vienkārši visas kartes būs tev tad visas no maps foldera Link to comment Share on other sites More sharing options...
ljaron Posted December 19, 2008 Author Report Share Posted December 19, 2008 1kaart - jaaraksta. shausmiigi gruuti buus uzrakstiit visas taas mapes. (vinjas tur ir simtiem) + vinjaam visu laiku buss viena un taa pati seciiba.. gribu lai vinjas mainaas.. Link to comment Share on other sites More sharing options...
DoubleT Posted December 19, 2008 Report Share Posted December 19, 2008 secība būs randomā votemapam ( automātiskajam ) bet n u šeit uz nahaļavu neizbrauksi raksti tikai ;]] Link to comment Share on other sites More sharing options...
shine Posted December 20, 2008 Report Share Posted December 20, 2008 (edited) Tātad tu gribi, ka katru mapi nākošo mapi izvēlas pilnīgi random? Nevis noteiktā secībā? Nu tad maybe šis tev noderēs: #include <amxmodx> new current_map[33] public plugin_init() {register_plugin("Mapes nahaljavu x.d","0.7","Sh!nE");choose_map();} public choose_map() { new filename[128],maps[128][33],line_data[33],t_num get_mapname(current_map,32) format(filename,127,"%s/maps.ini") new file = fopen(filename,"r") if(file) { while(fgets(file,line_data,32)) { if(line_data[0]!=';' && !equal(line_data,current_map)) { copy(maps[t_num],32,line_data) t_num++ } } set_cvar_string("amx_nextmap",maps[random_num(0,t_num)]) } fclose(file) } Neesmu testējis, bet vajadzētu visam iet kā pa sviestu.. EDIT: aizmirsu piebilst, ka tev jānoņem mapchooser.amxx Edited December 20, 2008 by shine 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