plugins/include/console.inc
changeset 480 6cb437edefa6
parent 476 4cbe911aa211
child 498 b404e8154de4
     1.1 --- a/plugins/include/console.inc	Mon Feb 12 19:41:50 2007 +0000
     1.2 +++ b/plugins/include/console.inc	Mon Feb 12 19:45:23 2007 +0000
     1.3 @@ -52,6 +52,27 @@
     1.4  #define FCVAR_NETWORKSYSTEM		(1<<26)	/**< Defined by the network system. */
     1.5  #define FCVAR_VPHYSICS			(1<<27)	/**< Defined by vphysics. */
     1.6  
     1.7 +
     1.8 +/**
     1.9 + * Sends a message to the server console.
    1.10 + *
    1.11 + * @param format		Formatting rules.
    1.12 + * @param ...			Variable number of format parameters.
    1.13 + * @noreturn
    1.14 + */
    1.15 +native PrintToServer(const String:format[], {Handle,Float,String,_}:...);
    1.16 +
    1.17 +/**
    1.18 + * Sends a message to a client's console.
    1.19 + *
    1.20 + * @param client		Player index.
    1.21 + * @param format		Formatting rules.
    1.22 + * @param ...			Variable number of format parameters.
    1.23 + * @noreturn
    1.24 + * @error			If the client is not connected an error will be thrown.
    1.25 + */
    1.26 +native PrintToConsole(client, const String:format[], {Handle,Float,String,_}:...);
    1.27 +
    1.28  /**
    1.29   * Creates a new console variable.
    1.30   *