Raised This Month: $32 Target: $400
 8% 

Vampire


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Shalfee
New Member
Join Date: Mar 2007
Old 03-21-2007 , 12:21   Vampire
Reply With Quote #1

Vampire

Current version
1.0c

Short Description
Then somebody get a kill, he gets some HealthPoints. Although screen fades into light blue for a moment.

Cvars
amx_vampire_hp - HP for kill.
amx_vampire_hp_hs - HP for kill in head.
amx_vampire_max_hp - Maximum player's HP.

I hope, it'll be useful
Attached Files
File Type: sma Get Plugin or Get Source (vampire.sma - 32887 views - 1.6 KB)

Last edited by Shalfee; 03-21-2007 at 13:58. Reason: Adding comments to code
Shalfee is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 03-21-2007 , 12:58   Re: Vampire
Reply With Quote #2

1) amxmisc isn't required
2) use pcvars
3) ident is poor on lines 44 - 50
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-21-2007 , 13:23   Re: Vampire
Reply With Quote #3

Code:
new Killer = read_data(1) new health = get_user_health(Killer)
equals error.
[ --<-@ ] Black Rose is offline
Shalfee
New Member
Join Date: Mar 2007
Old 03-21-2007 , 13:47   Re: Vampire
Reply With Quote #4

Thx for comments, guys
Now variables are global, and ident is fixed.
Shalfee is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 03-21-2007 , 14:14   Re: Vampire
Reply With Quote #5

Quote:
Originally Posted by SAMURAI16 View Post
1) amxmisc isn't required
2) use pcvars
3) ident is poor on lines 44 - 50
It's totally correct to include amxmisc even though it isn't needed because amxmisc doesn't load until a function in it is called.
mateo10 is offline
Old 03-21-2007, 14:54
organizedKaoS
This message has been deleted by organizedKaoS.
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-21-2007 , 18:04   Re: Vampire
Reply With Quote #6

Quote:
Originally Posted by organizedKaoS View Post
amxmisc is not a module.

If no functions/natives from amxmisc are used in the plugin, it is not needed.
IMO it's a fair trade-off considering you can add something from it later (i.e. something common like cmd_access) without having to worry about it. Although it's not needed, there's absolutely no speed loss on runtime (although there is a very marginal amount on compile time).
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
紫色炫燿
Junior Member
Join Date: Apr 2007
Old 04-08-2007 , 03:43   Re: Vampire
Reply With Quote #7

點解D插件我一D都睇唔明 ?
紫色炫燿 is offline
IcyVenom
New Member
Join Date: Jun 2007
Old 06-24-2007 , 02:06   Re: Vampire
Reply With Quote #8

im sorry to be a noob but yeah i was wondering if u could help me out, i love the thought of this plugin and yeah it works great i was just wondering if u could rescript it up a bit so it will last over until u die not until the round ends..........im soooo sorry for being a noob but this would be awesome and help me out alot tyvm....if u can not do this can u point to a plugin that does the same thing as this and does last over the round please and thank you
IcyVenom is offline
Monkis
Member
Join Date: Nov 2007
Location: Lithuania
Old 12-21-2007 , 04:10   Re: Vampire
Reply With Quote #9

when i want to go from ct to t or t to ct it give HP for kill , can you fix it ?
Monkis is offline
Old 12-21-2007, 04:39
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: not working at all :P
Monkis
Member
Join Date: Nov 2007
Location: Lithuania
Old 12-21-2007 , 07:29   Re: Vampire
Reply With Quote #10

now its not working at all
Monkis 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 22:48.


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