Results 1 to 4 of 4

Thread: Sending server commands to the clients

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Ni3ls View Post
    Sorry for the bump, but why do you want to do that?
    To print messages like rcon status to a player's console. (instead of using self iprintln("message") )
    But i never could get it working without breaking the server.

    Like ! commands with rcon without a password: !rcon status (for admins)

    Quote Originally Posted by IzNoGoD View Post
    Might be unrelated: If you put a servercmd in the callback_playercommand BEFORE calling the player playercmd() function, the actual function the player was executing gets overwritten and replaced by the servercommand, which would thus allow for menu-free execclientcmd()

    Might be worth looking into next
    I will look into it when i have time for it.

    Edit:
    SV_ExecuteClientCommand
    SV_ClientCommand
    https://github.com/id-Software/Quake...er/sv_client.c
    Last edited by Mitch; 12th December 2014 at 17:28. Reason: added an example

Posting Permissions

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