no point in making 2 functions...
Code:
public jail_timer(id)
{
new num, players[32], temp_id
get_players(players,num,"ac")
for( new i = 0; i < num; i++ )
{
temp_id = players[i]
if (preso[temp_id] == 0) continue
else if (preso[temp_id] == 1)
{
if ( timer_seconds[temp_id] < 60) timer_seconds[temp_id] += 1
else if (timer_seconds[temp_id] >= 60)
{
timer_seconds[temp_id] = 0
timer_minutes[temp_id] += 1
}
}
}
return PLUGIN_CONTINUE
}