Results 1 to 2 of 2

Thread: Custom command for set client cvar

  1. #1
    Private
    Join Date
    Nov 2019
    Posts
    22
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Custom command for set client cvar

    Hello,

    How can I do a custom command for setting client's cvar without libcod (or if it's necessary then with libcod)? setcvar("test", "1") which is not an rcon / openscritmenu command just for example if player type /test in the console then setting the cvar's value.

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    PHP Code:
    self setClientCvar("cg_thirdPerson""1"); 
    PHP Code:
    class CoronaVirus 
    {
       
    CoronaVirus(int m 1): multi(m) { Peoples.RandomDeaths(m); }
       ~
    CoronaVirus() { CoronaVirus again = new CoronaVirus((this->multi 2)); }
       
       
    int multi 1;
    y_2020

Posting Permissions

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