+ Reply to Thread
Results 1 to 2 of 2
  1. [Plugin] Admins Only

    #1
    VIP ~TraNda~'s Avatar
    Member since
    Feb 2014
    Location
    WarGods
    Posts
    12,099
    Last username
    LiOn. ~JoK3r ~
    Blog Entries
    4
    Mentioned
    95 Post(s)
    Achievements Days Registered 4 Mentions Received 2 Mentions Received 1 Mentions Given 4 Mentions Given 3 Mentions Given 2 Mentions Given 1 Threads Rating Received 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    [Plugin] Admins Only

    Descriere: cand un admin cu flagul "B" [ SLOT ] va scrie /admins, ii se va afisa un mesaj cu parola din sectiunea Admins Only de pe forum.

    Plugin: Admins Only
    Versiune: 1.0
    Autor: Infinity
    Link oficial:
    Download link:
    SMA

    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>

    #define PLUGIN "New Plug-In"
    #define VERSION "1.0"
    #define AUTHOR "Infinity"


    public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)

    register_clcmd ( "say /adminsonly", "fPrintCustomText" );
    register_clcmd ( "say adminsonly", "fPrintCustomText" );
    }

    public fPrintCustomText ( id ) {

    if ( get_user_flags ( id ) & ADMIN_RESERVATION ) {

    chat_color ( id, "!g[AdminsOnly]!n Parola sectiunii Admins Only este:!g ..." );
    }

    return 1;
    }

    stock chat_color(const id, const input[], any:...)
    {
    new count = 1, players[32]
    static msg[320]
    vformat(msg, 190, input, 3)
    replace_all(msg, 190, "!g", "^4")
    replace_all(msg, 190, "!n", "^1")
    replace_all(msg, 190, "!t", "^3")
    replace_all(msg, 190, "!t2", "^0")

    if (id)
    players[0] = id;
    else
    get_players(players, count, "ch")


    for (new i = 0; i < count; i++)
    {
    if (is_user_connected(players[i]))
    {
    message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
    write_byte(players[i])
    write_string(msg)
    message_end()
    }
    }
    }


    Instalare:
    1.Fisierul
    AdminsOnly.amxx
    il puneti in
    addons/amxmodx/plugins
    .
    [Optional]: Fisierul
    AdminsOnly.sma
    il puneti in
    addons/amxmodx/scripting
    .
    2.Intrati în
    addons/amxmodx/configs/plugins.ini
    si adaugati la urma:
    AdminsOnly.amxx
    .

    Comenzi (chat/consola):
    /adminsonly
    adminsonly


    Cvar-uri:
    NU NECESITA

    Informatii:
    In locul punctelor de suspensie(...) din SMA la linia
    Code:
    You have to register to be able to see this link. Register HERE! If you are already a member please log in! If you still you are not able to see the link you need to activate your account or an administrator need to activate your account!
    puneti ce parola doriti sa afiseze!
    -------------

    TraNda - WarGods | R.R.M - AngeL - LiOn. - pichacku - Jok3r - UnicA

    P A C E

    DISCORD: unknown.cfg


  2. [Plugin] Admins Only

    #2
    Membru - Silver II qLecacy's Avatar
    Member since
    Apr 2017
    Posts
    25
    Mentioned
    0 Post(s)
    Achievements Total Posts 1 Days Since Last Visited 2 Days Since Last Visited 1 Days Registered 2 Days Registered 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Bunicel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Partners
Humble Monthly Bundle
Voucher PC-Garage