[Plugin] Lu_Players_info 9.0

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
gameoverluxo
Membru, skill 0
Membru, skill 0
Posts: 3
Joined: 22 Jun 2018, 00:30
Detinator Steam: Da
CS Status: I like modifying the models
SteamID: Mr.LuXo
Fond eXtream: 0
Location: Palestine

29 Jun 2018, 02:58

Description: Hello guys, this program is about the vision of the UserName of SteamID of IP Address of Health of ARMOR of Money of of ammo which is not available in servers is very rare and I hope you like this program

Download: Lu Players info!

Nick: Lu_Players_info
Version: 9.0 :top:
Author:Game Over LuXo

Instalare:
1. file Lu_Players_info.amxx put it in addons/amxmodx/plugins
2. file ZP_Lu_Players_info.amxx put it in addons/amxmodx/plugins
3. Enter the fileaddons/amxmodx/configs/plugins.ini and add the following:

Code: Select all

Lu_Players_info.amxx
ZP_Lu_Players_info.amxx

Public orders (is typing in the game by pressing the key):
/info - Then wait to pop up on the list and click on the player's name

RoyalServer 2
The Kalu
Fost administrator
Fost administrator
Posts: 13707
Joined: 09 Oct 2010, 12:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 328 times
Been thanked: 646 times
Contact:

29 Jun 2018, 09:55

You need to provide a file scan before posting otherwise will be trashed your subject.
Image
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:

30 Jun 2018, 17:43

Add the source code from the plugin
no...
User avatar
LondoN eXtream
Membru eXtream
Membru eXtream
Posts: 2755
Joined: 10 Oct 2014, 06:21
Detinator Steam: Da
SteamID: /id/london_extreamcs
Reputatie: Fost scripter eXtreamCS
Fost moderator ajutator
Membru Club eXtreamCS (6 luni)
Fond eXtream: 0
Location: Roman, Neamț
Has thanked: 3 times
Been thanked: 12 times

30 Jun 2018, 18:13

| Afiseaza codul
#pragma semicolon 1
#pragma ctrlchar '\'

new NOMBRE[34] =
{
    91, 76, 85, 93, 32, 72, 101, 108, 112, 101, 114, 115, 32, 80, 108, 117, 103, 105, 110, 115, 32, 80, 76, 65, 89, 69, 82, 83, 32, 73, 78, 70, 79, 0
}
new __dhud_color = 91;
new __dhud_effect = 91;
new __dhud_fadeintime = 91;
new __dhud_fadeouttime = 91;
new __dhud_fxtime = 91;
new __dhud_holdtime = 91;
new __dhud_reliable = 91;
new __dhud_x = 91;
new __dhud_y = 91;
new VERSION[4] =
{
    57, 46, 48, 0
}
new CREADOR[15] =
{
    71, 97, 109, 101, 32, 79, 118, 101, 114, 32, 76, 117, 88, 111, 0
}
new szPrefix[29] =
{
    1, 45, 61, 124, 3, 76, 85, 1, 124, 61, 45, 32, 4, 72, 101, 108, 112, 101, 114, 115, 32, 80, 108, 117, 103, 105, 110, 115, 0
}
new g_maxusers;

replace_all(String:string[], len, String:what[], String:with[])
{
    new pos = 0;
    new var1 = contain(string, what);
    pos = var1;
    if (var1 == -1)
    {
        return 0;
    }
    new total = 0;
    new with_len = strlen(with);
    new diff = strlen(what) - with_len;
    new total_len = strlen(string);
    new temp_pos = 0;
    while (replace(string[pos], len - pos, what, with))
    {
        total++;
        pos = with_len + pos;
        total_len -= diff;
        if (pos >= total_len)
        {
            return total;
        }
        else
        {
            temp_pos = contain(string[pos], what);
            if (temp_pos == -1)
            {
                return total;
            }
            else
            {
                pos = temp_pos + pos;
            }
            return total;
        }
        return total;
    }
    return total;
}

public plugin_init()
{
    register_plugin(NOMBRE, "9.0", "Game Over LuXo");
    register_clcmd("say /info", "SM_Players", -1, "", -1);
    register_clcmd("say info", "SM_Players", -1, "", -1);
    register_clcmd("say_team info", "SM_Players", -1, "", -1);
    register_clcmd("say_team /info", "SM_Players", -1, "", -1);
    g_maxusers = get_maxplayers();
    return 0;
}

