Modificare Plugin DHUD IP SHOWER

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
Boss de Boss
Membru, skill 0
Membru, skill 0
Posts: 38
Joined: 03 Jun 2016, 12:24
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 46.102.116.30:27015
Fond eXtream: 0
Contact:

05 Aug 2018, 14:54

Salut baieti am un plugin decompilat prin Lisys si am incercat sa il compilez insa imii apare aceste erori
cso_ip.sma(18) : error 017: undefined symbol "clamp"
cso_ip.sma(19) : warning 213: tag mismatch
cso_ip.sma(20) : warning 213: tag mismatch
cso_ip.sma(22) : warning 213: tag mismatch
cso_ip.sma(23) : warning 213: tag mismatch
cso_ip.sma(24) : warning 213: tag mismatch
cso_ip.sma(25) : warning 213: tag mismatch
cso_ip.sma(28) : warning 203: symbol is never used: "blue"
cso_ip.sma(28) : warning 203: symbol is never used: "green"
cso_ip.sma(28) : warning 203: symbol is never used: "red"
cso_ip.sma(32) : error 017: undefined symbol "Removed"
cso_ip.sma(32 -- 33) : error 029: invalid expression, assumed zero
cso_ip.sma(33) : error 017: undefined symbol "buffer"
cso_ip.sma(33) : fatal error 107: too many error messages on one line

Compilation aborted.
5 Errors.
Done.


Sursa de la plugin este
| Afiseaza codul
#pragma semicolon 1
#pragma ctrlchar '\'

new __dhud_color;
new __dhud_x;
new __dhud_y;
new __dhud_effect;
new __dhud_fxtime;
new __dhud_holdtime;
new __dhud_fadeintime;
new __dhud_fadeouttime;
new __dhud_reliable;
new ip[16];
new port;

set_dhudmessage(red, green, blue, Float:x, Float:y, effects, Float:fxtime, Float:holdtime, Float:fadeintime, Float:fadeouttime, bool:reliable)
{
    __dhud_color = clamp(red, 0, 255) << 16 + clamp(green, 0, 255) << 8 + clamp(blue, 0, 255);
    __dhud_x = x;
    __dhud_y = y;
    __dhud_effect = effects;
    __dhud_fxtime = fxtime;
    __dhud_holdtime = holdtime;
    __dhud_fadeintime = fadeintime;
    __dhud_fadeouttime = fadeouttime;
    __dhud_reliable = reliable;
    return 1;
}

show_dhudmessage(index, String:message[])
{
    !!! Removed Phi
    new buffer[128];
    new numArguments = numargs();
    if (numArguments == 2)
    {
        send_dhudMessage(index, message);
    }
    else
    {
        if (index || numArguments == 3)
        {
            vformat(buffer, 127, message, 3);
            send_dhudMessage(index, buffer);
        }
        new playersList[32];
        new numPlayers = 0;
        get_players(playersList, numPlayers, "ch", "");
        if (!numPlayers)
        {
            return 0;
        }
        new Array:handleArrayML = ArrayCreate(1, 32);
        new i = 2;
        new j = 0;
        while (i < numArguments)
        {
            if (getarg(i, 0) == -1)
            {
                do {
                    j++;
                    new var2 = getarg(i + 1, j);
                    buffer[j] = var2;
                } while (var2);
                j = 0;
                if (GetLangTransKey(buffer) != -1)
                {
                    i++;
                    ArrayPushCell(handleArrayML, i);
                    i++;
                }
                i++;
            }
            i++;
        }
        new size = ArraySize(handleArrayML);
        if (!size)
        {
            vformat(buffer, 127, message, 3);
            send_dhudMessage(index, buffer);
        }
        else
        {
            new i = 0;
            new j = 0;
            while (i < numPlayers)
            {
                index = playersList;
                j = 0;
                while (j < size)
                {
                    setarg(ArrayGetCell(handleArrayML, j), 0, index);
                    j++;
                }
                vformat(buffer, 127, message, 3);
                send_dhudMessage(index, buffer);
                i++;
            }
        }
        ArrayDestroy(handleArrayML);
    }
    return 1;
}

send_dhudMessage(index, String:message[])
{
    new var2;
    if (__dhud_reliable)
    {
        new var1;
        if (index)
        {
            var1 = 1;
        }
        else
        {
            var1 = 2;
        }

 function "send_dhudMessage"
send_dhudMessage(index, String:message[])

public plugin_init()
{
    register_plugin("DHUD IP Shower", "1.0", "D i 5 7 i n c T");
    set_task(0.50, "cache_settings", 0, "", 0, "", 0);
    set_task(1.00, "show_dhud", 0, "", 0, "b", 0);
    return 0;
}

public cache_settings()
{
    get_user_ip(0, ip, 15, 1);
    port = get_cvar_num("port");
    return 0;
}

public show_dhud()
{
    set_dhudmessage(255, 50, 247, 1.00, 0.00, 0, 6.00, 1.10, 0.00, 0.00, false);
    show_dhudmessage(0, "IP: ZOMBIMOD.COM:27015", ip, port);
    return 0;
}
Skype: andrei.costan00
RoyalServer
User avatar
Laurentiu P.
Fost moderator
Fost moderator
Posts: 2549
Joined: 10 Jul 2013, 21:26
Detinator Steam: Da
Reputatie: Fost super moderator
Fond eXtream: 100
Has thanked: 26 times
Been thanked: 62 times
Contact:

05 Aug 2018, 21:38

Degeaba l-ai decompilat ca oricum iti lipsesc multe chestii. Mai degraba iei un alt plugin care sa arate IP-ul serverului sau orice ar face acesta.
no...
Boss de Boss
Membru, skill 0
Membru, skill 0
Posts: 38
Joined: 03 Jun 2016, 12:24
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: 46.102.116.30:27015
Fond eXtream: 0
Contact:

06 Aug 2018, 23:46

nu gasessc un asa plugin sa apara ip in colt sus din dreapta
Skype: andrei.costan00
User avatar
Xeno985
Membru, skill +1
Membru, skill +1
Posts: 206
Joined: 05 Jul 2017, 22:07
Detinator Steam: Da
CS Status: Disponibil, doar cand sunt acasa.
Detinator server CS: Nu
SteamID: 512916512916
Reputatie: Membru Club eXtreamCS (28 Jan - 28 Feb)
Fond eXtream: 0
Location: 127.0.0.1
Discord: nvF4B8A
Has thanked: 12 times
Been thanked: 4 times
Contact:

12 Aug 2018, 16:35

Daca vrei sa pui IP la server in dreapta sus:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>


#define PLUGIN "Show hud IP" 
#define VERSION "1.0" 
#define AUTHOR "LuciaNNN." 

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

	set_task(1.00, "show_hud", 0, "", 0, "b", 0);
}

public show_hud() {
	set_hudmessage(255, 50, 247, 1.00, 0.00, 0, 6.00, 1.10, 0.00, 0.00, false) 
	show_hudmessage(0, "IP: 89.44.125.23:27015") 
}
👉 Panel Counter-Strike: Click. 👈
👉💎 Shop: Click. 💎👈
👉💻 Filme: Click. 💻👈
👉📧 Contact: Steam 📧👈
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests