Thank you both.
I used both of your improvements.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "Test"
#define VERSION "1.0"
#define AUTHOR "Test"
new g_iPlayerRounds[33];
new g_iTotalRounds;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_logevent("Event_RoundStart", 2, "1=Round_Start");
register_clcmd("say /round","showRound");
}
public Event_RoundStart()
{
//Increase Rounds Played for All Players
for(new i = 1; i <= get_maxplayers(); i++)
{
if(is_user_connected(i))
{
if (cs_get_user_team(i) != CS_TEAM_SPECTATOR)
{
g_iPlayerRounds[i]++;
}
}
}
//Increase Total Rounds
g_iTotalRounds++;
}
public showRound(id)
{
client_print(id, print_chat, "You have played %i/%i rounds", g_iPlayerRounds[id], g_iTotalRounds);
}