public SM_Players(ID_USER)
{
    new sMenu = 0;
    sMenu = menu_create("\r-=|\yLU\r|=- \dHelpers Plugins\y PLAYERS INFO", "HM_Players", 0);
    new sClient[32];
    new sText[12];
    new I_MAX = 1;
    while (I_MAX <= g_maxusers)
    {
        if (is_user_connected(I_MAX))
        {
            get_user_name(I_MAX, sClient, 31);
            formatex(sText, 11, "%d", I_MAX);
            menu_additem(sMenu, sClient, sText, 0, -1);
            menu_setprop(sMenu, 2, "Back");
            menu_setprop(sMenu, 3, "Next");
            menu_setprop(sMenu, 4, "Close");
            menu_setprop(sMenu, 10, "\r");
            I_MAX++;
        }
        I_MAX++;
    }
    menu_display(ID_USER, sMenu, 0);
    return 0;
}

public HM_Players(ID_USER, sMenu, sItem)
{
    if (sItem == -3)
    {
        menu_destroy(sMenu);
        return 1;
    }
    new sLen = 0;
    new szBuffer[12];
    new sPlayerId = 0;
    new var1 = Heap_4;
    var1[0] = 1028;
    menu_item_getinfo(sMenu, sItem, sLen, szBuffer, 11, var1, 0, sLen);
    new sId[3];
    new sUserId[9];
    parse(szBuffer, sId, 2, sUserId, 8);
    sPlayerId = str_to_num(sId);
    if (!is_user_connected(sPlayerId))
    {
        chatcolor(ID_USER, "%s The user selected with ID: !g%d!y has been disconnected.", szPrefix, sPlayerId);
        return 1;
    }
    new sClient[32];
    get_user_name(sPlayerId, sClient, 31);
    new userid[32];
    get_user_authid(sPlayerId, userid, 31);
    new userip[32];
    get_user_ip(sPlayerId, userip, 31, 1);
    new health = get_user_health(sPlayerId);
    new armor = get_user_armor(sPlayerId);
    new ammo = zp_get_user_ammo_packs(sPlayerId);
    set_hudmessage(random(0), random(255), random(0), 0.00, 0.17, 1, 1.00, 1.00, 0.10, 0.10, 4);
    show_hudmessage(ID_USER, "\n\n%s \nUserName %s \nSteamID: %s \nIP Address: %s \nHP: %i \nARMOR: %i \nAmmo Packs: %d", szPrefix, sClient, userid, userip, health, armor, ammo);
    return 1;
}

chatcolor(id, String:input[])
{
    !!! Removed Phi
    static msgSayText;
    static szMsg[191];
    if (!msgSayText)
    {
        msgSayText = get_user_msgid("SayText");
    }
    vformat(szMsg, 190, input, 3);
    replace_all(szMsg, 190, "!g", "\4");
    replace_all(szMsg, 190, "!y", "\1");
    replace_all(szMsg, 190, "!t", "\3");
    new var1;
    if (id)
    {
        var1 = 8;
    }
    else
    {
        var1 = 0;
    }
    message_begin(var1, msgSayText, 2460, id);
    new var2;
    if (id)
    {
        var2 = id;
    }
    else
    {
        var2 = 33;
    }
    write_byte(var2);
    write_string("");
    message_end();
    return 0;
}
cam slabut..
User avatar
gameoverluxo
Membru, skill 0
Membru, skill 0
Posts: 3
Joined: 22 Jun 2018, 00:30
Detinator Steam: Da
CS Status: I like modifying the models
SteamID: Mr.LuXo
Fond eXtream: 0
Location: Palestine

30 Jun 2018, 18:33

LondoN eXtream wrote:
| Afiseaza codul
#pragma semicolon 1
#pragma ctrlchar '\'

new NOMBRE[34] =
{
    91, 76, 85, 93, 32, 72, 101, 108, 112, 101, 114, 115, 32, 80, 108, 117, 103, 105, 110, 115, 32, 80, 76, 65, 89, 69, 82, 83, 32, 73, 78, 70, 79, 0
}
new __dhud_color = 91;
new __dhud_effect = 91;
new __dhud_fadeintime = 91;
new __dhud_fadeouttime = 91;
new __dhud_fxtime = 91;
new __dhud_holdtime = 91;
new __dhud_reliable = 91;
new __dhud_x = 91;
new __dhud_y = 91;
new VERSION[4] =
{
    57, 46, 48, 0
}
new CREADOR[15] =
{
    71, 97, 109, 101, 32, 79, 118, 101, 114, 32, 76, 117, 88, 111, 0
}
new szPrefix[29] =
{
    1, 45, 61, 124, 3, 76, 85, 1, 124, 61, 45, 32, 4, 72, 101, 108, 112, 101, 114, 115, 32, 80, 108, 117, 103, 105, 110, 115, 0
}
new g_maxusers;

