From: <qu...@ca...> - 2016-02-16 19:37:16
|
GameCommand is a qc function called from the console with a single string parameter: sv_cmd {s} void(string s) GameCommand = { // do something with {s} } An example to run arbitrary qc functions: http://www.moddb.com/groups/qc/forum/thread/darkplaces-gamecommand {s} really needs validated with that code - the given example is easy to crash. |