AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Call Medic for CS (v0.7 | 07/14/08) (https://forums.alliedmods.net/showthread.php?t=73490)

Grinf4ce 06-30-2008 04:07

Call Medic for CS (v0.7 | 07/14/08)
 
2 Attachment(s)
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:

mando127 06-30-2008 11:05

Re: Call Medic (v0.5 | 06/30/08)
 
will this work with cs 1.6 ?

Grinf4ce 06-30-2008 11:18

Re: Call Medic (v0.5 | 06/30/08)
 
Yes :)

AntiBots 06-30-2008 13:06

Re: Call Medic for CS (v0.5 | 06/30/08)
 
It is same that /sleep.

Thank for your plugin.

Emp` 07-03-2008 15:00

Re: Call Medic for CS (v0.5 | 06/30/08)
 
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.

Grinf4ce 07-04-2008 17:41

Re: Call Medic for CS (v0.5 | 06/30/08)
 
Quote:

Originally Posted by Emp` (Post 647409)
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` (Post 647409)
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 :oops:
Fixed.. [Changed to Version 0.6]

-Greets Grinf4ce

Grinf4ce 07-14-2008 11:14

Re: Call Medic for CS (v0.7 | 07/14/08)
 
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 :)

purple nurple 07-15-2008 17:50

Re: Call Medic for CS (v0.7 | 07/14/08)
 
another medic mod? I though there was all ready one like this

mercuL 08-29-2008 13:42

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

Originally Posted by purple nurple (Post 653299)
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 08-29-2008 13:45

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

what has this mode meaning ?


All times are GMT -4. The time now is 11:07.

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