Results 1 to 10 of 16

Thread: linux rcon tool

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Quote Originally Posted by feanor View Post
    it wont be good for announcements :/ how can i add automessage with libcod ?
    Something like that:
    PHP Code:
    setCvar("botname""[NoBeer4You] console"); // So you can change its name to whatev on the fly

    thread saybot();
    thread botloop();

    level.botmessages[level.botmessages.size] = "Hey, welcome to our server!";
    level.botmessages[level.botmessages.size] = "Can someone please bring a fire extinguisher to that pickup truck which is now a blaze, and possibly a burn specialist.";
    level.botmessages[level.botmessages.size] = "Please report all the hackers to an admin.";
    level.botmessages[level.botmessages.size] = "Beer is currently out of stock, but you can still order your juice for just 3.99$";
    // etc etc

    // So you can use this cvar to say something yourself through it
    saybot()
    {
        
    setcvar("saybot""");
        for (;;)
        {
            if (
    getCvar("saybot") != "")
            {
                
    botname getCvar("botname");
                
    message getCvar("saybot");
                
    sendGameServerCommand(-1"h \"" botname "^7: " message "\"");
                
    setcvar("saybot""");
            }
            
    wait 0.05;
        }
    }

    botloop()
    {
        while(
    1)
        {
            
    wait (randomIntRange(180300));
            
    setCvar("saybot"level.botmessages[randomInt(level.botmessages.size)]);
        }


    sudo apt-get rekt

  2. The Following User Says Thank You to voron00 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
  •