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

[Suggestion] Lose hp per sec if AWP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheLinx
BANNED
Join Date: Jun 2006
Location: Somewhere i belong (swe)
Old 08-02-2006 , 10:53   [Suggestion] Lose hp per sec if AWP
Reply With Quote #1

Hi!
I got an idea to a plugin...
If you have an AWP you will lose some hp per sec..Is it made already?
If its not can someone out there make it (cause i cant...)
TheLinx is offline
Send a message via ICQ to TheLinx Send a message via AIM to TheLinx Send a message via MSN to TheLinx Send a message via Yahoo to TheLinx Send a message via Skype™ to TheLinx
shino
Senior Member
Join Date: May 2006
Old 08-02-2006 , 11:32   Re: [Suggestion] Lose hp per sec if AWP
Reply With Quote #2

i didn't quite found it, so i made it

cvars:
ahp_status - when 1, plugin works, when 0, it doesn't
ahp_seconds - lets you choose on how many seconds the check is performed
ahp_health - lets you choose how many health player with awp looses

i would like to know, if it works (and there are no plugins, that do the same(my search was weak )), so i could release it
Attached Files
File Type: sma Get Plugin or Get Source (awppunishment.sma - 821 views - 881 Bytes)
__________________


+karma if i am helpful
shino is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-02-2006 , 12:38   Re: [Suggestion] Lose hp per sec if AWP
Reply With Quote #3

cool..

1 suggestion for your code..

change this:
PHP Code:
if(get_cvar_num("ahp_status") != 1
to this:

PHP Code:
if(!get_cvar_num("ahp_status")) 
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
shino
Senior Member
Join Date: May 2006
Old 08-02-2006 , 12:42   Re: [Suggestion] Lose hp per sec if AWP
Reply With Quote #4

it is probably outputting you run time error 10 and invalid player id...(at least it does to me) well... working on it
__________________


+karma if i am helpful
shino is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-02-2006 , 16:08   Re: [Suggestion] Lose hp per sec if AWP
Reply With Quote #5

Quote:
Originally Posted by shino
it is probably outputting you run time error 10 and invalid player id...(at least it does to me) well... working on it
It is because you set ID to 0.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
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 14:35.


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