+ Reply to Thread
Results 1 to 9 of 9

Thread: Menu Player

  1. Menu Player

    #1

    Menu Player

    Hello can you make with menu when you write /scan or /clean to open menu with players name ?
    PHP Code:
    #include <amxmodx>
    #include <amxmisc>
    #include <cstrike>
    #include <fun>

    #define PLUGIN "Wargods"
    #define VERSION "1.1.3"
    #define AUTHOR "Dann"

    #define TAG "WarGods"

    #define MOTD_LOCATION "addons/amxmodx/configs/wargod.html"

    new const REASON_BAN[] = "Deshtoj Verifikimi WG";

    new 
    bool:hascan[33], cvars[3]
    new 
    store_team

    public plugin_init()
    {
        
    register_plugin(PLUGINVERSIONAUTHOR)

        
    register_clcmd("say""cmd_say")
        
    register_clcmd("say_team""cmd_say")

        
    cvars[0] = register_cvar("wcd_disconnect_ban""1")
        
    cvars[1] = register_cvar("wcd_minim_acces_flag""d"// kick acces
        
    cvars[2] = register_cvar("wcd_time_for_ban""2")

        
    register_dictionary("wargods.txt")
    }

    public 
    client_connect(id)
    {
        
    hascan[id] = false
    }

    public 
    client_disconnect(id)
    {
        if(
    hascan[id] && get_pcvar_num(cvars[0]) == 1)
        {
            new 
    sName[32];
            
    get_user_name(idsNamecharsmax(sName));
        
            
    hascan[id] = false
            client_cmd
    (0"spk ^"vox/bizwarn eliminated")
            server_cmd("
    amx_ban %%%s", get_pcvar_num(cvars[2]), sName, REASON_BAN)
        }
    }


    public cmd_say(id)
    {
        new szSaid[192]
        read_args(szSaid, charsmax(szSaid))
        remove_quotes(szSaid)

        if(contain(szSaid, "
    /skano") != -1)
        {
            if(get_user_flags(id) & get_pcvar_flags(cvars[1]))
            {
                new target[32]
                copy(target, sizeof(target) -1, szSaid[6])
                new player = cmd_target(id, target, 2)

                if(player)
                {
                    new pname[32], admin[32]
                    get_user_name(player, pname, charsmax(pname))
                    get_user_name(id, admin, charsmax(admin))

                    if(hascan[player])
                    {
                        ColorChat(id, "
    %L", LANG_SERVER, "ALREADY_HAVE", TAG)
                        return PLUGIN_HANDLED
                    }
                    else
                    {
                        new timer[64]
                        get_time("
    %d/%m/%- %H:%M:%S", timer, charsmax(timer))
                        hascan[player] = true
                        store_team = get_user_team(player)
                        user_silentkill(player)
                        cs_set_user_team(player, CS_TEAM_SPECTATOR)

                        ColorChat(0, "
    %L", LANG_SERVER, "MAKE_WCD", TAG, admin, pname, timer)
                        ColorChat(0, "
    %L", LANG_SERVER, "DOWNLOAD_LINK", TAG)
                        ColorChat(0, "
    %L", LANG_SERVER, "INFO_WCD", TAG)
                        client_cmd(id, "
    snapshot")
                        return PLUGIN_CONTINUE
                    }
                }
                else
                {
                    ColorChat(id, "
    %L", LANG_SERVER, "INVALID_PLAYER", TAG)
                    return PLUGIN_HANDLED
                }
            }
        }
        else if(contain(szSaid, "
    /paster") != -1)
        {
            if(get_user_flags(id) & get_pcvar_flags(cvars[1]))
            {
                new target[32]
                copy(target, charsmax(target), szSaid[7])
                new player = cmd_target(id, target, 2)

                if(player)
                {
                    new pname[32]
                    get_user_name(player, pname, charsmax(pname))
                    cs_set_user_team(player, store_team)
                    hascan[player] = false

                    ColorChat(0, "
    %L", LANG_SERVER, "PLAYER_CLEAN", TAG, pname)
                    return PLUGIN_CONTINUE
                }
                else
                {
                    ColorChat(id, "
    %L", LANG_SERVER, "INVALID_PLAYER", TAG)
                    return PLUGIN_HANDLED
                }
            }
        }
        else if(equal(szSaid, "
    /wg") || equal(szSaid, "/wargod"))
        {
            show_motd(id, MOTD_LOCATION)
        }

        return PLUGIN_CONTINUE
    }

    stock ColorChat(const id, const input[], any:...)
    {
        new Count = 1, Players[32];
        static Msg[191];
        vformat(Msg, 190, input, 3);

        replace_all(Msg, 190, "
    !g", "^4");
        replace_all(Msg, 190, "
    !y", "^1");
        replace_all(Msg, 190, "
    !t", "^3");

        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("
    SayText"), _, Players[i]);
                    write_byte(Players[i]);
                    write_string(Msg);
                    message_end();
                }
            }
        }
        return PLUGIN_HANDLED


  2. Menu Player

    #2
    Administrator Tiger's Avatar
    Member since
    Sep 2010
    Location
    127.0.0.1
    Posts
    9,596
    Blog Entries
    3
    Mentioned
    172 Post(s)
    Achievements Mentions Received 3 Mentions Given 2 Mentions Received 2 Mentions Received 1 Mentions Given 1 Threads Rating Received 2 Threads Rating Received 1 Visitor Messages Received 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    AMXX 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!


    It's been a while since I coded in amxx, I took the menu code from 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! . Didn't tested it but it should work, you just need to implement what you want to do with the selected player as you didn't told me what you wanted.
    ====== MY RULES =====
    • Do not bother me with private messages (including Steam or Facebook) related to WarGods Cheat Defender unless I have specifically asked you to do so. If you have an issue or question, please use the search function first. Only post on the forum if you cannot find anything useful.
    • Always provide the necessary information. Read the request model carefully before posting. Do not write lengthy stories in your post as I don't have time to read them. Just include the required information.
    • Keep in mind this is a free service. I have limited free time and other important priorities. Do not bother me if I haven't replied to your topic within an hour. Only remind me about your topic/PM if I haven't responded within a week. I try to resolve all issues once or twice a week or whenever I am free.
    *************************


  3. Menu Player

    #3
    VIP ~TraNda~'s Avatar
    Member since
    Feb 2014
    Location
    WarGods
    Posts
    12,112
    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

    Hi!
    Try this, please. I can't test
    Pawn 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!
    -------------

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

    P A C E

    DISCORD: unknown.cfg


  4. Menu Player

    #4
    Hello, one question, this conversation talks about the integration of an anticheat wargods type plugin incorporated into an sv? I'm very interested in something like this for my server, is there any way to integrate wargods inside?

  5. Menu Player

    #5
    VIP ~TraNda~'s Avatar
    Member since
    Feb 2014
    Location
    WarGods
    Posts
    12,112
    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

    Hello. This plugin does not integrate an anti-cheats on the server.
    -------------

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

    P A C E

    DISCORD: unknown.cfg


  6. Menu Player

    #6
    hello again tradna, it's me again, xD I'm already much more informed about what the plugin does, however I have several problems with it, could you help me?, the code that you just passed does not meet the required functions at least in my sv , and as far as I know the sv has everything so it shouldn't be the problem, you'll see I need the plugin, in addition to presenting the menu, to ban the player if he disconnects after being selected, and after 10 minutes it asks me if I decide to ban him or not, and when he puts no, I also cancel the ban when leaving, and one more option to give the player more time, there was already one that I saw out there that fulfilled most of the required functions but that one never canceled the ban when log off

    --------------- Added after 19 minutes ---------------

    or, and I also had problems to recreate the html file referred to by the "lang server" code, I found a format there but it didn't work for me, how can I integrate it well? This is what I found:
    [en]
    ALREADY_HAVE = !g[%s]!y : You already requested a scan for this player !
    MAKE_WCD = !g[%s]!y : Admin !g[%s]!y requests an WCD scan for player !g[%s]!y. Date/Time : !g%s
    DOWNLOAD_LINK = !g[%s]!y : Download link !gwww.wargods.ro/wcd/download.php
    INFO_WCD = !g[%s]!y : If you don't know how to do an WCD scan, type in chat !g/wcd!y or !g/infowcd!y !
    PLAYER_CLEAN = !g[%s]!y : The player !g[%s]!y is clean after WCD scan !
    INVALID_PLAYER =!g[%s]!y : The specified player is inexistent !
    Last edited by yaxkkon; 30-03-2023 at 10:29 PM.

  7. Menu Player

    #7
    VIP ~TraNda~'s Avatar
    Member since
    Feb 2014
    Location
    WarGods
    Posts
    12,112
    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

    Hello,
    Read this: 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!
    -------------

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

    P A C E

    DISCORD: unknown.cfg


  8. Menu Player

    #8
    Or has my comment been deleted? Was it because I put my steam id? How am I supposed to contact you then? It must have been because I left my steam id, it said that I can't add friends, and according to what I read you said to add you if they wanted to get the updated version, if you could add me since I can't add you because my account is limited I would appreciate it. , will this help?: 1158137998 is the friend code.

  9. Menu Player

    #9
    Administrator Tiger's Avatar
    Member since
    Sep 2010
    Location
    127.0.0.1
    Posts
    9,596
    Blog Entries
    3
    Mentioned
    172 Post(s)
    Achievements Mentions Received 3 Mentions Given 2 Mentions Received 2 Mentions Received 1 Mentions Given 1 Threads Rating Received 2 Threads Rating Received 1 Visitor Messages Received 1
    Doneaza
    Sustine Comunitatea WarGods!
    Fii unul de-al nostru! Doneaza
    Doneaza in Cont Bancar
    Click aici pentru a face o Donatie

    @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! : Nobody deleted your topic, your topic can be found 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! . Topic was closed because you didn't reply to it for more than one month.

    I added you on Steam.
    ====== MY RULES =====
    • Do not bother me with private messages (including Steam or Facebook) related to WarGods Cheat Defender unless I have specifically asked you to do so. If you have an issue or question, please use the search function first. Only post on the forum if you cannot find anything useful.
    • Always provide the necessary information. Read the request model carefully before posting. Do not write lengthy stories in your post as I don't have time to read them. Just include the required information.
    • Keep in mind this is a free service. I have limited free time and other important priorities. Do not bother me if I haven't replied to your topic within an hour. Only remind me about your topic/PM if I haven't responded within a week. I try to resolve all issues once or twice a week or whenever I am free.
    *************************


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