Raised This Month: $ Target: $400
 0% 

How to get stamina value of DOD


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 07-02-2006 , 00:29   Re: How to get stamina value of DOD
Reply With Quote #6

Code:
#include <amxmodx>
#include <fakemeta>

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()
{
	new players[32], nums
	get_players(players, nums, "a")

	new id
	for(new i = 0; i < nums; i++)
	{
		id = players[i]
		client_print(id, print_center, "stamina: %d", dod_get_stamina(id))
	}
}
Your not passing a id with the set task. So it will be passing 0 which dod_get_stamina is getting.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
 



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