What's new

Welcome to LastCS.Ro # Gaming

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

LCS Resources

Private resources made by the LCS team!!

Live Server

Live tracking of our servers.

Contact us

Contact the site administrator directly.

Server Hosting

Want to host a server ? Press here to get one.

Block Console Command Manager [1.0]

tweky

BOSS DE BOSS
Staff member
Joined
Jun 7, 2024
Messages
10
Reaction score
0
Points
3
Website
minios.ro
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