RSSy MYGO.pl Opublikowano Październik 27, 2023 o 15:13 RSSy Udostępnij Opublikowano Październik 27, 2023 o 15:13 Descriptionsimple plugin provide native and forwards of real player fisrt time connected, and really disconnect. original method and logic from [TF2] Empty Server Map Restarter. dose not support late load. Native and Forwards Spoiler PHP Code: /** * @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 * * @return true on success, false on failure. * * @error called too early, the data has not been initialized yet. */ native void ConnectedCounter_GetConnected(int& count, int userids[MAXPLAYERS]); Change log Spoiler Code: 1.1 (2023-10-27: init public release. Attached Files connected_counter.inc (1.6 KB) Get Plugin or Get Source (connected_counter.sp - 3.1 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi