Zoliidais- Posted July 26, 2008 Report Share Posted July 26, 2008 Sakarā ar to, ka mana serveris nav īpaši izscēlies ar tautu man ienāca ideja, bet nezinu vai to var īstenot. Kāds nezin, vai ir tāds scripts, ka serverī iet mape fy_pool_day piemēram, un kad sanāk 5x5 serveris automātiski nomaina uz de_dust2, un ja dd2 tauta paliec 3x3 nomaina atpakal uz fy_pool_day ? Itkā tas būtu ideals veids, kā nosargāt esošo tautu serverī. Ja ir kāds kas zin kā to dabūt gatavu, tad lūdzu sakiet Būšu pateicigs. Link to comment Share on other sites More sharing options...
Kiwix Posted July 26, 2008 Report Share Posted July 26, 2008 @ amxmodx.org ir tāds plugins... (keywords - mapchange, nextmap utt.) Link to comment Share on other sites More sharing options...
Zoliidais- Posted July 26, 2008 Author Report Share Posted July 26, 2008 http://forums.alliedmods.net/showthread.php?p=194690 - shitas varētu būt tas, bet neiet :/ Link to comment Share on other sites More sharing options...
*jancis38* Posted July 26, 2008 Report Share Posted July 26, 2008 Labi ka Tu tik daudz izklāsti par problēmu, proti kāda velna pēc plugins neiet. Varētu mēģināt kautkādā veidā izīlēt, bet tam laikam vajadzēs pieredzi. Vai arī man tik melnās/baltās maģijas grāmata janopērk? Tas tiešām daudz ko izsaka - "Neiet.". Link to comment Share on other sites More sharing options...
Zoliidais- Posted July 26, 2008 Author Report Share Posted July 26, 2008 Hmm, šoreiz tiešām tev bija jāsaprot. Neiet - tas nozīmē, ka nekāda reakcija uzliekot pluginu. Nekas nemainās Link to comment Share on other sites More sharing options...
wap1337 Posted July 26, 2008 Report Share Posted July 26, 2008 a baigā , jēga ne ik pēc 2 min mape mainīsies? 4x5 ir velviens ienāk atkal mainās , visiem apnīk iziet ārā , atkal samainās! Link to comment Share on other sites More sharing options...
0.7lb Posted July 26, 2008 Report Share Posted July 26, 2008 nu vnk vajag salikt normālus config un tad jau visu laiku nemainīsies Link to comment Share on other sites More sharing options...
shine Posted July 26, 2008 Report Share Posted July 26, 2008 (edited) Vinjsh nomaina mapi/samazina timelimit, kad serveris ir tuksh. Atkal nomaina mapi tikko serverii ieiet kads players tad nomaina mapi... So izdomaa pats ... Tava situaacija vinjsh iipashi neder :S. #include <amxmodx> new num new large_num new bool:changing new const first_small_map[] = "fy_iceworld2k" new const first_large_map[] = "de_dust2" public plugin_init() {register_plugin("MC Change","0.7","Sh!nE*");num = register_cvar("amx_min_players","10");large_num = register_cvar("amx_max_players","15");} public client_connect(id) { new players = get_playersnum() new temptext[192] if(players < get_pcvar_num(num) && !changing) { changing=true server_cmd("mapcyclefile ^"mazasmapes.txt^"") format(temptext,191,"^x04[MCC]^x01MapCycle is going to change because the min player limit has been reached") set_cvar_num("mp_timelimit",1) server_cmd("amx_nextmap %s",first_small_map) } else if(players > get_pcvar_num(large_num) && !changing) { server_cmd("mapcyclefile ^"mapcycle.txt^"") server_cmd("amx_nextmap %s",first_large_map) format(temptext,191,"^x04[MCC]^x01MapCycle has been changed to normal maps because the max player limit has been reached.") } message_begin(MSG_ALL,get_user_msgid("SayText"),{0,0,0},0) write_byte(0) write_string(temptext) message_end() } Prieka pec uzchiniiju pluginu, kas nomainiis mapciklu uz mazajaam mapem ja playeri bus mazak par #.. un tikko playeri bus mazak par # vinjsh uzliks timeleft 1min un nextmap uzliks to mapi, kas sma augshaa.. negribeeju chakareeties, lai nolasa 1 rindu in mapcycle... tikko playeri bus vairak par #.. tad uzliks atpakalj defultaas mapes, bet timeleft nemainiis. Jaizveido mapcikla fails: mazasmapes.txt. Tur jasaliek mapes, kas bus uzliktas, ja bus mazak par # playeriem. Cvari: amx_min_players ## //No cik playeriem tiks mainiits mapcikls un uzlikta mazaa mape. Def: 10 amx_max_players ## //No cik playeriem tiks mainiits mapcikls un uzlikta defultaa/lielaa mape. Def: 15 new const first_small_map[] = "fy_iceworld2k" new const first_large_map[] = "de_dust2" Pedinjas nomainiet "fy_iceworld2k" uz pirmo mapi, kas atrodas juusu mazasmapes.txt pashaa Augshaa(pirma mape). "de_dust2" nomainiet, kas atrodas mapcycle.txt pashaa augshaa(pirma mape). Vereeju jau neslinkot un uztaisiit, ka pats nolasa... mans plugins nav ideaalais risinaajums.. ja ne tev tad ceru, ka kadam kaadu dienu vinjsh nodereet , bet ja ne... tad vismaz patreneeju savas pawn prasmes . Edited July 26, 2008 by shine Link to comment Share on other sites More sharing options...
Zoliidais- Posted July 26, 2008 Author Report Share Posted July 26, 2008 Ideāls izskaidrojums, un idēals cilvēks. Nevaig visu sīki un smalki izstāstīt, kas ko. Kā piemēram ko nozīmē 'neiet'. Liels paldies, notestēšu Link to comment Share on other sites More sharing options...
*jancis38* Posted July 26, 2008 Report Share Posted July 26, 2008 Neiet - tas nozīmē, ka nekāda reakcija uzliekot pluginu. Nekas nemainās Tad Tu tā arī varēja pateikt uzreiz, ka nekas consolē neparādas vai kautkas tml. Tiešām bļēģ jāzīlē? Link to comment Share on other sites More sharing options...
Zoliidais- Posted July 26, 2008 Author Report Share Posted July 26, 2008 Jā tev jāzīlē, ja nesaproti ;] Paldies var closed. Link to comment Share on other sites More sharing options...
Madn.Y Posted August 21, 2008 Report Share Posted August 21, 2008 Pluginā ir viens errors, kad karte mainās, piemēram uz fy_iceworld2k, tad visu laiku tajā kartē timelimit ir 1 minūte... Link to comment Share on other sites More sharing options...
shine Posted August 21, 2008 Report Share Posted August 21, 2008 #include <amxmodx> new num new large_num new bool:changing new const first_small_map[] = "fy_iceworld2k" new const first_large_map[] = "de_dust2" public plugin_init() {register_plugin("MC Change","0.7","Sh!nE*");num = register_cvar("amx_min_players","10");large_num = register_cvar("amx_max_players","15");set_cvar_num("mp_timelimit",25);} public client_connect(id) { new players = get_playersnum() new temptext[192] if(players < get_pcvar_num(num) && !changing) { changing=true server_cmd("mapcyclefile ^"mazasmapes.txt^"") format(temptext,191,"^x04[MCC]^x01MapCycle is going to change because the min player limit has been reached") set_cvar_num("mp_timelimit",1) server_cmd("amx_nextmap %s",first_small_map) } else if(players > get_pcvar_num(large_num) && !changing) { server_cmd("mapcyclefile ^"mapcycle.txt^"") server_cmd("amx_nextmap %s",first_large_map) format(temptext,191,"^x04[MCC]^x01MapCycle has been changed to normal maps because the max player limit has been reached.") } message_begin(MSG_ALL,get_user_msgid("SayText"),{0,0,0},0) write_byte(0) write_string(temptext) message_end() } Pamaini: set_cvar_num("mp_timelimit",25), pret savu def timelimitu... Link to comment Share on other sites More sharing options...
Madn.Y Posted August 21, 2008 Report Share Posted August 21, 2008 Tas pats arī paliek... Link to comment Share on other sites More sharing options...
shine Posted August 21, 2008 Report Share Posted August 21, 2008 #include <amxmodx> new num new large_num new bool:changing new const first_small_map[] = "fy_iceworld2k" new const first_large_map[] = "de_dust2" new const mazas_mapes_file[] = "mazasmapes.txt" new const lielas_mapes_file[] = "mapcycle.txt" public plugin_init() {register_plugin("MC Change","0.7","Sh!nE*");num = register_cvar("amx_min_players","10");large_num = register_cvar("amx_max_players","15");set_task(1.0,"set_cvars");} public set_cvars() server_cmd("mp_timelimit 25") public client_connect(id) { new players = get_playersnum() new temptext[192],cyclefile[33] get_cvar_string("mapcyclefile",cyclefile,32) if(players < get_pcvar_num(num) && !changing && !equali(cyclefile,mazas_mapes_file)) { changing=true server_cmd("mapcyclefile ^"%s^"",mazas_mapes_file) format(temptext,191,"^x04[MCC]^x01MapCycle is going to change because the min player limit has been reached") set_cvar_num("mp_timelimit",1) server_cmd("amx_nextmap %s",first_small_map) } else if(players > get_pcvar_num(large_num) && !changing && !equali(cyclefile,lielas_mapes_file)) { server_cmd("mapcyclefile ^"%s^"",lielas_mapes_file) server_cmd("amx_nextmap %s",first_large_map) format(temptext,191,"^x04[MCC]^x01MapCycle has been changed to normal maps because the max player limit has been reached.") } message_begin(MSG_ALL,get_user_msgid("SayText"),{0,0,0},0) write_byte(0) write_string(temptext) message_end() } mazas_mapes_file = pedinjas jaieraksta mazo mapju mapcikla fails lielas_mapes_file = pedinjas jaieraksta lielo mapju mapcikla fails public set_cvars() server_cmd("mp_timelimit 25") Skaitli 25 japamaina uz savu timelimitu serverim... Link to comment Share on other sites More sharing options...
Madn.Y Posted August 22, 2008 Report Share Posted August 22, 2008 (edited) hahah, kad palaid pluginu, serverī nav iespējams ieiet Edited August 22, 2008 by Madn.Y Link to comment Share on other sites More sharing options...
shine Posted August 22, 2008 Report Share Posted August 22, 2008 (edited) Tev nu gan serveris . Testeeju uz sava "test" servera. Likas, ka viss iet. Plugins reaali neblokjee pieeju serverim... so doma pats, kas tev to izraisa.. sv_lan 1? swds.dll? Edited August 22, 2008 by shine Link to comment Share on other sites More sharing options...
Madn.Y Posted August 23, 2008 Report Share Posted August 23, 2008 Tad visticamākais nepareizajās pēdiņās esmu ierakstijis mapcycle Link to comment Share on other sites More sharing options...
shine Posted August 23, 2008 Report Share Posted August 23, 2008 Tam nevajadzeetu but saistiitam ar to, ka playeri netiek... Link to comment Share on other sites More sharing options...
GEAR Posted August 24, 2008 Report Share Posted August 24, 2008 Ja tu kko būtu nepareizi ierakstījis plugins nekompilētos Link to comment Share on other sites More sharing options...
Madn.Y Posted August 26, 2008 Report Share Posted August 26, 2008 Tā arī bija problēma 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