Results 1 to 10 of 16

Thread: linux rcon tool

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    Just edit the Messages mod with "sendgameservercommand"

    messages.gsc

    PHP Code:
    main()
    {
        
    msg_amount getCvarInt("cg_smsg_amount");
        
    msg_delay getCvarInt("cg_smsg_delay");
        for(;;)
        {
            for (
    1<= msg_amounti++)
            {
                
    wait msg_delay;
                
    msg getCvar("cg_smsg_" i);
                
    sendgameservercommand(-1"h \"^7console: " msg "\"");
            }

            
    wait 0.15;
        }

    and in server.cfg

    PHP Code:
    set cg_smsg_amount "3"
    set cg_smsg_delay "15"
    set cg_smsg_1 "Announcement 1"
    set cg_smsg_2 "Announcement 2"
    set cg_smsg_3 "Announcement 3" 

  2. The Following User Says Thank You to thOuMta For This Useful Post:

    feanor (28th April 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •