Raised This Month: $ Target: $400
 0% 

How to get stamina value of DOD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 06-29-2006 , 13:26   Re: How to get stamina value of DOD
Reply With Quote #1

This code below should work to get the current stamina of the person. I havn't tested it.

Code:
stock dod_get_stamina(id)
{
	new Float:Stamina
	pev(id, pev_fuser4, Stamina)
	
	return floatround(Stamina)
}
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
fishman8
Junior Member
Join Date: Jul 2005
Old 07-01-2006 , 14:08   Re: How to get stamina value of DOD
Reply With Quote #2

Quote:
Originally Posted by teame06
This code below should work to get the current stamina of the person. I havn't tested it.

Code:
stock dod_get_stamina(id)
{
	new Float:Stamina
	pev(id, pev_fuser4, Stamina)
	
	return floatround(Stamina)
}
Thank you! I will try. ^_^
fishman8 is offline
fishman8
Junior Member
Join Date: Jul 2005
Old 07-01-2006 , 23:37   Re: How to get stamina value of DOD
Reply With Quote #3

stock dod_get_stamina(id)
{
new Float:Stamina
pev(id, pev_fuser4, Stamina)

return floatround(Stamina)
}

public plugin_init()
{
set_task(1.0, "stamina_value",_,_,_,"b")
}
public stamina_value(id)
{
new i = dod_get_stamina(id)
client_print(id,print_center,"stamina:%d",i)
}


It always show "stamina:0", maybe it doesn't work..... :-(
fishman8 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 07:57.


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