PDA

View Full Version : Unlimited Stamina


MrShadow
10-08-2007, 04:21 PM
!Unlimited Stamina!

Alright this is basically not my plugin. I came up with the idea and tried to code it but was unsuccessful (since i have no coding knowledge or experience in amxx coding... or any other coding for that matter...except html and asp...but that doesn't count, ANYWAY), so Hell Pheonix told me what was wrong with it, and did up this code, so most of the credit should go to him. THANKS HELL PHEONIX!

ok so the commands:

dod_stamina 1 -gives everybody unlimited stamina after they respawn, you can add this to your amxx.cfg to give unlimited stamina to everyone when the map starts.

dod_stamina 0 -takes away their unlimited stamina after they die.


Credits:

Hell Pheonix
Mr.Shadow (I probably shouldn't even be putting myself in here)

I hope you enjoy this plugin. It's my first released, well technically it's Hell Pheonix's first release through me :P

diamond-optic
10-08-2007, 05:06 PM
nothing major at all.. but instead of doing:
dod_set_stamina(id,STAMINA_SET,0,100)
you can do:
dod_set_stamina(id,STAMINA_RESET)

but either way its the same thing so it doesnt really matter at all and not really worth uploading again or anything for such a minor thing at all

:)

MOSdod
04-05-2010, 07:16 PM
I did exactly what you have mentioned but still, Some players will Loose unlimited stamina and some have it. But if I restart the map Everyone has unlimited stamina but not for long.
I would appreciate any help in fixing this so that ALL Players ALL the time will have Unlimted Stamina.

Thank you in advance


This is what I have in the .sma file

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
g_stamina = register_cvar("dod_stamina","0")
register_event("ResetHUD","give_stamina","be")
register_clcmd("fullupdate", "clcmd_fullupdate")
}

public give_stamina(id){
if(get_pcvar_num(g_stamina) && !g_set[id]){
dod_set_stamina(id,STAMINA_SET,100,100)
g_set[id] = 1
}else if (!get_pcvar_num(g_stamina) && g_set[id]){
dod_set_stamina(id,STAMINA_RESET)
g_set[id] = 0
}
return PLUGIN_HANDLED
}

public clcmd_fullupdate() {
return PLUGIN_HANDLED
}

Tank
04-05-2010, 07:34 PM
http://www.dodplugins.net/forums/showpost.php?p=14292&postcount=16

readddd

MOSdod
04-05-2010, 09:01 PM
Thanks Tank..Worked Perfectly... Just curious why it was removed? I saved it to my favorites for future backup. I hope it won't be gone by then.

Thanks alot again thank you thank you

Tank
04-06-2010, 01:14 PM
I posted it there and it was never removed. So it should remain there. May I ask what you changed so perhaps I can alter the plugin for public use?

MOSdod
04-06-2010, 03:43 PM
I followed your steps in that link you provided me
http://www.dodplugins.net/forums/showpost.php?p=14292&postcount=16

and it worked perfectly.

Ba5ic
01-10-2011, 01:32 PM
Can you post the revised version?