What to add to this code, so it will check if user team is CT? and if it isnt it wont work.
Code:
public timer_task() {
for(new i=1;i<=get_maxplayers();i++) {
if(is_user_connected(i) && is_user_alive(i) && showtimer[i-1] && timer_started[i-1]) {
new kreedztime = get_systime() - timer_time[i-1], imin
if((kreedztime / 60.0) >= 1) {
imin = floatround(kreedztime / 60.0,floatround_floor)
kreedztime -= (floatround(kreedztime / 60.0,floatround_floor) * 60)
}
set_hudmessage(255, 255, 255, -1.0, 0.05, 0, 0.0, 1.1, 0.0, 0.0, 1);
show_hudmessage(i, " %d min%s %d sec%s | %i CP ", imin,imin == 1 ? "" : "s",kreedztime,kreedztime == 1 ? "" : "s", checkpointnum[i-1]);
}
}
}
__________________