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_nextthink, halflife_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