+ Reply to Thread
Results 1 to 6 of 6
  1. Instalare Plugin LoadingBanner !

    #1
    Membru - Silver Elite Power.'s Avatar
    Member since
    Jun 2011
    Location
    localhost
    Posts
    234
    Mentioned
    0 Post(s)
    Achievements Total Posts 2 Total Posts 1 Days Registered 4 Days Registered 3 Days Registered 2 Days Registered 1 Threads 1 Confirmed Friends 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    Instalare Plugin LoadingBanner !

    Descriere: Pluginul face in asa fel sa-i arata jucatorului cand se conecteaza pe server un banner sub bara de Loading.

    Exemplu:

    Autor: AMX_DEV_TEAM

    Download Plugin:
    Plugin SMA

    /*
    Created by DJ_WEST

    Web: 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!
    Русское сообщество по AMX Mod X и SourceMod

    Присоединяйтесь к нам. Здесь рождаются новые идеи.
    */

    #include <amxmodx>

    #define PLUGIN "Loading Game Banner"
    #define VERSION "1.3"
    #define AUTHOR "DJ_WEST"

    #define MAX_SIZE 1012
    #define BANNER_FILE "resource/images/nume_poza.tga"
    #define TASKID 6892

    new const g_Files[][64] =
    {
    "resource/LoadingDialog.res",
    "resource/LoadingDialogNoBanner.res",
    "resource/LoadingDialogVAC.res"
    }

    new g_Text[MAX_SIZE], g_CvarEnabled, g_ChangeDelay[33], bool:g_PlayerConnected[33]

    public plugin_init()
    {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("change", "Change_LoadingGame")

    g_CvarEnabled = register_cvar("amx_banner", "1")

    if (get_pcvar_num(g_CvarEnabled))
    set_task(0.1, "Read_LoadingGame")
    }

    public client_connect(id)
    client_cmd(id, "cl_allowdownload 1")

    public plugin_precache()
    {
    precache_generic(BANNER_FILE)
    }

    public Read_LoadingGame()
    {
    new i_File, s_File[128], s_Banner[32], i_Len

    i_Len = strlen(BANNER_FILE)
    get_configsdir(s_File, charsmax(s_File))
    format(s_File, charsmax(s_File), "%s/loading_banner.ini", s_File)
    formatex(s_Banner, i_Len - 4, "%s", BANNER_FILE)
    i_File = fopen(s_File, "r")
    fgets(i_File, g_Text, MAX_SIZE)
    replace(g_Text, charsmax(g_Text), "banner_file", s_Banner)
    fclose(i_File)
    }

    public client_putinserver(id)
    {
    if (get_pcvar_num(g_CvarEnabled))
    {
    if (is_user_hltv(id) || is_user_bot(id))
    return PLUGIN_HANDLED

    g_ChangeDelay[id] = 0
    g_PlayerConnected[id] = true
    set_task(3.0, "Change_LoadingGame", id)
    }

    return PLUGIN_HANDLED
    }

    public Change_LoadingGame(id)
    {
    set_task(1.0, "Change_LoadingGame_Delay", id + TASKID, "", 0, "a", 4)
    }

    public Change_LoadingGame_Delay(taskid)
    {
    new id, i

    id = taskid - TASKID

    if (!g_PlayerConnected[id])
    return PLUGIN_HANDLED

    i = g_ChangeDelay[id]

    if (i == 3)
    {
    client_cmd(id, "motdfile motd.txt")
    g_ChangeDelay[id] = 0
    }
    else
    {
    client_cmd(id, "motdfile %s", g_Files[i])
    client_cmd(id, "motd_write %s", g_Text)

    g_ChangeDelay[id]++
    }

    return PLUGIN_HANDLED
    }

    public client_disconnect(id)
    {
    g_PlayerConnected[id] = false
    remove_task(id + TASKID)
    }

    stock get_configsdir(s_Name[], i_Len)
    return get_localinfo("amxx_configsdir", s_Name, i_Len)


    Loading Banner.ini

    "Resource/LoadingDialog.res"
    {
    "LoadingDialog"
    {
    "ControlName" "Frame"
    "xpos" "322"
    "ypos" "249"
    "wide" "380"
    "tall" "200"
    }
    "SysMenu"
    {
    "ControlName" "Menu"
    "wide" "64"
    "tall" "24"
    }
    "InfoLabel"
    {
    "ControlName" "Label"
    "xpos" "20"
    "ypos" "34"
    "wide" "340"
    "tall" "24"
    "dulltext" "1"
    "labelText" "#GameUI_ParseBaseline"
    }
    "progress"
    {
    "ControlName" "ProgressBar"
    "xpos" "20"
    "ypos" "64"
    "wide" "260"
    "tall" "24"
    }
    "CancelButton"
    {
    "ControlName" "Button"
    "xpos" "288"
    "ypos" "64"
    "wide" "72"
    "tall" "24"
    "labelText" "#GameUI_Cancel"
    "command" "Cancel"
    }
    "Divider1"
    {
    "ControlName" "Divider"
    "xpos" "20"
    "ypos" "104"
    "wide" "340"
    "tall" "2"
    }
    "BannerAd"
    {
    "ControlName""HTML"
    "fieldName""BannerAd"
    "xpos" "0"
    "ypos" "0"
    "wide" "0"
    "tall" "0"
    }
    "TimeRemainingLabel"
    {
    "ControlName" "Label"
    "xpos" "20"
    "ypos" "108"
    "wide" "260"
    "tall" "24"
    }
    "VACImage"
    {
    "ControlName" "ImagePanel"
    "xpos" "20"
    "ypos" "124"
    "wide" "340"
    "tall" "56"
    "image" "banner_file"
    }
    }


    Instalare si Configurare:

    - LoadingBanner.ini il copiati in amxmodx/configs
    - LoadingBanner.sma il copiati in amxmodx/scripting
    - Dupa compilare adaugati in plugins.ini numele pluginului LoadingBanner.amxx
    - Imaginea o puneti in cstrike/resource/images cu format .TGA
    - Adaugati in amxx.cfg urmatoarele cvaruri
    • amx_banner "1/0" Implicit 1 ca pluginul sa functioneze.


    Detalii Imagine:

    Trebui sa creem o imagine cu dimensiunile de (340x56) apoi salvam in format .TGA (in momentul in care salvati trebui sa puneti un nume)

    Default pluginul vine asa cu director spre imagine:

    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!
    Daca vreti sa schimbati numele pozei, schimbati doar banner.tga

    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!
    Last edited by ~TraNda~; 20-03-2018 at 10:39 PM.
    Be or not to be. That's the question!

  2. Instalare Plugin LoadingBanner !

    #2
    Membru - Gold Nova I petryca's Avatar
    Member since
    Sep 2010
    Location
    turcoaia
    Posts
    576
    Mentioned
    0 Post(s)
    Achievements Visitor Messages Received 1 Total Posts 2 Total Posts 1 Days Since Last Visited 1 Days Registered 4 Days Registered 3 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

    GJ...Vroiam sa fac eu tutorialul,insa ms ptr ca l-ai facut
    We are just a little man in this great world!

  3. Instalare Plugin LoadingBanner !

    #3
    darkboss1234's Avatar
    Member since
    Mar 2018
    Location
    Targoviste
    Posts
    3
    Mentioned
    1 Post(s)
    Achievements 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

    se poate alta sursa, aceasta ma redirectioneaza in alte site-uri

  4. Instalare Plugin LoadingBanner !

    #4
    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

    Quote Originally Posted by darkboss1234 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!
    se poate alta sursa, aceasta ma redirectioneaza in alte site-uri
    @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!

    Plugin SMA

    /*
    Created by DJ_WEST

    Web: 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!
    Русское сообщество по AMX Mod X и SourceMod

    Присоединяйтесь к нам. Здесь рождаются новые идеи.
    */

    #include <amxmodx>

    #define PLUGIN "Loading Game Banner"
    #define VERSION "1.3"
    #define AUTHOR "DJ_WEST"

    #define MAX_SIZE 1012
    #define BANNER_FILE "resource/images/nume_poza.tga"
    #define TASKID 6892

    new const g_Files[][64] =
    {
    "resource/LoadingDialog.res",
    "resource/LoadingDialogNoBanner.res",
    "resource/LoadingDialogVAC.res"
    }

    new g_Text[MAX_SIZE], g_CvarEnabled, g_ChangeDelay[33], bool:g_PlayerConnected[33]

    public plugin_init()
    {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    register_clcmd("change", "Change_LoadingGame")

    g_CvarEnabled = register_cvar("amx_banner", "1")

    if (get_pcvar_num(g_CvarEnabled))
    set_task(0.1, "Read_LoadingGame")
    }

    public client_connect(id)
    client_cmd(id, "cl_allowdownload 1")

    public plugin_precache()
    {
    precache_generic(BANNER_FILE)
    }

    public Read_LoadingGame()
    {
    new i_File, s_File[128], s_Banner[32], i_Len

    i_Len = strlen(BANNER_FILE)
    get_configsdir(s_File, charsmax(s_File))
    format(s_File, charsmax(s_File), "%s/loading_banner.ini", s_File)
    formatex(s_Banner, i_Len - 4, "%s", BANNER_FILE)
    i_File = fopen(s_File, "r")
    fgets(i_File, g_Text, MAX_SIZE)
    replace(g_Text, charsmax(g_Text), "banner_file", s_Banner)
    fclose(i_File)
    }

    public client_putinserver(id)
    {
    if (get_pcvar_num(g_CvarEnabled))
    {
    if (is_user_hltv(id) || is_user_bot(id))
    return PLUGIN_HANDLED

    g_ChangeDelay[id] = 0
    g_PlayerConnected[id] = true
    set_task(3.0, "Change_LoadingGame", id)
    }

    return PLUGIN_HANDLED
    }

    public Change_LoadingGame(id)
    {
    set_task(1.0, "Change_LoadingGame_Delay", id + TASKID, "", 0, "a", 4)
    }

    public Change_LoadingGame_Delay(taskid)
    {
    new id, i

    id = taskid - TASKID

    if (!g_PlayerConnected[id])
    return PLUGIN_HANDLED

    i = g_ChangeDelay[id]

    if (i == 3)
    {
    client_cmd(id, "motdfile motd.txt")
    g_ChangeDelay[id] = 0
    }
    else
    {
    client_cmd(id, "motdfile %s", g_Files[i])
    client_cmd(id, "motd_write %s", g_Text)

    g_ChangeDelay[id]++
    }

    return PLUGIN_HANDLED
    }

    public client_disconnect(id)
    {
    g_PlayerConnected[id] = false
    remove_task(id + TASKID)
    }

    stock get_configsdir(s_Name[], i_Len)
    return get_localinfo("amxx_configsdir", s_Name, i_Len)


    Loading Banner.ini

    "Resource/LoadingDialog.res"
    {
    "LoadingDialog"
    {
    "ControlName" "Frame"
    "xpos" "322"
    "ypos" "249"
    "wide" "380"
    "tall" "200"
    }
    "SysMenu"
    {
    "ControlName" "Menu"
    "wide" "64"
    "tall" "24"
    }
    "InfoLabel"
    {
    "ControlName" "Label"
    "xpos" "20"
    "ypos" "34"
    "wide" "340"
    "tall" "24"
    "dulltext" "1"
    "labelText" "#GameUI_ParseBaseline"
    }
    "progress"
    {
    "ControlName" "ProgressBar"
    "xpos" "20"
    "ypos" "64"
    "wide" "260"
    "tall" "24"
    }
    "CancelButton"
    {
    "ControlName" "Button"
    "xpos" "288"
    "ypos" "64"
    "wide" "72"
    "tall" "24"
    "labelText" "#GameUI_Cancel"
    "command" "Cancel"
    }
    "Divider1"
    {
    "ControlName" "Divider"
    "xpos" "20"
    "ypos" "104"
    "wide" "340"
    "tall" "2"
    }
    "BannerAd"
    {
    "ControlName""HTML"
    "fieldName""BannerAd"
    "xpos" "0"
    "ypos" "0"
    "wide" "0"
    "tall" "0"
    }
    "TimeRemainingLabel"
    {
    "ControlName" "Label"
    "xpos" "20"
    "ypos" "108"
    "wide" "260"
    "tall" "24"
    }
    "VACImage"
    {
    "ControlName" "ImagePanel"
    "xpos" "20"
    "ypos" "124"
    "wide" "340"
    "tall" "56"
    "image" "banner_file"
    }
    }


    Instalarea se face la fel.
    -------------

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

    P A C E

    DISCORD: unknown.cfg


  5. Instalare Plugin LoadingBanner !

    #5
    darkboss1234's Avatar
    Member since
    Mar 2018
    Location
    Targoviste
    Posts
    3
    Mentioned
    1 Post(s)
    Achievements 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

    am facut pas cu pas si uite ce apare 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!

  6. Instalare Plugin LoadingBanner !

    #6
    darkboss1234's Avatar
    Member since
    Mar 2018
    Location
    Targoviste
    Posts
    3
    Mentioned
    1 Post(s)
    Achievements 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

    up?

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