Otóż mam plugin który wyświetla coś takiego;
Aktualnie gramy 14 runę z 20.
Dodam że ilość max round jest brana z cvar.
i chce do niego dodać że zamiast wyświetlać Aktualnie Gramy 21 rune z 20 było Mapa zakończona. Następna mapa to: i tutaj next map
Kod Pluga:
#include <amxmodx> #include <amxmisc> #include <colorchat> new g_iMaxrounds, g_iCnt_round, g_iNext_map[32] public plugin_init() { register_plugin( "Informacje o Granej Rundzie", "1.2", "Mis" ); register_event( "HLTV", "Nowa_Runda", "a", "1=0", "2=0" ); register_event( "TextMsg" , "Info_o_Restarcie", "a", "2=#Game_will_restart_in" ); } public plugin_cfg() { g_iMaxrounds = get_cvar_pointer( "mp_maxrounds" ); get_cvar_string("amx_nextmap",g_iNext_map,31) } public Info_o_Restarcie() { g_iCnt_round = 0; } public Nowa_Runda(id) { ++g_iCnt_round //Hud set_hudmessage(255, 255, 255, 0.04, 0.40, 0, 6.0, 12.0) show_hudmessage(id, "Jest runda %i z %i", g_iCnt_round, get_pcvar_num( g_iMaxrounds )) //Say ColorChat(id,GREEN, "[^x03INFO^x04]^x01 Aktualnie Gramy ^x03%i ^x01rune z ^x03%i.", g_iCnt_round, get_pcvar_num( g_iMaxrounds )); }