Raised This Month: $ Target: $400
 0% 

Health Display


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Technical/Development       
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 09-18-2008 , 14:17   Health Display
Reply With Quote #1

HEALTH DISPLAY
Code By DruGzOG

Credits:
xPaw- Helped Me Edit The Code to Perfection

Health Display:
The Point of this Code is to display your health if it is above 250 because that is the limit it can show. Great for Zombie Mod

Cvars:
do_health 1 - Default


Changelog

1.2- Removed get_user_team 1 to get_user_team
Attached Files
File Type: sma Get Plugin or Get Source (health.sma - 918 views - 599 Bytes)
__________________

Last edited by DruGzOG; 09-18-2008 at 14:42.
DruGzOG is offline
Send a message via AIM to DruGzOG
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-18-2008 , 14:24   Re: Health Display
Reply With Quote #2

- Learn how to use pcvars
- Pass id in the fonction, don't use read_data(0)
- I think you could register the event with flags "be"
- Why do you check if players are in terrorist team ?
- You don't need to create variable "health" since you only use it 1 time.
- Set the hudmessage channel to -1 (a sync hud would be better)
- Indentation ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 09-18-2008 , 14:26   Re: Health Display
Reply With Quote #3

It was setup for zombie mod
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-18-2008 , 14:28   Re: Health Display
Reply With Quote #4

- Don't release your very very first plugin when you are beginner. No need to rush, just learn more, be nice and try another day.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-18-2008 , 14:29   Re: Health Display
Reply With Quote #5

Quote:
Originally Posted by DruGzOG View Post

Credits:
xPaw- Helped Me Edit The Code to Inperfection
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 09-18-2008 , 14:33   Re: Health Display
Reply With Quote #6

Their i Edited it, still keeping read_data
__________________

Last edited by DruGzOG; 09-18-2008 at 14:39.
DruGzOG is offline
Send a message via AIM to DruGzOG
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-18-2008 , 16:02   Re: Health Display
Reply With Quote #7

Mine does the same thing with more cvars.
http://forums.alliedmods.net/showthread.php?t=54091

I even showed this to you the first time you asked for help about yours.

Unapproved.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 04:47.


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