...sort of. Quick pseudo-code:
Code:
cvarTimeScale=FindConVar("host_timescale");
//Create a command here like sm_timescale so players/admins can set host_timescale to what they want
//In your callback for the command you created...
char timescale[4];
GetCmdArg(1, timescale, sizeof(timescale));
SetConVarFloat(cvarTimeScale, StringToInt(timescale)); //You might want to make sure timescale isn't 0 here
You may need to set each client's cheat value when you do that-I'm not too sure. If so...
Code:
stock void UpdateClientCheatValue(int client, int value)
{
if(client>0 && client<=MaxClients && IsClientInGame(client) && IsPlayerAlive(client) && !IsFakeClient(client))
{
char cheatValue[2];
IntToString(value, cheatValue, sizeof(cheatValue));
SendConVarValue(client, cvarCheats, cheatValue);
}
}
Something like that *should* work.
EDIT: This uses new-style syntax so you'll need a 1.7 compiler to compile this.
__________________