Cerere plugin /info [Rezolvat]

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

22 Nov 2013, 14:14

Salut. As dori si eu plugin-ul /info! Cand scrii /info in chat iti apare in chat informatii despre tine: IP, SteamID, Data, ora. ceva de genul! Am nevoie de acest plugin si pe net nu-l gasesc...
shadowfax
Membru, skill 0
Membru, skill 0
Posts: 21
Joined: 21 Nov 2013, 12:15
Detinator Steam: Da
CS Status: :)
SteamID: abemopeace
Location: Oltenita
Has thanked: 1 time
Contact:

22 Nov 2013, 14:20

Se numeste autoresponder.
Uite aici http://www15.zippyshare.com/v/67389606/file.html

Sma in scripting
amxx in plugins
celalalt fisier il bagi in cstrike\addons\amxmodx\configs
apoi intri in \cstrike\addons\amxmodx\configs\plugins si adaugi dedesubt auto_responder.amxx

Edit: Cred ca nu e ceea ce cauti. scuze
Last edited by shadowfax on 22 Nov 2013, 14:26, edited 1 time in total.
User avatar
h4wk
Fost moderator
Fost moderator
Posts: 3806
Joined: 22 Sep 2009, 13:10
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Nume anterior : DaZ , zimpe , Dan eXtream
Location: Iasi
Has thanked: 306 times
Been thanked: 321 times
Contact:

22 Nov 2013, 14:25

| Afiseaza codul
[code=php]#include <amxmodx>
#include <amxmisc>
#include <cstrike>


#define PLUGIN "Info Player MSG"
#define VERSION "1.0"
#define AUTHOR "P.Of.Pw/rework DaZ"


#if defined _colorchat_included
#endinput
#endif
#define _colorchat_included

enum Color
{
    NORMAL = 1, // clients scr_concolor cvar color
    GREEN, // Green Color
    TEAM_COLOR, // Red, grey, blue
    GREY, // grey
    RED, // Red
    BLUE, // Blue
}

new const TeamName[][] = 
{
    "",
    "TERRORIST",
    "CT",
    "SPECTATOR"
}  

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   register_clcmd ( "say /info" , "info_cmd" , -1 );
   register_clcmd ( "say_team /info" , "info_cmd" , -1 );

   register_clcmd ( "say info" , "info_cmd" , -1 );
   register_clcmd ( "say_team info" , "info_cmd" , -1 );

   
}


public info_cmd ( id ) {
   
   new name[32] , usrip[32] , timer[32];
   
   get_user_name(id,name,31);
   get_user_ip(id, usrip, 31);
   get_time("%m/%d/%Y - %H:%M:%S", timer,31);



   ColorChat(id, GREEN,"[ Player InFo ]^x03 Numele tau %s | Data %s" ,name ,timer);
   ColorChat(id, GREEN,"[ Player InFo ]^x03 IP %s" , usrip);
   client_cmd(id,"spk ^"vox/message^"")
   
}

public client_putinserver(id)
{
    set_task(10.0, "infomsg", id)
}

public infomsg(id)
{
    ColorChat(id, GREEN,"[ InFo ] Scrie /info in chat pentru a afla detalii despre server.")
}

public info(id)
{
    client_print(id,print_chat,"%d")
}
ColorChat(id, Color:type, const msg[], any:...)
{
    new message[256];

    switch(type)
    {
        case NORMAL: // clients scr_concolor cvar color
        {
            message[0] = 0x01;
        }
        case GREEN: // Green
        {
            message[0] = 0x04;
        }
        default: // White, Red, Blue
        {
            message[0] = 0x03;
        }
    }

    vformat(message[1], 251, msg, 4);

    // Make sure message is not longer than 192 character. Will crash the server.
    message[192] = '^0';

    new team, ColorChange, index, MSG_Type;
    
    if(id)
    {
        MSG_Type = MSG_ONE_UNRELIABLE;
        index = id;
    } else {
        index = FindPlayer();
        MSG_Type = MSG_BROADCAST;
    }
    
    team = get_user_team(index);
    ColorChange = ColorSelection(index, MSG_Type, type);

    ShowColorMessage(index, MSG_Type, message);
        
    if(ColorChange)
    {
        Team_Info(index, MSG_Type, TeamName[team]);
    }
}

