Raised This Month: $ Target: $400
 0% 

time made on ent


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 01-24-2009 , 18:08   time made on ent
Reply With Quote #1

is there a way i can put a time made on an ent, and later on get when that ent was made?
whosyourdaddy is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-24-2009 , 18:17   Re: time made on ent
Reply With Quote #2

Whenever the entity is created,
Code:
set_pev(entity, pev_fuser4, get_gametime());
When you need the value:
Code:
new Float:created; pev(entity, pev_fuser4, created); new Float:alive_time = get_gametime() - created;
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
whosyourdaddy
Senior Member
Join Date: Apr 2008
Old 01-24-2009 , 20:30   Re: time made on ent
Reply With Quote #3

thanks
whosyourdaddy is offline
Reply



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 01:44.


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