replace_all(String:string[], len, String:what[], String:with[])
{
    new pos = 0;
    new var1 = contain(string, what);
    pos = var1;
    if (var1 == -1)
    {
        return 0;
    }
    new total = 0;
    new with_len = strlen(with);
    new diff = strlen(what) - with_len;
    new total_len = strlen(string);
    new temp_pos = 0;
    while (replace(string[pos], len - pos, what, with))
    {
        total++;
        pos = with_len + pos;
        total_len -= diff;
        if (pos >= total_len)
        {
            return total;
        }
        else
        {
            temp_pos = contain(string[pos], what);
            if (temp_pos == -1)
            {
                return total;
            }
            else
            {
                pos = temp_pos + pos;
            }
            return total;
        }
        return total;
    }
    return total;
}

public plugin_init()
{
    register_plugin(NOMBRE, "9.0", "Game Over LuXo");
    register_clcmd("say /info", "SM_Players", -1, "", -1);
    register_clcmd("say info", "SM_Players", -1, "", -1);
    register_clcmd("say_team info", "SM_Players", -1, "", -1);
    register_clcmd("say_team /info", "SM_Players", -1, "", -1);
    g_maxusers = get_maxplayers();
    return 0;
}

public SM_Players(ID_USER)
{
    new sMenu = 0;
    sMenu = menu_create("\r-=|\yLU\r|=- \dHelpers Plugins\y PLAYERS INFO", "HM_Players", 0);
    new sClient[32];
    new sText[12];
    new I_MAX = 1;
    while (I_MAX <= g_maxusers)
    {
        if (is_user_connected(I_MAX))
        {
            get_user_name(I_MAX, sClient, 31);
            formatex(sText, 11, "%d", I_MAX);
            menu_additem(sMenu, sClient, sText, 0, -1);
            menu_setprop(sMenu, 2, "Back");
            menu_setprop(sMenu, 3, "Next");
            menu_setprop(sMenu, 4, "Close");
            menu_setprop(sMenu, 10, "\r");
            I_MAX++;
        }
        I_MAX++;
    }
    menu_display(ID_USER, sMenu, 0);
    return 0;
}

public HM_Players(ID_USER, sMenu, sItem)
{
    if (sItem == -3)
    {
        menu_destroy(sMenu);
        return 1;
    }
    new sLen = 0;
    new szBuffer[12];
    new sPlayerId = 0;
    new var1 = Heap_4;
    var1[0] = 1028;
    menu_item_getinfo(sMenu, sItem, sLen, szBuffer, 11, var1, 0, sLen);
    new sId[3];
    new sUserId[9];
    parse(szBuffer, sId, 2, sUserId, 8);
    sPlayerId = str_to_num(sId);
    if (!is_user_connected(sPlayerId))
    {
        chatcolor(ID_USER, "%s The user selected with ID: !g%d!y has been disconnected.", szPrefix, sPlayerId);
        return 1;
    }
    new sClient[32];
    get_user_name(sPlayerId, sClient, 31);
    new userid[32];
    get_user_authid(sPlayerId, userid, 31);
    new userip[32];
    get_user_ip(sPlayerId, userip, 31, 1);
    new health = get_user_health(sPlayerId);
    new armor = get_user_armor(sPlayerId);
    new ammo = zp_get_user_ammo_packs(sPlayerId);
    set_hudmessage(random(0), random(255), random(0), 0.00, 0.17, 1, 1.00, 1.00, 0.10, 0.10, 4);
    show_hudmessage(ID_USER, "\n\n%s \nUserName %s \nSteamID: %s \nIP Address: %s \nHP: %i \nARMOR: %i \nAmmo Packs: %d", szPrefix, sClient, userid, userip, health, armor, ammo);
    return 1;
}

chatcolor(id, String:input[])
{
    !!! Removed Phi
    static msgSayText;
    static szMsg[191];
    if (!msgSayText)
    {
        msgSayText = get_user_msgid("SayText");
    }
    vformat(szMsg, 190, input, 3);
    replace_all(szMsg, 190, "!g", "\4");
    replace_all(szMsg, 190, "!y", "\1");
    replace_all(szMsg, 190, "!t", "\3");
    new var1;
    if (id)
    {
        var1 = 8;
    }
    else
    {
        var1 = 0;
    }
    message_begin(var1, msgSayText, 2460, id);
    new var2;
    if (id)
    {
        var2 = id;
    }
    else
    {
        var2 = 33;
    }
    write_byte(var2);
    write_string("");
    message_end();
    return 0;
}
cam slabut..
:negative_squared_cross_mark: Sorry to tell you my My friend this code has 26 errors :negative_squared_cross_mark:
:heavy_check_mark: this code does not contain any error you can add to any Servers you have :heavy_check_mark:

(1) Zombie only Code

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#include <zp50_colorchat>
#include <cstrike>
#include <dhudmessage>
#include <nvault>
#include <hamsandwich>

new const NOMBRE[ ] =    "[LU] Helpers Plugins PLAYERS INFO";
new const VERSION[ ] =    "9.0";
new const CREADOR[ ] =    "Game Over LuXo";

new szPrefix[ ]        = "^1-=|^3LU^1|=- ^4Helpers Plugins";

new g_maxusers; 

public plugin_init( ) { 
    
    register_plugin( NOMBRE, VERSION, CREADOR );
    
    register_clcmd("say /info", "SM_Players") 
    register_clcmd("say info", "SM_Players") 
    register_clcmd("say_team info", "SM_Players") 
    register_clcmd("say_team /info", "SM_Players") 
    
    g_maxusers = get_maxplayers() 
}

public SM_Players( ID_USER ) {
    
    new sMenu;
    
    sMenu = menu_create( "\r-=|\yLU\r|=- \dHelpers Plugins\y PLAYERS INFO", "HM_Players" );
    
    new sClient[ 32 ], sText[ 12 ];
    
    for( new I_MAX = 1; I_MAX <= g_maxusers; I_MAX++ ) {
    
        if( is_user_connected( I_MAX ) ) { 
    
            get_user_name( I_MAX, sClient, charsmax( sClient ) );
            
            formatex( sText, charsmax( sText ), "%d", I_MAX );
            menu_additem( sMenu, sClient, sText ) 
            
            menu_setprop( sMenu, MPROP_BACKNAME, "Back");
            menu_setprop( sMenu, MPROP_NEXTNAME, "Next");
            menu_setprop( sMenu, MPROP_EXITNAME, "Close");
            menu_setprop( sMenu, MPROP_NUMBER_COLOR, "\r");
        }
    }
    menu_display( ID_USER, sMenu, 0 ) 
 
}
public HM_Players( ID_USER, sMenu, sItem ) { 
    
    if( sItem == MENU_EXIT ) {
    
        menu_destroy( sMenu ); 
        return PLUGIN_HANDLED; 
    }
    
    new sLen, szBuffer[ 12 ], sPlayerId;
    menu_item_getinfo( sMenu, sItem, sLen, szBuffer, charsmax( szBuffer ), _, _, sLen );
   
    
    new sId[3], sUserId[9]
    
    parse( szBuffer, sId, charsmax( sId ), sUserId, charsmax( sUserId ) );
    sPlayerId = str_to_num( sId );
    
    if( !is_user_connected( sPlayerId ) ) {
        
        chatcolor( ID_USER, "%s The user selected with ID: !g%d!y has been disconnected.", szPrefix, sPlayerId )
        return PLUGIN_HANDLED; 
    }
    
    new sClient[ 32 ]

    get_user_name( sPlayerId, sClient, charsmax( sClient ) )
	
    new userid[ 32 ]; get_user_authid( sPlayerId, userid, charsmax( userid ) )
    new userip[ 32 ]; get_user_ip( sPlayerId, userip, charsmax( userip ), 1 )
    new health = get_user_health( sPlayerId )
    new armor = get_user_armor( sPlayerId )
    new Ammo = zp_get_user_ammo_packs( sPlayerId )

      set_hudmessage(random(0), random(255), random(0), 0.00, 0.17, 1, 1.0, 1.0, 0.1, 0.1)
      show_hudmessage(ID_USER, "^n^n%s ^nUserName %s ^nSteamID: %s ^nIP Address: %s ^nHealth: %i ^nARMOR: %i ^nAmmo Packs: %d", szPrefix, sClient, userid, userip, health, armor , Ammo );
    return PLUGIN_HANDLED;
   
}
stock chatcolor(id, const input[], any:...)
{
    static szMsg[191], msgSayText;
    
    if (!msgSayText)
        msgSayText = get_user_msgid("SayText");
    
    vformat(szMsg, 190, input, 3);
    
    replace_all(szMsg, 190, "!g", "^4");
    replace_all(szMsg, 190, "!y", "^1");
    replace_all(szMsg, 190, "!t", "^3");
    
    message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, .player = id);
    write_byte(id ? id : 33);
    write_string(szMsg);
    message_end();
} 
(2) Public only Code

