+ Reply to Thread
Results 1 to 2 of 2
  1. [Plugin] Show Button Pressed

    #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] Show Button Pressed

    Descriere: Arata cine a apasat pe un buton.

    Plugin: Show Button Pressed
    Versiune: 1.0
    Autor: [P]erfec[T] [S]cr[@]s[H]
    Link oficial: -
    Download link:
    SMA

    /* Plugin generated by AMXX-Studio */

    #include <amxmodx>
    #include <engine>
    #include <hamsandwich>

    #define PLUGIN "[ZP] Plugin: Show Button Pressed"
    #define VERSION "1.0"
    #define AUTHOR "[P]erfec[T] [S]cr[@]s[H]"

    new anti_flood_last_ent[33]

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

    RegisterHam(Ham_Use, "func_button", "fw_UseStationary")
    RegisterHam(Ham_Use, "func_rot_button", "fw_UseStationary")
    }

    public fw_UseStationary(entity, caller, activator, use_type)
    {
    if(anti_flood_last_ent[caller] == entity)
    return HAM_IGNORED

    static class[32]
    static name[32]; get_user_name(caller, name, 31);
    entity_get_string(entity, EV_SZ_targetname, class, 31) // ta target pra ver o nome do botao

    if(!class[0])
    entity_get_string(entity, EV_SZ_target, class, 31)

    client_printcolor(0, "!g[ZE] !t%s!y Press the Button !t'%s'", name, class)

    anti_flood_last_ent[caller] = entity
    remove_task(caller)
    set_task(3.0, "anti_flood_reset", caller)

    return HAM_IGNORED
    }

    public anti_flood_reset(id) anti_flood_last_ent[id] = 0

    stock client_printcolor(const id,const input[], any:...)
    {
    new msg[191], players[32], count = 1; vformat(msg,190,input,3);
    replace_all(msg,190,"!g","^4"); // green
    replace_all(msg,190,"!y","^1"); // normal
    replace_all(msg,190,"!t","^3"); // team

    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("S ayText"),_,players[i]);
    write_byte(players[i]);
    write_string(msg);
    message_end();
    }
    }
    }


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

    Modules:
    engine
    hamsandwich
    -------------

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

    P A C E

    DISCORD: unknown.cfg


  2. [Plugin] Show Button Pressed

    #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

    este bun,l-am testat

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