Raised This Month: $12 Target: $400
 3% 

[CS:GO] Simple Menu to Display Info UPDATE[26/04/2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FreezerPT
Senior Member
Join Date: Mar 2017
Location: 127.0.0.1
Plugin ID:
7052
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Build a Menu, that when player type the command, show a "info" menu
    Old 04-19-2020 , 17:09   [CS:GO] Simple Menu to Display Info UPDATE[26/04/2020]
    Reply With Quote #1

    Hello, I have a server and I was looking for an easy-to-edit plugin that would show the information we wanted! But I didn't find it so I made one! It serves to simplify, for example, the sending of messages to the server such as the advertisements of commands existing on the server, so it is easier to write for example !commands and it shows everything we say in a list!

    When a player joins the server, the plugin advertises the player with a message.

    The plugin generates automatically a cfg, when you can disable the message.

    You can edit the info and add more options to menu to display more info:

    Just add more "AddMenuItem(menu, "", "Info you want to display");

    Code:
    SetMenuTitle(menu, "Comands Menu");  
    	   AddMenuItem(menu, "", "Reset Score - Type !rs");				
    	   AddMenuItem(menu, "", "Music Menu - Type !res");  
    	   AddMenuItem(menu, "", "Call Admin - Type !callAdmin");
    	   AddMenuItem(menu, "", "WRITE WHAT YOU WANT");
               AddMenuItem(menu, "", "COPY THIS THIS LINE AND EDIT THIS TEXT");
    You can edit the console command to:

    Just change the word "commands" to whatever you want

    Code:
    RegConsoleCmd("sm_commands", Command_Main);
    You can activate or desactivate the advertisement to command when user enter on server

    Code:
    g_ClientSettings	       = CreateConVar("menu_show_message", "1", "Enable/Disable message");
    You need to download the plugin and edit it! If you want to compile it and you dont have a compiler you can acess here: https://spider.limetech.io/
    Attached Files
    File Type: zip simple_menu.zip (6.7 KB, 631 views)
    __________________

    Last edited by FreezerPT; 04-26-2020 at 10:36. Reason: Added a advertisement message
    FreezerPT is offline
    mbhound
    New Member
    Join Date: Sep 2019
    Old 04-19-2020 , 20:52   Re: [CS:GO] Simple Menu to Display Info
    Reply With Quote #2

    Why not just do this with a config and have a command to add/remove items?
    mbhound is offline
    FreezerPT
    Senior Member
    Join Date: Mar 2017
    Location: 127.0.0.1
    Old 04-20-2020 , 03:11   Re: [CS:GO] Simple Menu to Display Info
    Reply With Quote #3

    Quote:
    Originally Posted by mbhound View Post
    Why not just do this with a config and have a command to add/remove items?
    Because this is a simple menu its easier to just add on the plugin! Also the menu will just display info not will do nothing with the options
    __________________

    Last edited by FreezerPT; 04-20-2020 at 12:15.
    FreezerPT is offline
    AlinXD
    Senior Member
    Join Date: Feb 2016
    Old 04-20-2020 , 06:46   Re: [CS:GO] Simple Menu to Display Info
    Reply With Quote #4

    Can you make it so the plugin advertises itself in the chat?
    __________________
    AlinXD is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 04-20-2020 , 10:24   Re: [CS:GO] Simple Menu to Display Info
    Reply With Quote #5

    If it is a simple menu, why tie it to a game?

    Code-wise you're not using anything game specific.
    __________________
    luki1412 is offline
    FreezerPT
    Senior Member
    Join Date: Mar 2017
    Location: 127.0.0.1
    Old 04-20-2020 , 12:12   Re: [CS:GO] Simple Menu to Display Info
    Reply With Quote #6

    Quote:
    Originally Posted by luki1412 View Post
    If it is a simple menu, why tie it to a game?

    Code-wise you're not using anything game specific.
    My bad, I am new to this, and I make it to use on CSGO, I will put to all games! Thanks for the advice
    __________________
    FreezerPT is offline
    biielzk
    Junior Member
    Join Date: Jun 2017
    Old 04-22-2020 , 19:33   Re: [CS:GO] Simple Menu to Display Info
    Reply With Quote #7

    Nice plugin friend!

    Last edited by biielzk; 04-22-2020 at 19:33.
    biielzk is offline
    FreezerPT
    Senior Member
    Join Date: Mar 2017
    Location: 127.0.0.1
    Old 04-25-2020 , 06:38   Re: [CS:GO] Simple Menu to Display Info
    Reply With Quote #8

    Quote:
    Originally Posted by biielzk View Post
    Nice plugin friend!
    Thanks
    __________________
    FreezerPT is offline
    FreezerPT
    Senior Member
    Join Date: Mar 2017
    Location: 127.0.0.1
    Old 04-26-2020 , 10:33   Re: [CS:GO] Simple Menu to Display Info
    Reply With Quote #9

    Quote:
    Originally Posted by AlinXD View Post
    Can you make it so the plugin advertises itself in the chat?
    Done bro.
    __________________
    FreezerPT is offline
    emvaized
    Junior Member
    Join Date: Aug 2021
    Old 08-19-2021 , 04:00   Re: [CS:GO] Simple Menu to Display Info UPDATE[26/04/2020]
    Reply With Quote #10

    Just sharing a hint, with these modifications selecting an entry will run the corresponding command afterwards:

    Quote:
    AddMenuItem(menu, "say !rs", "Reset score - !rs");
    AddMenuItem(menu, "say !res", "Round end music - !res");
    ...
    Quote:
    public int SelectRank(Menu menu, MenuAction action, int client, int item)
    {

    if (action == MenuAction_End)
    {
    CloseHandle(menu);
    return;
    }

    if (action != MenuAction_Select) {
    return;
    }

    decl String:cmd[50];
    if (!GetMenuItem(menu, item, cmd, 50)) return;

    CloseHandle(menu);
    FakeClientCommand(client, cmd);
    }
    Maybe would be useful for someone
    emvaized is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:41.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode