Results 1 to 10 of 14

Thread: console print

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Nov 2015
    Posts
    128
    Thanks
    37
    Thanked 14 Times in 14 Posts
    Quote Originally Posted by maxdamage99 View Post
    Without libcod, you can try use it:
    it will leak rcon password but already i was trying to find this command
    PHP Code:
     player printOutOfBand("print\nHELLO PLAYER CONSOLE!!!\n"); 
    Quote Originally Posted by Mitch View Post
    Do you mean LogPrint( <string> ) for printing to games_mp.log?
    yeah how can i log for example

    PHP Code:
    32:12 rcon clientkick from 123.123.123.123 
    also how can i stop this log ? it means player changed his weapon?

    PHP Code:
    627:22 Weapon;0;3;dent;thompson_mp 
    Last edited by feanor; 14th November 2017 at 20:18.

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by feanor View Post
    it will leak rcon password but already i was trying to find this command
    PHP Code:
     player printOutOfBand("print\nHELLO PLAYER CONSOLE!!!\n"); 


    yeah how can i log for example

    PHP Code:
    32:12 rcon clientkick from 123.123.123.123 
    I use this for showing rcon status without leaking the rcon password:

    PHP Code:
    self connectionlessPacket("rcon " getcvar("rcon_password") + " status"); 
    Note: apparently disabled and marked for rewrite in the latest commit.

    It shows up in the console log as:
    PHP Code:
    Rcon from [ip]:[port]:

    status 
    then use LogPrint for your games log:
    PHP Code:
    LogPrint("rcon status from " self getIP()); 

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

    feanor (15th November 2017),kung foo man (15th November 2017)

Posting Permissions

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