Results 1 to 3 of 3

Thread: say message with console

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    1. The solution is simple if you got libcod extension. You can execute console command by Cmd_ExecuteString. You can find manual in Mitch's script wiki. (https://znation.nl/cod4script/)
    2. If you can't install (eg .you are not allowed by hoster) you need to login some random player into rcon then logoff him immediately (eg. execClientCommand("rcon login "+getCvar("rcon_password")+";rcon say "+msg+";rcon logout") )- but this solution is dangerous.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. The Following 2 Users Say Thank You to RobsoN For This Useful Post:

    Mitch (26th March 2014),Ni3ls (26th March 2014)

Posting Permissions

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