Raised This Month: $ Target: $400
 0% 

How properly count/use cycles of ent think


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 10-24-2014 , 13:33   How properly count/use cycles of ent think
Reply With Quote #1

This is my maybe third try to use entity think
it works
I just want to know how to count each think and do something in it in correct way

PHP Code:

new wtf

public ctfthink(ent)
{
  if(!
is_valid_ent(ent)) return      
  
set_pev(ent,pev_nextthinkhalflife_time() + 5.0)
   
wtf++    
   if(
wtf 5
   {
     
// do something on 5th think
    
}

is there another way to do so?
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 10-24-2014 at 13:33.
avril-lavigne is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode