RSSy MYGO.pl Opublikowano Czerwiec 23, 2021 o 06:33 RSSy Udostępnij Opublikowano Czerwiec 23, 2021 o 06:33 Description: A powerful statistic and Ranking System, which uses sqlite database, that allows you setting getting score from almost all l4d2 event. figure 1: Attachment 189963 figure 2: Attachment 189965 figure 3: Attachment 189967 figure 4: Attachment 189968 figure 5: Attachment 189969 figure 6: Attachment 189970 Update Log: Code: v2.1 (23 June 2021)-Initial project Features:Real-time update SRS panel data. Record over 100+ records in the game. Supports showing rank when clients chat or join the game. Supports viewing other player info. Supports game mode score multiply. Supports difficulty score multiply. Supports weapons (gun/melee/throwable) score multiply. Supports headshot (common/special) score multiply. Supports kill (common/special) score multiply. Supports native functions call. etc. How to use?Type !srs in the game to open SRS menu. Type !top10 in the game to open SRS Top10 menu. Type !mvp in the game to open SRS mvp menu. Type !eff in the game to turn on/off combo effect. Type !sound in the game to turn on/off combo sound. When will save data? To avoid making the server lag, I just added two triggers for it.Round end Player disconnected Native functions: PHP Code: /** * Gets the version of rank * @param buffer string buffer * @return current version of rank system in form of a float */ native float SRS_GetVersion(); /** * Get 4 clients of a rounds MVP * * @param buffer1 buffer to store client index * @param buffer2 buffer to store client's score * @return none */ native void SRS_GetMvp(int[] buffer1, float[] buffer2); /** * Get a client's score * * @param client client index * @param srsType SRS Type * @return score of the client */ native int SRS_GetScore (int client, int srsType); /** * Get the server score depends on game settings status * * @param buffer buffer to store the string * @param buffer size of the buffer * @return none */ native void SRS_GetScoreStatus (char[] buffer, int size); /** * Get a client's rank and score * * @param steamId client steamId * @param rank rank pointer * @param score score pointer * @return rank of the client */ native void SRS_GetRankAndScore (const char[] steamId, int& rank, float& score); /** * Get a online client's rank and score * * @param int client index * @param rank rank pointer * @param score score pointer * @return rank of the client */ native void SRS_GetOnlinePlayRankAndScore (const int client, int& rank, float& score); ConVars: PHP Code: // This file was auto-generated by SourceMod (v1.10.0.6494) // ConVars for plugin "l4d2_srs.smx" // How many Combo for each level? // - // Default: "5" srs_combo_level "5" // Combo Level Up effect. // 0=OFF, 1=ON // - // Default: "1" srs_combo_level_effect_on "1" // How many value for each level to multiply the score? // - // Default: "1.05" srs_combo_level_multiply_score "1.05" // How many second for each refreshing the panel data?? // - // Default: "0.1" srs_combo_level_refresh_time "0.1" // Combo Level Up sound. // 0=OFF, 1=ON // - // Default: "1" srs_combo_level_sound_on "1" // 0=off // Combo time // - // Default: "10.0" srs_combo_time "10.0" // How many seconds to decrease for each level? // - // Default: "0.4" srs_combo_time_decrease "0.4" // Minimun combo time after decreasing by combo level // - // Default: "2.5" srs_combo_time_min "2.5" // Add your server commands that open a menu/panel to here so that the panel will not block menu. // Use ',' to split commands. // - // Default: "sm_top,sm_ji,sm_top10,sm_ivoteblock,sm_menu,sm_ivote,sm_ihud,sm_csm,sm_lightmenu,sm_hat,sm_hats,sm_shop,sm_admin,sm_team,sm_teams,sm_buy,sm_market,sm_item,sm_items,sm_usepoint,sm_usepoints,sm_buy_confirm,sm_kill,sm_suicide" srs_command_white_list "sm_top,sm_ji,sm_top10,sm_ivoteblock,sm_menu,sm_ivote,sm_ihud,sm_csm,sm_lightmenu,sm_hat,sm_hats,sm_shop,sm_admin,sm_team,sm_teams,sm_buy,sm_market,sm_item,sm_items,sm_usepoint,sm_usepoints,sm_buy_confirm,sm_kill,sm_suicide" // Add [--] country tag before the name? // 0=Off, 1=On // - // Default: "1" srs_country_tag "1" // How many score multiply/divide in easy difficulty? // 1.0=No Multiply/Divide // - // Default: "0.5" srs_difficulty_easy "0.5" // How many score multiply/divide in hard difficulty? // 1.0=No Multiply/Divide // - // Default: "1.5" srs_difficulty_hard "1.5" // How many score multiply/divide in impossible difficulty? // 1.0=No Multiply/Divide // - // Default: "2.0" srs_difficulty_impossible "2.0" // How many score multiply/divide in normal difficulty? // 1.0=No Multiply/Divide // - // Default: "1.0" srs_difficulty_normal "1.0" // Extra common intected spawn time. // -1=OFF,0=Depends on amount of players (60 - (survivors*3), min=30.0) // - // Default: "45.0" srs_extra_ci_spawn_time "60.0" // How many seconds for frame move once? (Affect all timer) // - // Default: "0.1" srs_frame_move_time "0.1" // How many score multiply/divide in coop gamemod? // 1.0=No Multiply/Divide // - // Default: "1.0" srs_gamemode_coop "1.0" // How many score multiply/divide in realism gamemod? // 1.0=No Multiply/Divide // - // Default: "1.0" srs_gamemode_realism "1.0" // How many score multiply/divide in scavenge gamemod? // 1.0=No Multiply/Divide // - // Default: "1.0" srs_gamemode_scavenge "1.0" // How many score multiply/divide in survival gamemod? // 1.0=No Multiply/Divide // - // Default: "1.0" srs_gamemode_survival "1.0" // How many score multiply/divide in teamscavenge gamemod? // 1.0=No Multiply/Divide // - // Default: "1.0" srs_gamemode_teamscavenge "1.0" // How many score multiply/divide in teamversus gamemod? // 1.0=No Multiply/Divide // - // Default: "1.0" srs_gamemode_teamversus "1.0" // How many score multiply/divide in versus gamemod? // 1.0=No Multiply/Divide // - // Default: "1.0" srs_gamemode_versus "1.0" // Infinite ammo? // 0=OFF, 1=ON but not M60/GL, 2=ON // - // Default: "0" // Minimum: "0.000000" // Maximum: "2.000000" srs_infinite_ammo_on "0" // How many seconds for refreshing game settings once? // - // Default: "5.0" srs_refresh_game_settings_time "5.0" // How many score multiply/divide for killing a ci/si by ak47? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_ak47 "1.2" // How many score multiply/divide for killing a ci/si by auto? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_auto "1.2" // How many score multiply/divide for killing a ci/si by Awp? // 1.0=No Multiply/Divide // - // Default: "2.0" srs_s_k_awp "2.0" // How many score multiply/divide for killing a ci/si by AXE? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_axe "1.88" // How many score for killing a Boomer? (Survivor) by headshot // - // Default: "8.88" srs_s_k_b_hs_score "8.88" // How many score for killing a Boomer? (Survivor) // - // Default: "3.8" srs_s_k_b_score "3.8" // How many score for killing a Changer? (Survivor) by headshot // - // Default: "8.88" srs_s_k_c_hs_score "8.88" // How many score for killing a Changer? (Survivor) // - // Default: "3.8" srs_s_k_c_score "3.8" // How many score multiply/divide for killing a ci/si by chrome? // 1.0=No Multiply/Divide // - // Default: "1.5" srs_s_k_chrome "1.5" // How many score for killing a common infected by headshot? (Survivor) // - // Default: "3.8" srs_s_k_ci_hs_score "3.8" // How many score for killing a common infected? (Survivor) // - // Default: "1.2" srs_s_k_ci_score "1.2" // How many score multiply/divide for killing a ci/si by cricket? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_cricket "1.88" // How many score multiply/divide for killing a ci/si by crowbar? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_crowbar "1.88" // How many score multiply/divide for killing a ci/si by Desert? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_desert "1.2" // How many score multiply/divide for killing a ci/si by Grenade Launcher? // 1.0=No Multiply/Divide // - // Default: "0.5" srs_s_k_gl "0.5" // How many score multiply/divide for killing a ci/si by golf? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_golf "1.88" // How many score multiply/divide for killing a ci/si by guitar? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_guitar "1.88" // How many score for killing a Hunter? (Survivor) by headshot // - // Default: "8.88" srs_s_k_h_hs_score "8.88" // How many score for killing a Hunter? (Survivor) // - // Default: "3.8" srs_s_k_h_score "3.8" // How many score multiply/divide for killing a ci/si by Hunting? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_hunting "1.2" // How many score for killing a Jockey? (Survivor) by headshot // - // Default: "8.88" srs_s_k_j_hs_score "8.88" // How many score for killing a Jockey? (Survivor) // - // Default: "3.8" srs_s_k_j_score "3.8" // How many score multiply/divide for killing a ci/si by katana? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_katana "1.88" // How many score multiply/divide for killing a ci/si by knife? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_knife "1.88" // How many score multiply/divide for killing a ci/si by m16? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_m16 "1.2" // How many score multiply/divide for killing a ci/si by m60? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_m60 "1.2" // How many score multiply/divide for killing a ci/si by machate? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_machate "1.88" // How many score multiply/divide for killing a ci/si by magnum? // 1.0=No Multiply/Divide // - // Default: "2.0" srs_s_k_magnum "2.0" // How many score multiply/divide for killing a ci/si by Military? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_military "1.2" // How many score multiply/divide for killing a ci/si by molotov? // 1.0=No Multiply/Divide // - // Default: "0.1" srs_s_k_molo "0.1" // How many score multiply/divide for killing a ci/si by mp5? // 1.0=No Multiply/Divide // - // Default: "1.5" srs_s_k_mp5 "1.5" // How many score multiply/divide for killing a ci/si by none weapon? // 1.0=No Multiply/Divide // - // Default: "0.1" srs_s_k_none "0.1" // How many score multiply/divide for killing a ci/si by Pan? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_pan "1.88" // How many score multiply/divide for killing a ci/si by pipe bomb? // 1.0=No Multiply/Divide // - // Default: "0.1" srs_s_k_pipe "0.1" // How many score multiply/divide for killing a ci/si by pistol? // 1.0=No Multiply/Divide // - // Default: "3.0" srs_s_k_pistol "3.0" // How many score multiply/divide for killing a ci/si by pitchfork? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_pitchfork "1.88" // How many score multiply/divide for killing a ci/si by pump? // 1.0=No Multiply/Divide // - // Default: "1.5" srs_s_k_pump "1.5" // How many score multiply/divide for killing a ci/si by saw? // 1.0=No Multiply/Divide // - // Default: "1.22" srs_s_k_saw "1.22" // How many score multiply/divide for killing a ci/si by Scout? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_scout "1.2" // How many score multiply/divide for killing a ci/si by Sg552? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_sg552 "1.2" // How many score multiply/divide for killing a ci/si by shovel? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_shovel "1.88" // How many score multiply/divide for killing a ci/si by SMG silenced? // 1.0=No Multiply/Divide // - // Default: "1.5" srs_s_k_silenced "1.5" // How many score for killing a Smoker? (Survivor) by headshot // - // Default: "8.88" srs_s_k_sk_hs_score "8.88" // How many score for killing a Smoker? (Survivor) // - // Default: "3.8" srs_s_k_sk_score "3.8" // How many score multiply/divide for killing a ci/si by smg? // 1.0=No Multiply/Divide // - // Default: "1.5" srs_s_k_smg "1.5" // How many score multiply/divide for killing a ci/si by spas? // 1.0=No Multiply/Divide // - // Default: "1.2" srs_s_k_spas "1.2" // How many score for killing a Spitter? (Survivor) by headshot // - // Default: "8.88" srs_s_k_st_hs_score "8.88" // How many score for killing a Spitter? (Survivor) // - // Default: "3.8" srs_s_k_st_score "3.8" // How many score for killing a Tank? (Survivor) by headshot // - // Default: "8.88" srs_s_k_t_hs_score "8.88" // How many score for killing a Tank? (Survivor) // - // Default: "33.8" srs_s_k_t_score "33.8" // How many score multiply/divide for killing a ci/si by tonfa? // 1.0=No Multiply/Divide // - // Default: "1.88" srs_s_k_tonfa "1.88" // How many score for killing a Witch? (Survivor) by headshot // - // Default: "8.88" srs_s_k_w_hs_score "8.88" // How many score for killing a Witch in one shot? (Survivor) // - // Default: "100.0" srs_s_k_w_os_score "100.0" // How many score for killing a Witch? (Survivor) // - // Default: "10.0" srs_s_k_w_score "10.0" // Join sound? // 0=Off, 1=On // - // Default: "1" srs_sound_join "1" Pre-Installation: [ANY] Hattrick's GeoIP Resolver 2 May. 2021 +Plug-ins (4) 100% Fixed [ANY] HexTags [Tags/Chat Colors & Score Tags][05/08/2020] Recommend: To have the best performance, I suggest you installing scripted hud to display the score anytime (figure 2) [L4D2] Scripted HUD [v1.0.2 | 01-May-2021] Installation: Just unzip it to the sourcemod directory. Translations: Only en, zho, chi Notice: This is my last plugin so it will be the first and last version. No any update that will be made and released by me in the future. Contact me: Steam My other plugins:[L4D2] Statistic and Ranking System (SRS) [v2.1 | 23 June 2021] [L4D2] Shop [v2.7 | 23 May 2021] [L4D2] Menu [v1.2 | 23 May 2021] [L4D2] Random / Next Map [v1.1 | 8 May 2021] [L4D2] IVote (Kick, Ban, Slay) [v1.1 | 9 June 2021] Attached Images srs_p1.jpg (89.7 KB) srs_p3.jpg (69.4 KB) 1.jpg (85.2 KB) 2.jpg (96.8 KB) 3.jpg (74.4 KB) 4.jpg (57.6 KB) Attached Files l4d2_srs.zip (430.9 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi