Tu masz wersję poprawioną.
#include <amxmodx>
#include <colorchat>
#define PLUGIN "xXPLUGINXx"
#define VERSION "1.0"
#define AUTHOR "Pan Marian"
new tt, ct, maxPlayers, msg[7][]={{},{},{},{},
{"***** Mamy remis!^x01 %d : %d"},
{"***** Prowadza Terrorysci^x01 wynikiem %d : %d"},
{"***** Prowadza Antyterrorysci^x01 wynikiem %d : %d"}
};
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("RoundEnd", 2, "1=Round_End");
register_logevent("GRA", 2, "1=Game_Commencing");
register_event("SendAudio", "event_roundend_T", "a", "2&%!MRAD_terwin");
register_event("SendAudio", "event_roundend_CT", "a", "2&%!MRAD_ctwin");
}
public plugin_cfg(){
maxPlayers=get_maxplayers();
}
public event_roundend_T(id){
++tt;
}
public event_roundend_CT(){
++ct;
}
public GRA(id){
tt=ct=0;
}
public RoundEnd(){
new Color:color=GREY;
new team[2];
if(ct>tt){
team[0]=ct;
team[1]=tt;
color=BLUE;
} else {
team[0]=tt;
team[1]=ct;
if(tt>ct){
color=RED;
}
}
for(new i=1; i<=maxPlayers; ++i){
if(is_user_connected(i)){
ColorChat(i, color, msg[_:color], team[0], team[1]);
}
}
}