View Full Version : COD2 Chat Disable
girdap
14th May 2021, 16:13
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.
maxdamage99
17th May 2021, 08:48
libcod:
//server start:
{
setCvar("scr_gchat", "1"); //chat enabled default
}
codecallback_playercommand(args)
{
if (args.size >= 2 && (args[0] == "say" || args[1] == "say_team") && isDefined(args[1]))
{
if (!getCvarInt("scr_gchat"))
return; //chat disabled
}
self clientCommand();
}
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.