ShowColorMessage(id, type, message[])
{
    static msgSayText;
    if(!msgSayText)
    {
        msgSayText = get_user_msgid("SayText");
    }
    message_begin(type, msgSayText, _, id);
    write_byte(id)        
    write_string(message);
    message_end();    
}

Team_Info(id, type, team[])
{
    static msgTeamInfo;
    if(!msgTeamInfo)
    {
        msgTeamInfo = get_user_msgid("TeamInfo");
    }
    message_begin(type, msgTeamInfo, _, id);
    write_byte(id);
    write_string(team);
    message_end();

    return 1;
}

ColorSelection(index, type, Color:Type)
{
    switch(Type)
    {
        case RED:
        {
            return Team_Info(index, type, TeamName[1]);
        }
        case BLUE:
        {
            return Team_Info(index, type, TeamName[2]);
        }
        case GREY:
        {
            return Team_Info(index, type, TeamName[0]);
        }
    }

    return 0;
}

FindPlayer()
{
    new i = -1;

    while(i <= get_maxplayers())
    {
        if(is_user_connected(++i))
            return i;
    }

    return -1;
}
[/code]

Code: Select all

"Daca ai culoare nu inseamna ca esti mai presus ca un utilizator. Culoare e un fel de "rasplata" pentru ca te implici in "ridicarea" acestei comunitati.
Unii nu realizeaza ca daca ai culoare nu inseamna ca esti smecher." -- by Alexey
:troll :troll

Spui ceva,dar faci altceva !
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

22 Nov 2013, 14:35

zimpe wrote:
| Afiseaza codul
[code=php]#include <amxmodx>
#include <amxmisc>
#include <cstrike>


#define PLUGIN "Info Player MSG"
#define VERSION "1.0"
#define AUTHOR "P.Of.Pw/rework DaZ"


#if defined _colorchat_included
#endinput
#endif
#define _colorchat_included

enum Color
{
    NORMAL = 1, // clients scr_concolor cvar color
    GREEN, // Green Color
    TEAM_COLOR, // Red, grey, blue
    GREY, // grey
    RED, // Red
    BLUE, // Blue
}

new const TeamName[][] = 
{
    "",
    "TERRORIST",
    "CT",
    "SPECTATOR"
}  

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   register_clcmd ( "say /info" , "info_cmd" , -1 );
   register_clcmd ( "say_team /info" , "info_cmd" , -1 );

   register_clcmd ( "say info" , "info_cmd" , -1 );
   register_clcmd ( "say_team info" , "info_cmd" , -1 );

   
}


public info_cmd ( id ) {
   
   new name[32] , usrip[32] , timer[32];
   
   get_user_name(id,name,31);
   get_user_ip(id, usrip, 31);
   get_time("%m/%d/%Y - %H:%M:%S", timer,31);



   ColorChat(id, GREEN,"[ Player InFo ]^x03 Numele tau %s | Data %s" ,name ,timer);
   ColorChat(id, GREEN,"[ Player InFo ]^x03 IP %s" , usrip);
   client_cmd(id,"spk ^"vox/message^"")
   
}

public client_putinserver(id)
{
    set_task(10.0, "infomsg", id)
}

public infomsg(id)
{
    ColorChat(id, GREEN,"[ InFo ] Scrie /info in chat pentru a afla detalii despre server.")
}

