1.1 --- a/plugins/include/sourcemod.inc Fri Feb 09 04:38:57 2007 +0000
1.2 +++ b/plugins/include/sourcemod.inc Fri Feb 09 04:41:03 2007 +0000
1.3 @@ -164,9 +164,9 @@
1.4 /**
1.5 * Returns the client's name.
1.6 *
1.7 - * @param client Player index.
1.8 - * @param name Buffer to store the client's name.
1.9 - * @param maxlen Maximum length of string buffer (includes NULL terminator).
1.10 + * @param client Player index.
1.11 + * @param name Buffer to store the client's name.
1.12 + * @param maxlen Maximum length of string buffer (includes NULL terminator).
1.13 * @return True on success, false otherwise.
1.14 * @error If the client is not connected an error will be thrown.
1.15 */
1.16 @@ -179,8 +179,8 @@
1.17 * @param name Buffer to store the client's ip address.
1.18 * @param maxlen Maximum length of string buffer (includes NULL terminator).
1.19 * @param remport Remove client's port from the ip string (true by default).
1.20 - * @return True on success, false otherwise.
1.21 - * @error If the client is not connected an error will be thrown.
1.22 + * @return True on success, false otherwise.
1.23 + * @error If the client is not connected or the index is invalid.
1.24 */
1.25 native bool:GetClientIP(client, String:ip[], maxlen, bool:remport=true);
1.26
1.27 @@ -190,12 +190,22 @@
1.28 * @param client Player index.
1.29 * @param auth Buffer to store the client's auth string.
1.30 * @param maxlen Maximum length of string buffer (includes NULL terminator).
1.31 - * @return True on success, false otherwise.
1.32 - * @error If the client is not connected an error will be thrown.
1.33 + * @return True on success, false otherwise.
1.34 + * @error If the client is not connected or the index is invalid.
1.35 */
1.36 native bool:GetClientAuthString(client, String:auth[], maxlen);
1.37
1.38 /**
1.39 + * Retrieves a client's user id, which is an index incremented for every client
1.40 + * that joins the server.
1.41 + *
1.42 + * @param client Player index.
1.43 + * @return User id of the client.
1.44 + * @error If the client is not connected or the index is invalid.
1.45 + */
1.46 +native GetClientUserId(client);
1.47 +
1.48 +/**
1.49 * Returns if a certain player is connected.
1.50 *
1.51 * @param client Player index.
1.52 @@ -346,4 +356,6 @@
1.53 * @param ... Format arguments.
1.54 * @noreturn
1.55 */
1.56 -native LogError(const String:format[], {Handle,Float,String,_}:...);
1.57 \ No newline at end of file
1.58 +native LogError(const String:format[], {Handle,Float,String,_}:...);
1.59 +
1.60 +#include <helpers>