like this ?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Get Roundtime"
#define VERSION "1.0"
#define AUTHOR "Starsailor"
#define TASKID 1337
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("Event_roundend", 2, "1=Round_End")
register_event("HLTV","Event_newround","a","1=0","2=0")
register_event("TextMsg", "Event_roundend", "a", "2&#Game_C", "2&#Game_w")
}
public Event_newround()
set_task(get_cvar_float("mp_freezetime"),"StartCount",TASKID)
new Time
public StartCount(task){
Time++
set_task(0.9,"StartCount",TASKID)
}
public Event_roundend(){
if(task_exists(TASKID))
remove_task(TASKID)
client_print(0,print_chat,"The round has lasted: %d",Time)
Time = 0
}
The result is the time that players has played in each round
__________________