public info(id)
{
    client_print(id,print_chat,"%d")
}
ColorChat(id, Color:type, const msg[], any:...)
{
    new message[256];

    switch(type)
    {
        case NORMAL: // clients scr_concolor cvar color
        {
            message[0] = 0x01;
        }
        case GREEN: // Green
        {
            message[0] = 0x04;
        }
        default: // White, Red, Blue
        {
            message[0] = 0x03;
        }
    }

    vformat(message[1], 251, msg, 4);

    // Make sure message is not longer than 192 character. Will crash the server.
    message[192] = '^0';

    new team, ColorChange, index, MSG_Type;
    
    if(id)
    {
        MSG_Type = MSG_ONE_UNRELIABLE;
        index = id;
    } else {
        index = FindPlayer();
        MSG_Type = MSG_BROADCAST;
    }
    
    team = get_user_team(index);
    ColorChange = ColorSelection(index, MSG_Type, type);

    ShowColorMessage(index, MSG_Type, message);
        
    if(ColorChange)
    {
        Team_Info(index, MSG_Type, TeamName[team]);
    }
}

ShowColorMessage(id, type, message[])
{
    static msgSayText;
    if(!msgSayText)
    {
        msgSayText = get_user_msgid("SayText");
    }
    message_begin(type, msgSayText, _, id);
    write_byte(id)        
    write_string(message);
    message_end();    
}

Team_Info(id, type, team[])
{
    static msgTeamInfo;
    if(!msgTeamInfo)
    {
        msgTeamInfo = get_user_msgid("TeamInfo");
    }
    message_begin(type, msgTeamInfo, _, id);
    write_byte(id);
    write_string(team);
    message_end();

    return 1;
}

ColorSelection(index, type, Color:Type)
{
    switch(Type)
    {
        case RED:
        {
            return Team_Info(index, type, TeamName[1]);
        }
        case BLUE:
        {
            return Team_Info(index, type, TeamName[2]);
        }
        case GREY:
        {
            return Team_Info(index, type, TeamName[0]);
        }
    }

    return 0;
}

FindPlayer()
{
    new i = -1;

    while(i <= get_maxplayers())
    {
        if(is_user_connected(++i))
            return i;
    }

    return -1;
}
 [/code]
Il poti face sa afiseze ora si Steam ID-ul te rog?
User avatar
h4wk
Fost moderator
Fost moderator
Posts: 3806
Joined: 22 Sep 2009, 13:10
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Nume anterior : DaZ , zimpe , Dan eXtream
Location: Iasi
Has thanked: 306 times
Been thanked: 321 times
Contact:

22 Nov 2013, 14:47

| Afiseaza codul
[code=php]#include <amxmodx>
#include <amxmisc>
#include <cstrike>


#define PLUGIN "Info Player MSG"
#define VERSION "1.0"
#define AUTHOR "P.Of.Pw/rework DaZ"


#if defined _colorchat_included
#endinput
#endif
#define _colorchat_included

enum Color
{
    NORMAL = 1, // clients scr_concolor cvar color
    GREEN, // Green Color
    TEAM_COLOR, // Red, grey, blue
    GREY, // grey
    RED, // Red
    BLUE, // Blue
}

new const TeamName[][] = 
{
    "",
    "TERRORIST",
    "CT",
    "SPECTATOR"
}  

public plugin_init() 
{
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   register_clcmd ( "say /info" , "info_cmd" , -1 );
   register_clcmd ( "say_team /info" , "info_cmd" , -1 );

   register_clcmd ( "say info" , "info_cmd" , -1 );
   register_clcmd ( "say_team info" , "info_cmd" , -1 );

   
}


public info_cmd ( id ) 
{
   
   new ip[46] , name[36], authid[32], timedate[32]
   
   get_user_ip(id,ip , 45 , 1)
   get_user_name(id, name , 35)
   get_user_authid(id, authid, 31)
   get_time("Data: %d.%m.%Y^nOra: %H:%M:%S", timedate, 31);



   ColorChat(id, GREEN,"[ Player InFo ]^x03 Numele tau %s " , name);
   ColorChat(id, GREEN,"[ Player InFo ]^x03 IP %s" , ip);
   ColorChat(id, GREEN,"[ Player InFo ]^x03 STEAM ID :  %s" , authid);
   ColorChat(id, GREEN,"[ Player InFo ]^x03 Data %s " , timedate);
   
   client_cmd(id,"spk ^"vox/message^"")
   
}

