archux Posted February 3, 2007 Report Share Posted February 3, 2007 Vai kaads vareetu ieteikt vienkarshu pluginu? Kursh redirektotu no pilnaa servera uz tukshaako ??? Link to comment Share on other sites More sharing options...
Invisible Posted February 3, 2007 Report Share Posted February 3, 2007 njāā, šī tēma ir bijusi 100x papa abūuu Link to comment Share on other sites More sharing options...
ExTaZy Posted February 3, 2007 Report Share Posted February 3, 2007 njāā, šī tēma ir bijusi 100x papa abūuu Nu 100x tiešam nebija bet kādas 30 Link to comment Share on other sites More sharing options...
archux Posted February 4, 2007 Author Report Share Posted February 4, 2007 paldies Link to comment Share on other sites More sharing options...
Fragrancer Posted February 4, 2007 Report Share Posted February 4, 2007 Neredzu jēgu likt klāt redirect pluginu ( +1 plugins), ja .sma source failos var norādīt nevis ; disconnect, bet gan attiecīgi ; connect SERVERIP:port Link to comment Share on other sites More sharing options...
Guest priedzza Posted February 4, 2007 Report Share Posted February 4, 2007 emm, bet ja megina peec tas metodes tad tieshi kura .sma faila ir tas janomain ? Link to comment Share on other sites More sharing options...
de.Fault Posted February 4, 2007 Report Share Posted February 4, 2007 emm, bet ja megina peec tas metodes tad tieshi kura .sma faila ir tas janomain ? padoma logiski... es izlasot niker444 postu uzreiz sapratu par kuru plaginu iet runa. Link to comment Share on other sites More sharing options...
Fragrancer Posted February 4, 2007 Report Share Posted February 4, 2007 emm, bet ja megina peec tas metodes tad tieshi kura .sma faila ir tas janomain ? Es neizmantoju defaulto admin slot pluginu jo man vēl nāk klāt SMS slot/nick reģistrācija, bet nu doma ir šāda - else client_cmd(id,"echo ^"Serveris pilns.^";connect 81.94.239.19:27016") Link to comment Share on other sites More sharing options...
archux Posted February 4, 2007 Author Report Share Posted February 4, 2007 bljaviens es skatiijos pluginu sma failus bet neko taadu neatradu vai kaads var pateitk konkreeta plugina nosaukumu? Link to comment Share on other sites More sharing options...
Fragrancer Posted February 4, 2007 Report Share Posted February 4, 2007 bljaviens es skatiijos pluginu sma failus bet neko taadu neatradu vai kaads var pateitk konkreeta plugina nosaukumu? ci kes atceros defaultais slot plugins saucaas admin_slot .... kka taa ...... Link to comment Share on other sites More sharing options...
archux Posted February 4, 2007 Author Report Share Posted February 4, 2007 #include <amxmodx> #include <amxmisc> new g_cmdLoopback[16] new g_ResPtr new g_HidePtr public plugin_init() { register_plugin("Slots Reservation", AMXX_VERSION_STR, "AMXX Dev Team") register_dictionary("adminslots.txt") register_dictionary("common.txt") g_ResPtr = register_cvar("amx_reservation", "1") g_HidePtr = register_cvar("amx_hideslots", "1") format(g_cmdLoopback, 15, "amxres%c%c%c%c", random_num('A', 'Z'), random_num('A', 'Z'), random_num('A', 'Z'), random_num('A', 'Z')) register_clcmd(g_cmdLoopback, "ackSignal") } public plugin_cfg() { if (!get_pcvar_num(g_HidePtr)) return PLUGIN_CONTINUE new maxplayers = get_maxplayers() new players = get_playersnum(1) new limit = maxplayers - get_pcvar_num(g_ResPtr) setVisibleSlots(players, maxplayers, limit) return PLUGIN_CONTINUE } public ackSignal(id) { new lReason[64] format(lReason, 63, "%L", id, "DROPPED_RES") server_cmd("kick #%d ^"%s^"", get_user_userid(id), lReason) } public client_authorized(id) { new maxplayers = get_maxplayers() new players = get_playersnum(1) new limit = maxplayers - get_pcvar_num(g_ResPtr) if (access(id, ADMIN_RESERVATION) || (players <= limit)) { if (get_pcvar_num(g_HidePtr) == 1) setVisibleSlots(players, maxplayers, limit) return PLUGIN_CONTINUE } client_cmd(id, "%s", g_cmdLoopback) return PLUGIN_HANDLED } public client_disconnect(id) { if (!get_pcvar_num(g_HidePtr)) return PLUGIN_CONTINUE new maxplayers = get_maxplayers() setVisibleSlots(get_playersnum(1) - 1, maxplayers, maxplayers - get_pcvar_num(g_ResPtr)) return PLUGIN_CONTINUE } setVisibleSlots(players, maxplayers, limit) { new num = players + 1 if (players == maxplayers) num = maxplayers else if (players < limit) num = limit set_cvar_num("sv_visiblemaxplayers", num) } shaadi izskatas mans adminslots.sma ko tu teici bet tur es neko tadu neredzu ka pilns servaks kautka taa nekaa nesaprotu Link to comment Share on other sites More sharing options...
Fragrancer Posted February 4, 2007 Report Share Posted February 4, 2007 (edited) server_cmd("kick #%d ^"%s^"", get_user_userid(id), lReason) pēc idejas uz būtu jāmaina uz client_cmd komandu, kuras rezultātā ir connect ... thats all ... Edited February 4, 2007 by niker444 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