Kiwix Posted May 18, 2008 Report Share Posted May 18, 2008 Lūk plugins: #include <amxmodx> public plugin_init() { register_plugin("PrevMap", "1.0", "neuromancer") register_dictionary("prevmap.txt") register_clcmd("say prevmap", "sayPrevMap", 0, "- displays prevmap") new lmapn[32]; get_localinfo("lmapn", lmapn, 31) set_localinfo("pmapn", lmapn) set_task(1.0, "setinfo") } public setinfo() { new mapname[32] get_mapname(mapname, 31) set_localinfo("lmapn", mapname) } public sayPrevMap() { new pmapn[32] get_localinfo("pmapn", pmapn, 31) if(equal(pmapn, "")) { client_print(0, print_chat, "%L", LANG_PLAYER, "NO_PREV_MAP") } else { client_print(0, print_chat, "%L: %s", LANG_PLAYER, "PREV_MAP", pmapn) } } Kāds var pārveidot kodu, lai tas rādītu pēdējas 5 mapes (nevis vienu)?! Paldies par uzmanību. Link to comment Share on other sites More sharing options...
shine Posted May 18, 2008 Report Share Posted May 18, 2008 Tas nav tik aatri/viegli... tur ir 10x garaaks kods... anyway... negribu chakareeties un ko taadu taisiit. 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