server.cfg
mp_maxrounds 50
mp_timelimit 0
Aztán plugin (régi) :
#include <amxmodx>
#define PLUGIN "Plugin"
#define VERSION "1.0"
#define AUTHOR "mforce"
#define PREFIX "ProKillers"
#define WEBOLDAL "www.komenymagleves.hu"
new g_roundCount;
new g_maxplayers;
public plugin_init(){
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("RoundTime", "roundcount", "bc")
register_event("TextMsg","reset_counter","a","2&#Game_C","2&#Game_w")
g_maxplayers = get_maxplayers();
return PLUGIN_CONTINUE
}
public roundcount()
if ( read_data(1) == floatround(get_cvar_float("mp_roundtime") * 60.0) ) {
++g_roundCount
new mp_maxrounds = get_cvar_pointer("mp_maxrounds")
new maxrounds = get_pcvar_num(mp_maxrounds);
new p_playernum;
p_playernum = get_playersnum(1);
ChatColor("^4[%s]^1 Kör:^3 %i^1/^3%i ^1Játékosok:^3 %i^1/^3%i ^1Weboldalunk:^4 %s", PREFIX, g_roundCount, maxrounds, p_playernum, g_maxplayers, WEBOLDAL)
}
public reset_counter() {
g_roundCount = 0
}
stock ChatColor(const szMessage[], any:...)
{
static pnum, players[32], szMsg[190], IdMsg;
vformat(szMsg, charsmax(szMsg), szMessage, 2);
if(!IdMsg) IdMsg = get_user_msgid("SayText");
get_players(players, pnum, "ch");
for(new i; i < pnum; i++)
{
message_begin(MSG_ONE, IdMsg, .player = players[i]);
write_byte(players[i]);
write_string(szMsg);
message_end();
}
}