PDA

View Full Version : Get/Set current stamina (fakemeta)


diamond-optic
07-09-2006, 09:07 PM
well unlike the dodfun "dod_set_stamina" which only lets you set a clients min & max stamina.. this allows you to get what the stamina is currently at & lets you set it to a new number as well..

this uses fakemeta btw...

Get Stamina:

new Float:stamina
pev(id, pev_fuser4, stamina)
Set Stamina:

new Float:stamina = 50.0 //value between 0-100
set_pev(id, pev_fuser4, stamina)

Wilson [29th ID]
07-10-2006, 12:08 AM
What does the "pev" mean? What does it stand for so I can do some more research on it?

diamond-optic
07-10-2006, 12:13 AM
um i dont really know... its just the way fakemeta is.. look thru the fakemeta includes, you'll see them all over

Wilson [29th ID]
07-13-2006, 06:58 AM
I've found out. Thanks very much.

kimball
07-22-2006, 02:56 AM
Wilson you making your own plugins ?

Zor
07-23-2006, 07:52 AM
Must fix the stamina thingy...hehehe...

Cheers!

PS I dont know if that works....we will have too see...

Cheers!