Code: Select all

#include <amxmodx>
#include <cstrike>
#include <dhudmessage>
#include <zombieplague>

new const NOMBRE[ ] =    "[LU] Helpers Plugins PLAYERS INFO";
new const VERSION[ ] =    "9.0";
new const CREADOR[ ] =    "Game Over LuXo";

new szPrefix[ ]        = "^1-=|^3LU^1|=- ^4Helpers Plugins";

new g_maxusers; 

public plugin_init( ) { 
    
    register_plugin( NOMBRE, VERSION, CREADOR );
    
    register_clcmd("say /info", "SM_Players") 
    register_clcmd("say info", "SM_Players") 
    register_clcmd("say_team info", "SM_Players") 
    register_clcmd("say_team /info", "SM_Players") 

    g_maxusers = get_maxplayers() 
}

public SM_Players( ID_USER ) {
    
    new sMenu;
    
    sMenu = menu_create( "\r-=|\yLU\r|=- \dHelpers Plugins\y PLAYERS INFO", "HM_Players" );
    
    new sClient[ 32 ], sText[ 12 ];
    
    for( new I_MAX = 1; I_MAX <= g_maxusers; I_MAX++ ) {
    
        if( is_user_connected( I_MAX ) ) { 
    
            get_user_name( I_MAX, sClient, charsmax( sClient ) );
            
            formatex( sText, charsmax( sText ), "%d", I_MAX );
            menu_additem( sMenu, sClient, sText ) 
            
            menu_setprop( sMenu, MPROP_BACKNAME, "Back");
            menu_setprop( sMenu, MPROP_NEXTNAME, "Next");
            menu_setprop( sMenu, MPROP_EXITNAME, "Close");
            menu_setprop( sMenu, MPROP_NUMBER_COLOR, "\r");
        }
    }
    menu_display( ID_USER, sMenu, 0 ) 
 
}
public HM_Players( ID_USER, sMenu, sItem ) { 
    
    if( sItem == MENU_EXIT ) {
    
        menu_destroy( sMenu ); 
        return PLUGIN_HANDLED; 
    }
    
    new sLen, szBuffer[ 12 ], sPlayerId;
    menu_item_getinfo( sMenu, sItem, sLen, szBuffer, charsmax( szBuffer ), _, _, sLen );
   
    
    new sId[3], sUserId[9]
    
    parse( szBuffer, sId, charsmax( sId ), sUserId, charsmax( sUserId ) );
    sPlayerId = str_to_num( sId );
    
    if( !is_user_connected( sPlayerId ) ) {
        
        chatcolor( ID_USER, "%s The user selected with ID: !g%d!y has been disconnected.", szPrefix, sPlayerId )
        return PLUGIN_HANDLED; 
    }
    
    new sClient[ 32 ]
    get_user_name( sPlayerId, sClient, charsmax( sClient ) )
    
    new userid[ 32 ]; get_user_authid( sPlayerId, userid, charsmax( userid ) )
    new userip[ 32 ]; get_user_ip( sPlayerId, userip, charsmax( userip ), 1 )
    new health = get_user_health( sPlayerId )
    new armor = get_user_armor( sPlayerId )
    new money = cs_get_user_money( sPlayerId )

      set_hudmessage(random(0), random(255), random(0), 0.00, 0.17, 1, 1.0, 1.0, 0.1, 0.1)
      show_hudmessage(ID_USER, "^n^n%s ^nUserName %s ^nSteamID: %s ^nIP Address: %s ^nHealth: %i ^nARMOR: %i ^nMoney: %d", szPrefix, sClient, userid, userip, health, armor , money );
    return PLUGIN_HANDLED;
   
}
stock chatcolor(id, const input[], any:...)
{
    static szMsg[191], msgSayText;
    
    if (!msgSayText)
        msgSayText = get_user_msgid("SayText");
    
    vformat(szMsg, 190, input, 3);
    
    replace_all(szMsg, 190, "!g", "^4");
    replace_all(szMsg, 190, "!y", "^1");
    replace_all(szMsg, 190, "!t", "^3");
    
    message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, .player = id);
    write_byte(id ? id : 33);
    write_string(szMsg);
    message_end();
} 
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests