engclient_cmd
- Синтаксис
-
native engclient_cmd(index, const command[], const arg1[] = "", const arg2[] = "");
Переменная | Описание |
---|---|
index |
Client index, use 0 to execute from all clients |
command |
Client command to execute on |
arg1 |
Optional command arguments |
arg2 |
Optional command arguments |
- Описание
- Execute a command from the client without actually sending it to the client's DLL.
- Пометка
-
This emulates a client command on the server side, and is an excellent tool to force a client to do certain actions related to the game.
- Пометка
-
The command has to stand alone in the command parameter, only add arguments using the designated parameters.
- Пометка
-
Commands emulated using this function will not trigger plugin command hooks. For an alternative that does, see amxclient_cmd()
- Возвращает
- Функция ничего не возвращает