View Single Post
shauli
Member
Join Date: Jun 2018
Old 06-22-2018 , 10:16   Re: Touch positions problem
Reply With Quote #10

Quote:
Originally Posted by JocAnis View Post
@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 touched1entid 

    new 
cp pev(entpev_iuser1);

     if( !
run_run[cp] ) //or cp+1, you decide 
     

          
run_run[cp]=true 
          Time_igrac 
get_gametime() - cp_time[id][i
                 
          
client_printidprint_chat"You touched: %i; time: %.02f (FILE: %.02f)"cpTime_igracofficial_time[1][cp_count+1] ) 

     } 

shauli is offline