Raised This Month: $66 Target: $400
 16% 

Starting Health


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   GHW_Chronic (70)
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 04-26-2008 , 01:59   Starting Health
Reply With Quote #1

Starting Health


Description:
My next simple plugin. Allow to change player spawning health. Remember, HL hud can show maximum 255HP. AMXMODX 1.8.0+ required (hamsandwich module).

Tested only in Counter Strike, but should work on other mods.

CVAR's
amx_starthp - amount of starting HP. Set 100 to disable plugin, default: 200.

Modules
hamsandwich
fakemeta

Changelog:
1.0 - First Relase
Attached Files
File Type: sma Get Plugin or Get Source (start_hp.sma - 4000 views - 723 Bytes)

Last edited by Sn!ff3r; 04-26-2008 at 07:42.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
dxteam
Senior Member
Join Date: Dec 2005
Old 04-26-2008 , 05:31   Re: Starting Health
Reply With Quote #2

make sql version too
dxteam is offline
Send a message via ICQ to dxteam
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 04-26-2008 , 06:39   Re: Starting Health
Reply With Quote #3

You should also make so when hp cvar is 0 they will receive 100hp
PHP Code:
if(is_user_alive(id) && hp != 100 || hp != 0
And you could make it team specific, hp for ct and t.
__________________
atomen is offline
Send a message via MSN to atomen
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 04-26-2008 , 07:38   Re: Starting Health
Reply With Quote #4

Quote:
hp != 0)
Hmm? When player have 0 hp is NOT alive.

Small changes.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 04-26-2008 , 08:01   Re: Starting Health
Reply With Quote #5

Quote:
Hmm? When player have 0 hp is NOT alive.
You are not checking how much hp the player has...
__________________
atomen is offline
Send a message via MSN to atomen
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-26-2008 , 08:25   Re: Starting Health
Reply With Quote #6

Quote:
Originally Posted by atomen View Post
You should also make so when hp cvar is 0 they will receive 100hp
PHP Code:
if(is_user_alive(id) && hp != 100 || hp != 0
And you could make it team specific, hp for ct and t.
0 or 100 wouldn't make any differences, so only check if hp != 0 is enough.
__________________
- tired and retired -
ConnorMcLeod is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 04-26-2008 , 08:29   Re: Starting Health
Reply With Quote #7

0 = user not alive = !is_user_alive ?
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 04-26-2008 , 10:57   Re: Starting Health
Reply With Quote #8

Quote:
Originally Posted by Sn!ff3r View Post
0 = user not alive = !is_user_alive ?
It's a cvar not the users hp...
__________________
atomen is offline
Send a message via MSN to atomen
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 04-27-2008 , 15:53   Re: Starting Health
Reply With Quote #9

Doesn't the "player" class exclude bots? I could be wrong.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 04-27-2008 , 16:10   Re: Starting Health
Reply With Quote #10

Quote:
Originally Posted by soccdoodcss View Post
Doesn't the "player" class exclude bots? I could be wrong.
I believe so.
BOYSplayCS is offline
Reply


Thread Tools
Display Modes

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 23:17.


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