AMX WHO // Admini Online 0.1

Sign in to follow this  

About This File

Descriere: Cu ajutorul acestui plugin jucatori pot vedea admin online pe server intr-un mod nou, voi puteti seta printr-un 'cvar' ca admini sa-i arate intr-un meniu ; intr-un motd ; sub forma unui tabel ; mesaj hud ; sau in consola. Acest plugin il foloseste si serverul comunitatii CS.PCTecuci.Ro

Nume: AMX WHO

Creator: Tr0YB0Y

Versiune: 0.1

=>Parola arhiva: "pctecuci.ro"


=>Instalare:

1. Fisierul amx_who.sma il puneti in addons/amxmodx/scripting

2. Fisierul amx_who.amxx il puneti in addons/amxmodx/plugins

3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: amx_who.amxx

=>Comenzi: in consola:

amx_who

amx_admin

admin_who

admin


=> Altele:

modificati cum doriti..

 

#include <amxmodx>#define MAX_GROUPS 11new g_groupNames[MAX_GROUPS][] = {"[1]   Fondator <=","[2]   Owner <=","[3]   Co-Owner <=","[4]   Manager <=","[5]   Administrator <=","[6]   Super-Moderator <=","[7]   Moderator-Global <=","[8]   Moderator <=","[9]   Helper <=","[10]  V.I.P <=","[11]  Slot <="}new g_groupFlags[MAX_GROUPS][] = {"abcdefghijklmnopqrstux","abcdefghijklmnopqrstu","bcdefgijmnopqrsu","bcdefgijmopqrs","bcdefgijmop","bcdefgijm","bcdefgi","bcdefg","bcdef","ab","b"}new g_groupFlagsValue[MAX_GROUPS]public plugin_init() {register_plugin("ADMIN who", "0.1", "www.pctecuci.ro - Tr0YB0Y")register_concmd("amx_admin", "cmdWho", 0)register_concmd("admin", "cmdWho", 0)register_concmd("amx_who", "cmdWho", 0)register_concmd("admin_who", "cmdWho", 0)for(new i = 0; i < MAX_GROUPS; i++) {g_groupFlagsValue[i] = read_flags(g_groupFlags[i])}}public cmdWho(id) {new players[32], inum, player, name[32], i, aget_players(players, inum)console_print(id, "Admini Online PCTecuci.Ro")for(i = 0; i < MAX_GROUPS; i++) {console_print(id, "-%s-", g_groupNames[i])for(a = 0; a < inum; ++a) {player = players[a]get_user_name(player, name, 31)if(get_user_flags(player) == g_groupFlagsValue[i]) {console_print(id, "%s", name)}}}console_print(id, "Admini Online PCTecuci.Ro")return PLUGIN_HANDLED}
 

Intrati in fisierul addons/amxmodx/configs/users.ini si inlocuiti cu:

 

; Users configuration file; File location: $moddir/addons/amxmodx/configs/users.ini; Line starting with ; is a comment; Plugin creat de catre Tr0YB0Y -- www.pctecuci.ro; Access flags:; a - immunity (can't be kicked/baned/slayed/slaped and affected by other commmands); b - reservation (can join on reserved slots); c - amx_kick command; d - amx_ban and amx_unban commands; e - amx_slay and amx_slap commands; f - amx_map command; g - amx_cvar command (not all cvars will be available); h - amx_cfg command; i - amx_chat and other chat commands; j - amx_vote and other vote commands; k - access to sv_password cvar (by amx_cvar command); l - access to amx_rcon command and rcon_password cvar (by amx_cvar command); m - custom level A (for additional plugins); n - custom level B; o - custom level C; p - custom level D; q - custom level E; r - custom level F; s - custom level G; t - custom level H; u - menu access; z - user (no admin); Account flags:; a - disconnect player on invalid password; b - clan tag; c - this is steamid/wonid; d - this is ip; e - password is not checked (only name/ip/steamid needed); k - name or tag is case sensitive.  eg: if you set it so the name "Ham";     is protected and case sensitive (flags "k" only), then anybody;     can use the names "haM", "HAM", "ham", etc, but not "Ham"; Password:; Add to your autoexec.cfg: setinfo _pw "<password>"; Change _pw to the value of amx_password_field; Format of admin account:; <name|ip|steamid> <password> <access flags> <account flags>; Examples of admin accounts:; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de"; "My Name" "my_password" "abcdefghijklmnopqrstu" "a";|==============================================================================================|;|[1]   Fondator <=  "abcdefghijklmnopqrstux" "a"  |;|==============================================================================================|;|============================================================================|;|[2]   Owner <=  "abcdefghijklmnopqrstu" "a"                         |;|==============================================================================================|;|============================================================================|;|[3]   Co-Owner <= "bcdefgijmnopqrsu" "a"                        |;|==============================================================================================|==============================================================================================|;|[4]   Manager <= "bcdefgijmopqrs" "a"                       |;|==============================================================================================|;|==============================================================================================|;|[5]   Administrator <= "bcdefgijmop" "a"       |==============================================================================================|==============================================================================================|;[6]   Super-Moderator <= "bcdefgijm" "a" |==============================================================================================|==============================================================================================|;|[7]   Moderator-Global <= "bcdefgi""a";|==============================================================================================|==============================================================================================|;[8]   Moderator <= "bcdefg""a";|==============================================================================================|;==============================================================================================|;[9]   Helper <= "bcdef"  "a"|;|==============================================================================================|;==============================================================================================|;[10]  V.I.P <= "ab"  "a"|;|==============================================================================================|==============================================================================================|;|[11]  Slot <= "b" "a"                   |;|==============================================================================================|