public client_putinserver(id)
{
    set_task(10.0, "infomsg", id)
}

public infomsg(id)
{
    ColorChat(id, GREEN,"[ InFo ] Scrie /info in chat pentru a afla detalii.")
}

public info(id)
{
    client_print(id,print_chat,"%d")
}
ColorChat(id, Color:type, const msg[], any:...)
{
    new message[256];

    switch(type)
    {
        case NORMAL: // clients scr_concolor cvar color
        {
            message[0] = 0x01;
        }
        case GREEN: // Green
        {
            message[0] = 0x04;
        }
        default: // White, Red, Blue
        {
            message[0] = 0x03;
        }
    }

    vformat(message[1], 251, msg, 4);

    // Make sure message is not longer than 192 character. Will crash the server.
    message[192] = '^0';

    new team, ColorChange, index, MSG_Type;
    
    if(id)
    {
        MSG_Type = MSG_ONE_UNRELIABLE;
        index = id;
    } else {
        index = FindPlayer();
        MSG_Type = MSG_BROADCAST;
    }
    
    team = get_user_team(index);
    ColorChange = ColorSelection(index, MSG_Type, type);

    ShowColorMessage(index, MSG_Type, message);
        
    if(ColorChange)
    {
        Team_Info(index, MSG_Type, TeamName[team]);
    }
}

ShowColorMessage(id, type, message[])
{
    static msgSayText;
    if(!msgSayText)
    {
        msgSayText = get_user_msgid("SayText");
    }
    message_begin(type, msgSayText, _, id);
    write_byte(id)        
    write_string(message);
    message_end();    
}

Team_Info(id, type, team[])
{
    static msgTeamInfo;
    if(!msgTeamInfo)
    {
        msgTeamInfo = get_user_msgid("TeamInfo");
    }
    message_begin(type, msgTeamInfo, _, id);
    write_byte(id);
    write_string(team);
    message_end();

    return 1;
}

ColorSelection(index, type, Color:Type)
{
    switch(Type)
    {
        case RED:
        {
            return Team_Info(index, type, TeamName[1]);
        }
        case BLUE:
        {
            return Team_Info(index, type, TeamName[2]);
        }
        case GREY:
        {
            return Team_Info(index, type, TeamName[0]);
        }
    }

    return 0;
}

FindPlayer()
{
    new i = -1;

    while(i <= get_maxplayers())
    {
        if(is_user_connected(++i))
            return i;
    }

    return -1;
}
 
 [/code]

Code: Select all

"Daca ai culoare nu inseamna ca esti mai presus ca un utilizator. Culoare e un fel de "rasplata" pentru ca te implici in "ridicarea" acestei comunitati.
Unii nu realizeaza ca daca ai culoare nu inseamna ca esti smecher." -- by Alexey
:troll :troll

Spui ceva,dar faci altceva !
BoSsCS
Membru, skill +1
Membru, skill +1
Posts: 315
Joined: 30 Jan 2013, 10:06
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: FURIEN.DEVIL.RO
SteamID: blade_cs1
Location: Botosani
Has thanked: 85 times
Been thanked: 4 times
Contact:

22 Nov 2013, 18:51

zimpe wrote:
| Afiseaza codul
[code=php]#include <amxmodx>
#include <amxmisc>
#include <cstrike>


#define PLUGIN "Info Player MSG"
#define VERSION "1.0"
#define AUTHOR "P.Of.Pw/rework DaZ"


#if defined _colorchat_included
#endinput
#endif
#define _colorchat_included

