Witam was ! Czy jest taki plugin bądź podmienienie czegoś , że zamiast na servie piszę /admins to wpiszie /prezes i wyswietla sie lista adminów.
Liczę , że ktoś pomorze , z góry THX
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
sprawa ?
Started By qlb44, 02.04.2009 07:10
3 replies to this topic
#1
Posted 02.04.2009 07:10
#2
Posted 02.04.2009 07:23
Proszę:
Skomplikuj sobie w kompilatorze.
#include <amxmodx> /*---------------EDIT ME------------------*/ #define ADMIN_CHECK ADMIN_KICK static const COLOR[] = "^x04" //green static const CONTACT[] = "" /*----------------------------------------*/ new maxplayers new gmsgSayText public plugin_init() { register_plugin("Admin Check", "1.51", "OneEyed") maxplayers = get_maxplayers() gmsgSayText = get_user_msgid("SayText") register_clcmd("say", "handle_say") register_cvar("amx_contactinfo", CONTACT, FCVAR_SERVER) } public handle_say(id) { new said[192] read_args(said,192) if( ( containi(said, "who") != -1 && containi(said, "admin") != -1 ) || contain(said, "/prezes") != -1 || contain(said, "/prezesi") != -1 ) set_task(0.1,"print_adminlist",id) return PLUGIN_CONTINUE } //pobrano z cs-puchatek.pl public print_adminlist(user) { new adminnames[33][32] new message[256] new contactinfo[256], contact[112] new id, count, x, len for(id = 1 ; id <= maxplayers ; id++) if(is_user_connected(id)) if(get_user_flags(id) & ADMIN_CHECK) get_user_name(id, adminnames[count++], 31) len = format(message, 255, "%s Admini w grze: ",COLOR) if(count > 0) { for(x = 0 ; x < count ; x++) { len += format(message[len], 255-len, "%s%s ", adminnames[x], x < (count-1) ? ", ":"") if(len > 96 ) { print_message(user, message) len = format(message, 255, "%s ",COLOR) } } print_message(user, message) } else { len += format(message[len], 255-len, "Brak adminow online.") print_message(user, message) } get_cvar_string("amx_contactinfo", contact, 63) if(contact[0]) { format(contactinfo, 111, "%s Kontakt z adminem serwera -- %s", COLOR, contact) print_message(user, contactinfo) } } print_message(id, msg[]) { message_begin(MSG_ONE, gmsgSayText, {0,0,0}, id) write_byte(id) write_string(msg) message_end() }
Skomplikuj sobie w kompilatorze.
#3
Posted 02.04.2009 11:09
wilelkie dzięki ;] pomógł ofc ;]
#4
Posted 02.04.2009 11:23
W kompilatorze *Skomplikuj sobie w kompilatorze.
Łap .amxx w załączniku
Attached Files
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users