phtm Posted August 27, 2006 Report Share Posted August 27, 2006 Man nepatīk starndarta access flagi... Piemēram es vēlos, lai xkick būtu nevis "c" flags, bet lai būtu "q". Kā to dabūt gatavu? Pārskatīju admincmd.sma, bet tur nekādu "c" nemanīju. Kur tad to visu var nomainīt? PS. public cmdKick(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new arg[32] read_argv(1, arg, 31) new player = cmd_target(id, arg, 1) if (!player) return PLUGIN_HANDLED new authid[32], authid2[32], name2[32], name[32], userid2, reason[32] get_user_authid(id, authid, 31) get_user_authid(player, authid2, 31) get_user_name(player, name2, 31) get_user_name(id, name, 31) userid2 = get_user_userid(player) read_argv(2, reason, 31) remove_quotes(reason) log_amx("Kick: ^"%s<%d><%s><>^" kick ^"%s<%d><%s><>^" (reason ^"%s^")", name, get_user_userid(id), authid, name2, userid2, authid2, reason) switch (get_cvar_num("amx_show_activity")) { case 2: client_print(0, print_chat, "%L", LANG_PLAYER, "ADMIN_KICK_2", name, name2) case 1: client_print(0, print_chat, "%L", LANG_PLAYER, "ADMIN_KICK_1", name2) } if (is_user_bot(player)) server_cmd("kick #%d", userid2) else { if (reason[0]) server_cmd("kick #%d ^"%s^"", userid2, reason) else server_cmd("kick #%d", userid2) } console_print(id, "[AMXX] Client ^"%s^" kicked", name2) return PLUGIN_HANDLED } Link to comment Share on other sites More sharing options...
x-tomy91-x Posted August 27, 2006 Report Share Posted August 27, 2006 Palasi Shito te Link to comment Share on other sites More sharing options...
phtm Posted August 27, 2006 Author Report Share Posted August 27, 2006 Pieleca! Liels tev paldies! Link to comment Share on other sites More sharing options...
Recommended Posts