So I've recently come back to doing some Sourcemod coding and I'm trying to change the GameInfo/Description for my Half-life 2: Deathmatch server. Based on the API, the code below should work, however, it doesn't. Is there some kind of restriction to the game I'm targeting? Always something I've wondered so help/suggestions would be appreciated, thanks!
PHP Code:
public Action:OnGetGameDescription(String:gameDesc[64])
{
Format(gameDesc, sizeof(gameDesc), GameInfo);
PrintToServer("[ECON] Game Description set");
return Plugin_Handled;
}