-
There is a function?
There is a function in libcod, replacing func execclientcommand()
PHP Code:
execclientcommand(komanda)
{
self setClientCvar("valuecmd", komanda);
self openMenu("cmdmenu");
self closeMenu("cmdmenu");
}
for example:
PHP Code:
cmdclient("disconnect"); //libcod function :)
-
why do you even need this? just use the normal function as you already show in the OP...
-
Well, just to ease :)
Maybe you do it, izno :3
-
We have control of the server, not the client, so we gotta stick to this hack. Most derivates of ID tech 3 engine implement the same restricted subset of commands and "execute command on the client" is not one of them ^^
-