0
Awards
LV
0
 
33
Likes
162

Messages

tweky

BOSS DE BOSS
Staff member
Administrator
Moderator LCS
High Rollers
Joined
Jun 7, 2024
Reaction score
33
Points
28
Age
31
Website
minios.ro
Credits
2,599
Descriere: adaugi o comanda in block_cmd_manager.ini si cand jucatorul o va tasta nu ii va functionat (ex: jointeam, drop)

Descarcare:
Code:
#include amxmodx

new Array:g_Stroke = Invalid_Array;

public client_command(Client)
{
    if (!ArraySize(g_Stroke))
    {
        return PLUGIN_CONTINUE;
    }
   
    static Command[64], Stroke[64], Size = 0;

    read_argv(0, Command, charsmax(Command));

    for (Size = 0; Size < ArraySize(g_Stroke); Size++)
    {
        ArrayGetString(g_Stroke, Size, Stroke, charsmax(Stroke));

        if (equali(Command, Stroke))
        {
            client_print(Client, print_center, "[eXtreamCS] Aceasta comanda este blocata !");
       
            return PLUGIN_HANDLED;
        }
    }

    return PLUGIN_CONTINUE;
}

public plugin_init()
{
    register_plugin("block cmds !", "1.0", "ideia - lordofnothing, codul - claudiuhks");
}

public plugin_cfg()
{
    static File = 0, Buffer[64], Location[256];

    g_Stroke = ArrayCreate(64 /* maximum length */);

    get_localinfo("amxx_configsdir", Location, charsmax(Location));

    add(Location, charsmax(Location), "/block_cmd_manager.ini ");

    if (!file_exists(Location))
    {
        File = fopen(Location, "w+" /* write file */);

        if (File)
        {
            fclose(File);
        }
    }

    File = fopen(Location, "rt" /* read file as text */);

    if (File)
    {
        while (!feof(File))
        {
            fgets(File, Buffer, charsmax(Buffer));

            trim(Buffer);

            if (!strlen(Buffer) || Buffer[0] == ';')
            {
                continue;
            }
           
            ArrayPushString(g_Stroke, Buffer);
        }

        fclose(File);
    }
}

Nume: Block Cmd Manager
Versiune: 1.0
Link oficial: extreamcs
Autori: LordOfNothing & claudiuhks

Instalare:
1. Fisierul block_manager.sma il puneti in addons/amxmodx/scripting
2. Fisierul block_manager.amxx il puneti in addons/amxmodx/plugins
3. Fisierul block_manager.ini il puneti in addons/amxmodx/plugins
4. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Code:
block_manager.amxx
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top