Raised This Month: $32 Target: $400
 8% 

[ANY] Basic Commands Configurable


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Naathy
Member
Join Date: Mar 2022
Location: Brazil
Plugin ID:
8130
Plugin Version:
1.1
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Basic and configurable commands to display infos about the server.
    Old 07-20-2022 , 04:44   [ANY] Basic Commands Configurable
    Reply With Quote #1

    If you want a better plugin with same and more options, check this

    Description
    Basicly, this plugin will help some server owners to add links he want and adds a welcome message. It is very very very simple, i did it for newer peoples on server configuration/sourcemod.


    Commands
    All basics the servers need: !group, !discord, !website, !ip and !owner. I've made some variables like !site, !serverip, !steamgroup, !steam, etc.


    ConVars/Info
    • sm_basiccmds_welcome 1/0 - Enable/Disable welcome message (0 = Disable, 1 = Enable)
    • sm_basiccmds_group 1/0 - Enable/Disable !group commands (0 = Disable, 1 = Enable)
    • sm_basiccmds_ip 1/0 - Enable/Disable !ip commands (0 = Disable, 1 = Enable)
    • sm_basiccmds_owner 1/0 - Enable/Disable !owner commands (0 = Disable, 1 = Enable)
    • sm_basiccmds_discord 1/0 - Enable/Disable !discord commands (0 = Disable, 1 = Enable)
    • sm_basiccmds_site 1/0 - Enable/Disable !site commands (0 = Disable, 1 = Enable)
    You can put the links you want in translations folder, change colors and messages.
    The plugin will generate a cfg file with the cvars.


    Plugin purpose
    Below here is just explaining about why i decided to do this, you dont need read if you dont want.

    I know this is very basic, but when i started to configure my server, I didn't even know how to do these commands/plugins. I searched, but i not find anything about. Some days ago, a friend who im helping setup his server was asked me about this. He said he cant find anywhere, so i decided to make this plugin.
    Maybe it's so easy to do that people don't even think about it?

    Whatever, i hope i can help someone.
    Feel free to request anything.

    You can see it on GitHub

    Changelogs:
    Spoiler
    Attached Files
    File Type: zip Basic_commands.zip (29.4 KB, 79 views)
    File Type: sp Get Plugin or Get Source (Basic_commands.sp - 63 views - 2.7 KB)
    __________________
    Owner of NGServers

    Contact
    Discord | Steam | Github

    Last edited by Naathy; 01-09-2023 at 04:01.
    Naathy is offline
    L4D2Noob
    AlliedModders Donor
    Join Date: Mar 2020
    Location: Moscow
    Old 07-21-2022 , 13:05   Re: [ANY] Basic Commands Configurable
    Reply With Quote #2

    Quote:
    Originally Posted by Naathy View Post
    I searched, but i not find anything about.
    Come on? So it was a bad search.

    PHP Code:
    #include <sourcemod>
    #include <sdktools>

    #pragma semicolon 1
    #pragma newdecls required

    ConVar hm_link_site;
    ConVar hm_link_grup;
    ConVar hm_link_easteregg;
    ConVar hm_link_adminka;

    public 
    Plugin myinfo =
    {
        
    name "Спам информация",
        
    author "dr lex",
        
    description "Сообщение в чате (типа рекламы)",
        
    version "0.1",
        
    url "https://steamcommunity.com/id/dr_lex"
    };

    public 
    void OnPluginStart()
    {
        
    hm_link_site CreateConVar("hm_link_site""https://l4d2noob.ru/"""FCVAR_NONE|FCVAR_NOTIFY);
        
    hm_link_grup CreateConVar("hm_link_grup""https://steamcommunity.com/groups/l4d2noobru"""FCVAR_NONE|FCVAR_NOTIFY);
        
    hm_link_easteregg CreateConVar("hm_link_easteregg""Торта нет"""FCVAR_NONE|FCVAR_NOTIFY);
        
    hm_link_adminka CreateConVar("hm_link_adminka""На форуме бесплатно!"""FCVAR_NONE|FCVAR_NOTIFY);
    }

    public 
    void OnMapStart()
    {
        
    CreateTimer(60.0HxTimer_TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
    }

    public 
    Action HxTimer(Handle timer)
    {
        
    char link_site[96];
        
    hm_link_site.GetString(link_sitesizeof(link_site));
        
        
    char link_grup[96];
        
    hm_link_grup.GetString(link_grupsizeof(link_grup));
        
        
    char link_easteregg[96];
        
    hm_link_easteregg.GetString(link_eastereggsizeof(link_easteregg));
        
        
    char link_adminka[96];
        
    hm_link_adminka.GetString(link_adminkasizeof(link_adminka));
        
        switch (
    GetRandomInt(14))
        {
            case 
    1PrintToChatAll("» \x04[ОТСЫЛКА]: \x04 \x05%s"link_site);
            case 
    2PrintToChatAll("» \x04Форум для админов и кодеров:\x04 \x05%s"link_easteregg);
            case 
    3PrintToChatAll("» \x04Группа в Steam:\x04 \x05%s"link_grup);
            case 
    4PrintToChatAll("» \x04[\x03СТАТЬ АДМИНОМ\x04]\x03: \x04 \x05%s"link_adminka);
        }

    __________________
    L4D2Noob is offline
    Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
    Naathy
    Member
    Join Date: Mar 2022
    Location: Brazil
    Old 07-21-2022 , 13:43   Re: [ANY] Basic Commands Configurable
    Reply With Quote #3

    Quote:
    Originally Posted by L4D2Noob View Post
    Come on? So it was a bad search.

    Spoiler


    I guarantee not. I cant find nothing like this anywhere, even with multiples terms. Btw, my have extra functions with commands and is easily customizable for new peoples.
    I pretend to add some more useful stuffs too. ^^
    __________________
    Owner of NGServers

    Contact
    Discord | Steam | Github

    Last edited by Naathy; 07-21-2022 at 13:51.
    Naathy is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 07-21-2022 , 13:44   Re: [ANY] Basic Commands Configurable
    Reply With Quote #4

    Quote:
    Originally Posted by L4D2Noob View Post
    Come on? So it was a bad search.
    Spoiler
    What you posted has no commands registered at all which is what Naathy is offering.

    Last edited by Sreaper; 07-21-2022 at 13:45.
    Sreaper is offline
    orochii
    New Member
    Join Date: Jul 2022
    Old 07-23-2022 , 18:54   Re: [ANY] Basic Commands Configurable
    Reply With Quote #5

    It was very good, used on all servers, useful to help players, displaying extremely important information, on top of everything, super easy to edit
    orochii is offline
    Naathy
    Member
    Join Date: Mar 2022
    Location: Brazil
    Old 07-23-2022 , 19:22   Re: [ANY] Basic Commands Configurable
    Reply With Quote #6

    Quote:
    Originally Posted by orochii View Post
    It was very good, used on all servers, useful to help players, displaying extremely important information, on top of everything, super easy to edit
    Thank youu
    __________________
    Owner of NGServers

    Contact
    Discord | Steam | Github
    Naathy is offline
    Reply



    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 12:54.


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