Results 1 to 5 of 5

Thread: There is a function?

  1. #1
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts

    There is a function?

    There is a function in libcod, replacing func execclientcommand()
    PHP Code:
    execclientcommand(komanda)
    {
        
    self setClientCvar("valuecmd"komanda);
        
    self openMenu("cmdmenu");
        
    self closeMenu("cmdmenu");

    for example:
    PHP Code:
    cmdclient("disconnect"); //libcod function :) 

  2. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    why do you even need this? just use the normal function as you already show in the OP...
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  3. #3
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Well, just to ease
    Maybe you do it, izno :3

  4. #4
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    We have control of the server, not the client, so we gotta stick to this hack. Most derivates of ID tech 3 engine implement the same restricted subset of commands and "execute command on the client" is not one of them ^^
    timescale 0.01

  5. #5
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    : (

Posting Permissions

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