#include <amxmodx>
#include <csx>
#include <colorchat>
new gcvarForum;
new CT = 0
new TT = 0
public plugin_init()
{
register_plugin("Nowy","0.1","Portek")
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
register_event("TextMsg", "fwRestart", "a", "2Game_will_restart_in")
set_task(180.0, "info",0,"",0,"b")
gcvarForum=register_cvar("amx_forum", "adres forum")
}
public ct_win()
{
CT++
}
public t_win()
{
TT++
}
public fwRestart(){
TT = 0;
CT = 0;
}
public info(id){
new forum[32];
get_pcvar_string(gcvarForum,forum, 31);
new mapa[32];
get_mapname(mapa,31);
new player = get_playersnum()
new max = get_maxplayers()
ColorChat(id,GREEN, "[%s] Runda: ^x04%s - Mapa: ^x01%s | Gracze: ^x01%s^x04/^x01%s",forum,CT+TT,mapa,player,max);
} Mam tutaj z jakiegoś tematu ten plugin. Nie chce mi się w ogole przekomplikować nawet na kompilatorze na kompie. Wyskakuje błąd 3 linii colorchat. Ściągnąłem gotowego przerobionego od Portka i działa ale zamiast graczy ile na ile pokazuje nazwę mapy np Runda: 9 - Mapa: de_dust2 | Gracze: 1 de_dust2 / de_dust2. Oraz chciałbym aby nazwa mapy jaka jest obecnie grana ilu jest graczy oraz która jest runda były wyświetlane w kolorze drużyny czerwony/niebieski. Podejmie się ktoś? Pozdrawiam.


Dodatki SourceMod



Temat jest zamknięty









