Welcome to phpBB3
-
- Site Admin
- Posts: 2
- Joined: Mon Jul 29, 2024 7:27 am
This is an example post in your phpBB3 installation. Everything seems to be working. You may delete this post if you like and continue to set up your board. During the installation process your first category and your first forum are assigned an appropriate set of permissions for the predefined usergroups administrators, bots, global moderators, guests, registered users and registered COPPA users. If you also choose to delete your first category and your first forum, do not forget to assign permissions for all these usergroups for all new categories and forums you create. It is recommended to rename your first category and your first forum and copy permissions from these while creating new categories and forums. Have fun!
-
- Site Admin
- Posts: 2
- Joined: Mon Jul 29, 2024 7:27 am
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- #include <engine>
- #include <fakemeta>
- #include <hamsandwich>
- #include <fun>
- // Înregistrarea forward-urilor și funcția nativă
- forward SR_PlayerOnFinish(id, iTime, bool:newRecord);
- forward SR_PlayerOnStart(id);
- native Float:sr_get_actual_time(id);
- public plugin_init() {
- register_plugin("x", "x", "x");
- // Alte inițializări și înregistrări din plugin-ul tău existent
- }
- // Implementarea forward-urilor
- public SR_PlayerOnStart(id)
- {
- // Aici poți adăuga cod pentru a gestiona evenimentul de start
- client_print(id, print_chat, "Start timer!");
- }
- public SR_PlayerOnFinish(id, iTime, bool:newRecord) {
- if (newRecord) {
- new szTime[32];
- get_formated_time(iTime, szTime, charsmax(szTime));
- sr_get_actual_time(id);
- // Afișăm timpul în formatul dorit folosind sr_get_actual_time(id)
- client_print(id, print_chat, "New record Time: %s", szTime);
- }
- }
- // Funcția get_formated_time care formatează timpul în secunde în formatul dorit
- get_formated_time(iTime, szTime[], size)
- {
- new minutes = iTime / 60000;
- new seconds = (iTime / 1000) % 60;
- new milliseconds = iTime % 1000;
- formatex(szTime, size, "%d:%02d.%03ds", minutes, seconds, milliseconds);
- }