/**
* @brief Called when a new human client connected
*
* @param userid userid of the client
* @param count count of connected human userids, include the "userid" param
* @param userids array of connected human userids, include the "userid" param
*
* @noreturn
*/
forward void ConnectedCounter_OnConnected(int userid, int count, const int userids[MAXPLAYERS]);
/**
* @brief Called when a human client is disconnecting
*
* @param userid userid of the client
* @param count count of connected human userids, exclude the "userid" param
* @param userids array of connected human userids, exclude the "userid" param
*
* @noreturn
*/
forward void ConnectedCounter_OnDisconnect(int userid, int count, const int userids[MAXPLAYERS]);
/**
* @brief Get the connected human userids count and array
*
* @param count buffer to store connected human userids count
* @param userids buffer to store connected human userids array
*
* @noreturn
*
*/
native void ConnectedCounter_GetConnected(int& count, int userids[MAXPLAYERS]);
Change log
Spoiler
Code:
1.2 (2024-03-22:
-remove unnecessary data init status check.
-update .inc file.
1.1 (2023-10-27:
init public release.