enum Color
{
    NORMAL = 1, // clients scr_concolor cvar color
    GREEN, // Green Color
    TEAM_COLOR, // Red, grey, blue
    GREY, // grey
    RED, // Red
    BLUE, // Blue
}

new const TeamName[][] = 
{
    "",
    "TERRORIST",
    "CT",
    "SPECTATOR"
}  

public plugin_init() 
{
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
   register_clcmd ( "say /info" , "info_cmd" , -1 );
   register_clcmd ( "say_team /info" , "info_cmd" , -1 );

   register_clcmd ( "say info" , "info_cmd" , -1 );
   register_clcmd ( "say_team info" , "info_cmd" , -1 );

   
}


public info_cmd ( id ) 
{
   
   new ip[46] , name[36], authid[32], timedate[32]
   
   get_user_ip(id,ip , 45 , 1)
   get_user_name(id, name , 35)
   get_user_authid(id, authid, 31)
   get_time("Data: %d.%m.%Y^nOra: %H:%M:%S", timedate, 31);



   ColorChat(id, GREEN,"[ Player InFo ]^x03 Numele tau %s " , name);
   ColorChat(id, GREEN,"[ Player InFo ]^x03 IP %s" , ip);
   ColorChat(id, GREEN,"[ Player InFo ]^x03 STEAM ID :  %s" , authid);
   ColorChat(id, GREEN,"[ Player InFo ]^x03 Data %s " , timedate);
   
   client_cmd(id,"spk ^"vox/message^"")
   
}

public client_putinserver(id)
{
    set_task(10.0, "infomsg", id)
}

public infomsg(id)
{
    ColorChat(id, GREEN,"[ InFo ] Scrie /info in chat pentru a afla detalii.")
}

public info(id)
{
    client_print(id,print_chat,"%d")
}
ColorChat(id, Color:type, const msg[], any:...)
{
    new message[256];

    switch(type)
    {
        case NORMAL: // clients scr_concolor cvar color
        {
            message[0] = 0x01;
        }
        case GREEN: // Green
        {
            message[0] = 0x04;
        }
        default: // White, Red, Blue
        {
            message[0] = 0x03;
        }
    }

    vformat(message[1], 251, msg, 4);

    // Make sure message is not longer than 192 character. Will crash the server.
    message[192] = '^0';

    new team, ColorChange, index, MSG_Type;
    
    if(id)
    {
        MSG_Type = MSG_ONE_UNRELIABLE;
        index = id;
    } else {
        index = FindPlayer();
        MSG_Type = MSG_BROADCAST;
    }
    
    team = get_user_team(index);
    ColorChange = ColorSelection(index, MSG_Type, type);

    ShowColorMessage(index, MSG_Type, message);
        
    if(ColorChange)
    {
        Team_Info(index, MSG_Type, TeamName[team]);
    }
}

ShowColorMessage(id, type, message[])
{
    static msgSayText;
    if(!msgSayText)
    {
        msgSayText = get_user_msgid("SayText");
    }
    message_begin(type, msgSayText, _, id);
    write_byte(id)        
    write_string(message);
    message_end();    
}

Team_Info(id, type, team[])
{
    static msgTeamInfo;
    if(!msgTeamInfo)
    {
        msgTeamInfo = get_user_msgid("TeamInfo");
    }
    message_begin(type, msgTeamInfo, _, id);
    write_byte(id);
    write_string(team);
    message_end();

    return 1;
}

ColorSelection(index, type, Color:Type)
{
    switch(Type)
    {
        case RED:
        {
            return Team_Info(index, type, TeamName[1]);
        }
        case BLUE:
        {
            return Team_Info(index, type, TeamName[2]);
        }
        case GREY:
        {
            return Team_Info(index, type, TeamName[0]);
        }
    }

    return 0;
}

FindPlayer()
{
    new i = -1;

    while(i <= get_maxplayers())
    {
        if(is_user_connected(++i))
            return i;
    }

    return -1;
}
 
[/code]
rezolvat. Multumesc!
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests