Code:
#include <amxmodx>
#include <amxmisc>
enum Stats // Test for me :)
{
K, // Kills
A, // Assists
D, // Deaths
HS, // Headshots
ST, // Shots
HT, // Hits
DM, // Damage
RP, // Rounds Played
RL, // Rounds Lose
RW, // Rounds Win
mapName[32]
};
new g_iStats[33][Stats]; // UserID, Map Name (?), Stats type
new g_mapName[32];
public plugin_init()
{
get_mapname(g_mapName, charsmax(g_mapName));
}
public client_putinserver(id)
{
copy(g_iStats[id][mapName], charsmax(g_iStats[]), g_mapName);
}
public client_death(iKiller,iVictim,iWP,iPlace,iTK)
{
if (equal(g_iStats[iKiller][mapName], g_mapName))
{
g_iStats[iKiller][K]++;
}
}