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

Call Medic for CS (v0.7 | 07/14/08)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
Grinf4ce
Senior Member
Join Date: May 2006
Old 06-30-2008 , 04:07   Call Medic for CS (v0.7 | 07/14/08)
Reply With Quote #1

Call Medic for CS
Version 0.7

Hello! This is my 2nd little plugin. I searched in approved plugins, but doesnt found one:

DESCRIPTION:
Call Medic gives you health for money. If you type /medic or medic (in chat, teamchat or console) you will shout "medic" (with sound and radiomessage) which only your team can hear.


FEATURES:
*) Sound (specifed by CVAR)
*) RadioMessage (specifed by CVAR)
*) Cooldowntime (specifed by CVAR)


CVAR's:
medic_enabled <0/1> (Default: 1)
<1> Enable this plugin
<0> Disable this plugin


medic_maxhp <1-X> (Default: 100)
Maximum Health on your server.

medic_health <1-X> (Default: 20)
How many health you get if you shout medic?

medic_costs <1-16000> (Default: 2000)
How many costs medic call?

medic_shout <0/1> (Default: 1)
Shouts "medic" with sound?

medic_message <0/1> (Default: 1)
Write a radio message to team?

medic_cooldown <1-X> (Default: 10)
How long is the cooldowntime for calling "Medic" again?
If you set medic_cooldown to 0, cooldowntime is disabled.


REQUIRES:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>


INSTALLATION:
Put medic.wav in sound.zip in your the "sound" folder of your server.


SERVER RUNNING "Call Medic"
Check it


COMING SOON:
- Version with Cooldown-time. DONE
- Different Medic-shouts.


CHANGELOG:
Version 0.5:
- First release
Version 0.6:
- Fixed Max-Health bug
Version 0.7:
- Added Cooldown for shouting "Medic"!

I tested it on my server without problems. If you have any suggestions or bugs pls report it
- Grinf4ce

Downloads Version 0.5: 31
Downloads Version 0.6: 26
Latest Call Medic (Version 0.7 [07-14-2008]) - Download here:
Attached Files
File Type: zip sound.zip (6.1 KB, 6755 views)
File Type: sma Get Plugin or Get Source (call_medic.sma - 12644 views - 3.9 KB)
__________________

Last edited by Grinf4ce; 07-14-2008 at 11:12. Reason: Updating to Version 0.7
Grinf4ce is offline
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 06-30-2008 , 11:05   Re: Call Medic (v0.5 | 06/30/08)
Reply With Quote #2

will this work with cs 1.6 ?
__________________
mando127 is offline
Send a message via Skype™ to mando127
Grinf4ce
Senior Member
Join Date: May 2006
Old 06-30-2008 , 11:18   Re: Call Medic (v0.5 | 06/30/08)
Reply With Quote #3

Yes
__________________
Grinf4ce is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 06-30-2008 , 13:06   Re: Call Medic for CS (v0.5 | 06/30/08)
Reply With Quote #4

It is same that /sleep.

Thank for your plugin.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-03-2008 , 15:00   Re: Call Medic for CS (v0.5 | 06/30/08)
Reply With Quote #5

line 77
Code:
							engfunc(EngFunc_EmitSound, id, CHAN_ITEM, "medic.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
will emit the sound from the player more than once.

Code:
				if(ActuellHP + Lebenplus > get_pcvar_num(MAXHEALTH))
				{
					set_pev(id,pev_health,100.0)
Should get the cvar to set their health, not just assume its 100.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Grinf4ce
Senior Member
Join Date: May 2006
Old 07-04-2008 , 17:41   Re: Call Medic for CS (v0.5 | 06/30/08)
Reply With Quote #6

Quote:
Originally Posted by Emp` View Post
line 77
Code:
engfunc(EngFunc_EmitSound, id, CHAN_ITEM, "medic.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
will emit the sound from the player more than once.
Hmmmm.. to emit the sound once should i use the clientcommand "stopsound"?
I dont know how to fix this "bug".. Please help :/

Quote:
Originally Posted by Emp` View Post
Code:
if(ActuellHP + Lebenplus > get_pcvar_num(MAXHEALTH))
{
set_pev(id,pev_health,100.0)
Should get the cvar to set their health, not just assume its 100.
Oh sorry for that mistake
Fixed.. [Changed to Version 0.6]

-Greets Grinf4ce
__________________
Grinf4ce is offline
Grinf4ce
Senior Member
Join Date: May 2006
Old 07-14-2008 , 11:14   Re: Call Medic for CS (v0.7 | 07/14/08)
Reply With Quote #7

Update to v0.7:

- Fixed: Emit the sound from the player more than once.
- Added: Shout-Cooldown-time (specifed by CVAR)

Look First Post
Have fun
__________________
Grinf4ce is offline
purple nurple
Senior Member
Join Date: Jun 2007
Location: US Missouri
Old 07-15-2008 , 17:50   Re: Call Medic for CS (v0.7 | 07/14/08)
Reply With Quote #8

another medic mod? I though there was all ready one like this
purple nurple is offline
mercuL
Junior Member
Join Date: Aug 2008
Old 08-29-2008 , 13:42   Re: Call Medic for CS (v0.7 | 07/14/08)
Reply With Quote #9

Quote:
Originally Posted by purple nurple View Post
another medic mod? I though there was all ready one like this
Hey what is a mod or pluing... oh no is a realy and good pluing .. this pluing a what a mod server ?? Public,Funny,Hns and what .. and nothing doing a server ... and what a version to Amxmodmenu .. 1.80 ??
mercuL is offline
Send a message via ICQ to mercuL Send a message via Skype™ to mercuL
mercuL
Junior Member
Join Date: Aug 2008
Old 08-29-2008 , 13:45   Re: Call Medic for CS (v0.7 | 07/14/08)
Reply With Quote #10

Code:
what has this mode meaning ?
mercuL is offline
Send a message via ICQ to mercuL Send a message via Skype™ to mercuL
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 10:42.


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