plugins/include/console.inc
changeset 1338 1ba17552b7b1
parent 1330 ab94316bb52b
child 1399 0375333cbc07
     1.1 --- a/plugins/include/console.inc	Wed Aug 15 17:22:21 2007 +0000
     1.2 +++ b/plugins/include/console.inc	Wed Aug 15 18:26:15 2007 +0000
     1.3 @@ -150,6 +150,12 @@
     1.4  /**
     1.5   * Executes a client command on the server without being networked.
     1.6   *
     1.7 + * FakeClientCommand() overwrites the command tokenization buffer.  This can 
     1.8 + * cause undesired effects because future calls to GetCmdArg* will return 
     1.9 + * data from the FakeClientCommand(), not the parent command.  If you are in 
    1.10 + * a hook where this matters (for example, a "say" hook), you should use 
    1.11 + * FakeClientCommandEx() instead.
    1.12 + *
    1.13   * @param client		Index of the client.
    1.14   * @param fmt			Format of the client command.
    1.15   * @param ...			Format parameters
    1.16 @@ -159,6 +165,19 @@
    1.17  native FakeClientCommand(client, const String:fmt[], any:...);
    1.18  
    1.19  /**
    1.20 + * Executes a client command on the server without being networked.  The 
    1.21 + * execution of the client command is delayed by one frame to prevent any 
    1.22 + * re-entrancy issues that might surface with FakeClientCommand().
    1.23 + *
    1.24 + * @param client		Index of the client.
    1.25 + * @param fmt			Format of the client command.
    1.26 + * @param ...			Format parameters
    1.27 + * @noreturn
    1.28 + * @error				Invalid client index, or client not connected.
    1.29 + */
    1.30 +native FakeClientCommandEx(client, const String:fmt[], any:...);
    1.31 +
    1.32 +/**
    1.33   * Sends a message to the server console.
    1.34   *
    1.35   * @param format		Formatting rules.