Raised This Month: $ Target: $400
 0% 

is_hostage_alive(ent)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-11-2009 , 05:15   Re: is_hostage_alive(ent)
Reply With Quote #1

Quote:
Originally Posted by Empowers View Post
Note: I'm checking that in somethink like fw_preHostageRespawn
Which hook is it exactly ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-11-2009 , 07:31   Re: is_hostage_alive(ent)
Reply With Quote #2

pev_health returns a float.

Code:
new Float:health;
pev(ent, pev_health, health);
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-11-2009 , 14:20   Re: is_hostage_alive(ent)
Reply With Quote #3

Quote:
Originally Posted by Emp` View Post
pev_health returns a float.

Code:
new Float:health;
pev(ent, pev_health, health);
Adding on to what arkshine said, it doesn't matter if the number is not needed to be a decimal.
For values such as pev_gravity where it can be 0.0 < x < 1.0 then it is necessary to byref the value.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 04-11-2009 , 14:56   Re: is_hostage_alive(ent)
Reply With Quote #4

Quote:
Originally Posted by arkshine View Post
pev_health can be retrieved as integer. Since health is an integer, it doesn't matter. But it needs to be saved as float.
Quote:
Originally Posted by Exolent[jNr] View Post
Adding on to what arkshine said, it doesn't matter if the number is not needed to be a decimal.
For values such as pev_gravity where it can be 0.0 < x < 1.0 then it is necessary to byref the value.
Guess I'm just use to converting from engine to fakemeta.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-11-2009 , 07:38   Re: is_hostage_alive(ent)
Reply With Quote #5

pev_health can be retrieved as integer. Since health is an integer, it doesn't matter. But it needs to be saved as float.

Last edited by Arkshine; 04-11-2009 at 07:40.
Arkshine 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 02:19.


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