diff -r f3fc29440299 -r 0be67c5566c6 plugins/include/sourcemod.inc --- a/plugins/include/sourcemod.inc Fri Feb 09 04:38:57 2007 +0000 +++ b/plugins/include/sourcemod.inc Fri Feb 09 04:41:03 2007 +0000 @@ -164,9 +164,9 @@ /** * Returns the client's name. * - * @param client Player index. - * @param name Buffer to store the client's name. - * @param maxlen Maximum length of string buffer (includes NULL terminator). + * @param client Player index. + * @param name Buffer to store the client's name. + * @param maxlen Maximum length of string buffer (includes NULL terminator). * @return True on success, false otherwise. * @error If the client is not connected an error will be thrown. */ @@ -179,8 +179,8 @@ * @param name Buffer to store the client's ip address. * @param maxlen Maximum length of string buffer (includes NULL terminator). * @param remport Remove client's port from the ip string (true by default). - * @return True on success, false otherwise. - * @error If the client is not connected an error will be thrown. + * @return True on success, false otherwise. + * @error If the client is not connected or the index is invalid. */ native bool:GetClientIP(client, String:ip[], maxlen, bool:remport=true); @@ -190,12 +190,22 @@ * @param client Player index. * @param auth Buffer to store the client's auth string. * @param maxlen Maximum length of string buffer (includes NULL terminator). - * @return True on success, false otherwise. - * @error If the client is not connected an error will be thrown. + * @return True on success, false otherwise. + * @error If the client is not connected or the index is invalid. */ native bool:GetClientAuthString(client, String:auth[], maxlen); /** + * Retrieves a client's user id, which is an index incremented for every client + * that joins the server. + * + * @param client Player index. + * @return User id of the client. + * @error If the client is not connected or the index is invalid. + */ +native GetClientUserId(client); + +/** * Returns if a certain player is connected. * * @param client Player index. @@ -346,4 +356,6 @@ * @param ... Format arguments. * @noreturn */ -native LogError(const String:format[], {Handle,Float,String,_}:...); \ No newline at end of file +native LogError(const String:format[], {Handle,Float,String,_}:...); + +#include