From amxmodx.inc:
PHP Code:
/* Returns player playing time in seconds.
* If flag is set then result is without connection time. */
native get_user_time(index, flag = 0);
Example:
PHP Code:
public client_disconnect(id)
{
new gTime = get_user_time(id);
/* If you set the second parameter to 1, you will get user's connection time + it's played time on the server. If you set it to 0, you will get user's only played time on the server. */
}
This command won't help you to detect user's played time only in teams (CT, T), it will count all user's time spent on server (from connect or putinserver) irrespective of his team.