Quote:
Originally Posted by JocAnis
@shauli, thanks for help, but Kushfield helped me and its fixed now...so it went from:
if( containi( targetName, cp_ents[i] ))
to just
if(cp_ents[i-1] == ent)
|
That's fine but it's not really necessary, iuser/fuser/vuser exists exactly for the stuff you're trying to do, it will be easier to use it. You don't need a for loop, it will be like this:
PHP Code:
public touched1( ent, id )
{
new cp = pev(ent, pev_iuser1);
if( !run_run[cp] ) //or cp+1, you decide
{
run_run[cp]=true
Time_igrac = get_gametime() - cp_time[id][i]
client_print( id, print_chat, "You touched: %i; time: %.02f (FILE: %.02f)", cp, Time_igrac, official_time[1][cp_count+1] )
}
}