How to get stamina value of DOD
Please can you tell me how to get stamina of DoD ?
like dod_get_stamina function .. thanks. :D |
Re: How to get stamina value of DOD
there is probably a server message sent.... maybe I can find it later today when I'm done with work.
|
Re: How to get stamina value of DOD
This code below should work to get the current stamina of the person. I havn't tested it.
Code:
stock dod_get_stamina(id) |
Re: How to get stamina value of DOD
Quote:
|
Re: How to get stamina value of DOD
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..... :-( |
Re: How to get stamina value of DOD
Code:
#include <amxmodx> |
Re: How to get stamina value of DOD
It worked. Thank you very much!
Maybe it should add in the official function :P |
| All times are GMT -4. The time now is 07:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.