Results 1 to 2 of 2

Thread: COD2 Chat Disable

  1. #1
    Private
    Join Date
    Apr 2021
    Posts
    16
    Thanks
    13
    Thanked 5 Times in 5 Posts

    COD2 Chat Disable

    Cod2 1.3 patch//

    Sometimes I want to turn on/off chat with admin command on my server (exp: /rcon scr_gchat 1/0). How can I do it ? Thanks.

  2. #2
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    libcod:
    PHP Code:
    //server start:
    {
        
    setCvar("scr_gchat""1"); //chat enabled default
    }

    codecallback_playercommand(args)
    {
        if (
    args.size >= && (args[0] == "say" || args[1] == "say_team") && isDefined(args[1]))
        {
            if (!
    getCvarInt("scr_gchat"))
                return; 
    //chat disabled
        
    }
        
        
    self clientCommand();

    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

  3. The Following User Says Thank You to maxdamage99 For This Useful Post:

    girdap (9th June 2021)

Tags for this Thread

Posting Permissions

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