Quote Originally Posted by Ni3ls View Post
It is in the playercommand callback?
Code:
		case "help":
			self.id=self getEntityNumber();
			self setClientCvar ("clientcmd", "say !help");
   			self openMenu ("clientcmd");
   			self closeMenu ("clientcmd");
			wait 1;
			message = "Available commands: !ratio";
	 		self thread tellMessage(message);
			return;

        } 
    } 
     
     
    self ClientCommand(); 
}

If you execute a cmd_executestring inside codecallback_playercommand but before self clientcommand(), the stuff you send to cmd_executestring will actually be executed by the client on clientcommand() because thats a shared buffer.

Example inside codecallback_clientcmd:
Code:
 Cmd_ExecuteString("say hello");
 self clientcmd();
The result will be:

Console: hello (globally)
yournamehere: hello (also globally)