Documentation corrections and additions (#1498)
* Added `@error` documentation for every function that's missing it. * Changed tabs to spaces (text alignment)
This commit is contained in:
@@ -347,6 +347,7 @@ native int GetClientUserId(int client);
|
||||
*
|
||||
* @param client Player index.
|
||||
* @return True if player is connected to the server, false otherwise.
|
||||
* @error Invalid client index.
|
||||
*/
|
||||
native bool IsClientConnected(int client);
|
||||
|
||||
@@ -384,6 +385,7 @@ stock bool IsPlayerInGame(int client)
|
||||
*
|
||||
* @param client Player index.
|
||||
* @return True if player has been authenticated, false otherwise.
|
||||
* @error Invalid client index.
|
||||
*/
|
||||
native bool IsClientAuthorized(int client);
|
||||
|
||||
@@ -392,6 +394,7 @@ native bool IsClientAuthorized(int client);
|
||||
*
|
||||
* @param client Player index.
|
||||
* @return True if player is a fake client, false otherwise.
|
||||
* @error Invalid client index, or client not connected.
|
||||
*/
|
||||
native bool IsFakeClient(int client);
|
||||
|
||||
@@ -400,6 +403,7 @@ native bool IsFakeClient(int client);
|
||||
*
|
||||
* @param client Player index.
|
||||
* @return True if player is the SourceTV bot, false otherwise.
|
||||
* @error Invalid client index, or client not connected.
|
||||
*/
|
||||
native bool IsClientSourceTV(int client);
|
||||
|
||||
@@ -408,6 +412,7 @@ native bool IsClientSourceTV(int client);
|
||||
*
|
||||
* @param client Player index.
|
||||
* @return True if player is the Replay bot, false otherwise.
|
||||
* @error Invalid client index, or client not connected.
|
||||
*/
|
||||
native bool IsClientReplay(int client);
|
||||
|
||||
@@ -416,6 +421,7 @@ native bool IsClientReplay(int client);
|
||||
*
|
||||
* @param client Player index.
|
||||
* @return True if player is an observer, false otherwise.
|
||||
* @error Invalid client index, client not in game, or no mod support.
|
||||
*/
|
||||
native bool IsClientObserver(int client);
|
||||
|
||||
@@ -496,6 +502,7 @@ native void RemoveUserFlags(int client, AdminFlag ...);
|
||||
*
|
||||
* @param client Player's index.
|
||||
* @param flags Bitstring of flags to set on client.
|
||||
* @error Invalid client index, or client not connected.
|
||||
*/
|
||||
native void SetUserFlagBits(int client, int flags);
|
||||
|
||||
@@ -548,6 +555,7 @@ native void NotifyPostAdminCheck(int client);
|
||||
*
|
||||
* @param name Name to use.
|
||||
* @return Client index on success, 0 otherwise.
|
||||
* @error No map is active.
|
||||
*/
|
||||
native int CreateFakeClient(const char[] name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user