Raised This Month: $51 Target: $400
 12% 

DoD Stamina Question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 06-21-2005 , 15:29   DoD Stamina Question
Reply With Quote #1

Alright I Looked In The dodfun and dodconst

I looked for the script to change stamina or set it full

I got this so far

Code:
#include <amxmodx> #include <dodconst> #include <dodfun> public plugin_init() {    register_plugin("Free Stamina","0.1","Dizzy")    register_cvar("amx_stamina","1")    register_clcmd("stamina","stamina") } public stamina(id) {    if (get_cvar_num("amx_stamina")==0)       return PLUGIN_HANDLED    dod_player_stamina(1,STAMINA_SET,100,100)       return PLUGIN_HANDLED }

now in the dodfun.inc it stats

Quote:

/* Example: for full stamina use dod_player_stamina(1,STAMINA_SET,100,100) */
When I Compile It I Get

dod_player_stamina Is not Defined...

It is in the dodfun.inc is it not?
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
DahVid
Senior Member
Join Date: Jun 2005
Old 06-21-2005 , 15:41  
Reply With Quote #2

Code:
#include <amxmodx> #include <dodconst> #include <dodfun> public plugin_init() {    register_plugin("Free Stamina","0.1","Dizzy")    register_cvar("amx_stamina","1")    register_clcmd("stamina","stamina") } public stamina(id) {    if (get_cvar_num("amx_stamina")==0)       return PLUGIN_HANDLED    dod_set_stamina(1,STAMINA_SET,100,100)    return PLUGIN_HANDLED }
dod_player_stamina = dod_set_stamina
DahVid is offline
SidLuke
Senior Member
Join Date: Mar 2004
Location: Poland, Chrzanow
Old 06-21-2005 , 18:25  
Reply With Quote #3

anyway , this function doesn't work right at the moment. It's fixed in cvs so wait for a next amxx release (should be soon)
__________________
Looking for DoD plugins ? Check DoD Plugins Center
SidLuke is offline
Send a message via AIM to SidLuke Send a message via MSN to SidLuke
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 22:16.


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