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

View Poll Results: Do you like this plugin?
Yes 15 51.72%
No 14 48.28%
Voters: 29. You may not vote on this poll

MEDIC NPC (DOCTOR NPC)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
yura097
Junior Member
Join Date: Sep 2009
Location: Russia, Yekaterinburg
Old 04-16-2010 , 03:39   MEDIC NPC (DOCTOR NPC)
Reply With Quote #1

Medic NPC
by Mr. Smit


Description:

Medic NPC it's some man, at whoom you can recover!

You can creat this NPC on your server, and it will be saved!

When you come to medic, he will ask you "Do you want recover?"


I got this idea today on my knife server:

I have surf server. On this server I have NPC Man whoom give to other players surf boards.
On my knife server my friend ask me : "It will be cool, if on your knife server some man can give you health!"

I have remembered about two plugins CS Surf Boards and Call Medic and connected them!

It is real cool! You can come to Medic and ask help!

Commands:

amx_createnpc
- Type in console to create the Medic NPC.

Cvars:

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: 25)
How many health you get if you ask help from medic?

medic_costs <1-16000> (Default: 1500)
How many costs medic help?

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

medic_message <0/1> (Default: 1)
Write a message "[Medic] Somebody has asked me" to all players?

medic_cooldown <1-X> (Default: 30)
How long is the cooldowntime for ask Medic's help again?
If you set medic_cooldown to 0, cooldowntime is disabled.

REQUIRES:

AMX Mod X version 1.8.1 or higher

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

How To Use:
  1. Get all files for plugin at the bottom of this post.
  2. Place the amx_medic-npc.amxx file in your server's addons/amxmodx/plugins folder.
  3. Open the plugins.ini from your server's addons/amxmodx/configs folder.
  4. Add amx_medic-npc.amxx
  5. Save and close the file.
  6. Place medic-mod.txt from the bottom of this post in your server's addons/amxmodx/data/lang folder.
  7. Add folder npcsaved in your server's addons/amxmodx/configs/ folder. If you will not do this. Medic NPC will not save!
  8. Add other files to your server (model, sound)
  9. Change the map or restart your server.
How change medic tag:

  1. Open file amx_medic-npc.sma
  2. Find string #define TAG "[Medic]"
  3. Change "[Medic]" to tag which you want see on your server. For example to "[Doctor]". You must get #define TAG "[Doctor]"
Other:

It isn't my code of plugin. I was only connected two plugins CS Surf Boards by hlstriker and Call Medic by Grinf4ce!

Translations:

I created languages file !


English
by Mr. Smit
Russian by Mr. Smit (UTF-8 Without Bom)

Please, If you can translate, post it here!

Screenshot:

medic-npc.jpg

Current Version: 1.0

If you will find bug or my error please post about it here!
If you will post this plugin to other forums and sites please write this page link to them....

Sorry for my bad English


Languages:

DE (German) by
master4life

Code:
[de]
MED_TAG = [Arzt]
MED_HAVENOT_MONEY = %s Du hast nicht genug Geld! um medizin zu kaufen!
MED_SOMEBODY_ASK = %s Jemand benötigt meine Hilfe!
MED_HPNORMAL = %s Sie wurden schon geheilt!
MED_DISABLED = %s Tut mir leid, ich bin besetzt.
MED_WAIT = %s Ich habe dir schon geholfen! Warte %i Sekunden!
MED_MENU =  Willkommen %s! ^n^n Willst du eine behandlung?^n^n1: Ja   -   2: Nein
MED_DONTWANT =  %s Willst du nicht meine hilfe? Wie Sie wollen!
MED_ERRORRESTART = Der ^"%s^" CVAR wurde geändert. Die Map muss vor dem Einsetzen der NPC neugestartet werden.
MED_SAVED = Der Arzt ist erstellt und gespeichert!


BG (Bulgarian) by
papyrus_kn

Code:
[bg]
MED_HAVENOT_MONEY = %s Vie nyamate dostatuchno pari! Lekarstvoto e plateno.
MED_SOMEBODY_ASK = %s Nyakoy poiska moyata pomosht.
MED_HPNORMAL = %s Veche ste zdrav!
MED_DISABLED = %s Az sum zaet. Sujalyavam!
MED_WAIT = %s Veche Vi pomognah! Izchakayte %i sekundi!
MED_MENU =  Zdraveyte %s! ^n^n Iskate li da se izlekuvate?^n^n1: Da   -   2: Ne
MED_DONTWANT =  %s Ne iskate da polzvate moyata pomosht? Vie si reshavate!
MED_ERRORRESTART = Cvar-ut ^"%s^" beshe promenen. Kartata tryabva da se restartira predi da slojite NPC-to. //%s - cvar name here
MED_SAVED = Medikut e suzdaden i zapazen!
Attached Thumbnails
Click image for larger version

Name:	medic-npc.jpg
Views:	1179
Size:	77.2 KB
ID:	63823  
Attached Files
File Type: zip medic-npc.zip (2.09 MB, 447 views)
File Type: sma Get Plugin or Get Source (amx_medic-npc.sma - 1396 views - 8.4 KB)

Last edited by yura097; 04-16-2010 at 10:26.
yura097 is offline
Send a message via ICQ to yura097
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 04-16-2010 , 05:32   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #2

Not a bad idea, but : Dont put a poll in ur plugin its annoying.

Add a cvar for the time that is needed to heal
Add a cvar for the health of the medic so you can kill him

I see you telling that they need to put a file in there config, you can create that urself in plugin_cfg() using if(!file_exists(yourfiledir)) then create it if it doesn't exists.
__________________
I am out of order!
grimvh2 is offline
yura097
Junior Member
Join Date: Sep 2009
Location: Russia, Yekaterinburg
Old 04-16-2010 , 05:47   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #3

Quote:
Originally Posted by grimvh2 View Post
Add a cvar for the health of the medic so you can kill him
So..

In code
Code:
    // Set damage and hp
    set_pev(g_npc, pev_takedamage, 0.0);
If change to

Code:
    // Set damage and hp
    set_pev(g_npc, pev_takedamage, 500.0);
Yes, You can kill medic npc for one hit. If you kill him it willn't "come" to next rounds.

So, I don't know pawn , only c#

I can't write this code (add check for medic live or / not, give him normal health)....
yura097 is offline
Send a message via ICQ to yura097
yura097
Junior Member
Join Date: Sep 2009
Location: Russia, Yekaterinburg
Old 04-16-2010 , 05:49   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #4

Quote:
Originally Posted by grimvh2 View Post
Add a cvar for the time that is needed to heal
So, If you come to medic , and ask help, you must wait for repiar (3 hp in 1 second, for example)?
yura097 is offline
Send a message via ICQ to yura097
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 04-16-2010 , 06:12   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #5

Whenwe did this on jail server (more advanced, removed later), i knew someone will do it later. this happened xD
__________________
xPaw is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 04-16-2010 , 12:13   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
Whenwe did this on jail server (more advanced, removed later), i knew someone will do it later. this happened xD
You're really annoying. It doesn't interest anyone about your servers or about your thoughts.
KadiR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-16-2010 , 12:57   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #7

Okay, it is very clear you do not know what you are doing. I am going to unapprove this as you have said yourself that you just combined 2 plugins and did nothing else, that in itself does not warrant a new plugin. If you ever get better at scripting and update this plugin to be unique, PM me and I will move it back to the New Plugins section for further discussion.

If you want help learning how to script, read the various tutorials posted on this site and look at other plugins. Read the documentation and ask questions (but remember to search before you ask, as most, if not all, beginner questions have been answered already).


Quote:
Originally Posted by KadiR View Post
You're really annoying. It doesn't interest anyone about your servers or about your thoughts.
If you don't have anything helpful or nice to say, shut the hell up. I am getting sick of seeing every post of yours be something negative to other users. Start showing respect or take a vacation. If you have an issue with a specific user, PM that user expressing your feelings and issues. There is no reason to make a post and create flame bait.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 04-16-2010 , 14:17   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #8

Quote:
Originally Posted by YamiKaitou View Post
If you don't have anything helpful or nice to say, shut the hell up. I am getting sick of seeing every post of yours be something negative to other users. Start showing respect or take a vacation. If you have an issue with a specific user, PM that user expressing your feelings and issues. There is no reason to make a post and create flame bait.
Was the other guys answer helpful? No.
If you getting sick, ignore it.
I gonna respect those who earned it.
And no, I don't have any issue with a specific user, I just answered to his very helpful answer.

Anyways, you should be able to understand me now, if not, you can type what every you think. I don't have time to write a text to describe my mind about other people here.
KadiR is offline
yura097
Junior Member
Join Date: Sep 2009
Location: Russia, Yekaterinburg
Old 04-16-2010 , 06:59   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #9

Pawn scripting - it's difficult? So can I do which want grimvh2?
yura097 is offline
Send a message via ICQ to yura097
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-16-2010 , 07:01   Re: MEDIC NPC (DOCTOR NPC)
Reply With Quote #10

If you are not able to support this plugin, you should not post it. You should start to read the rules, then learning the pawn.
__________________
Arkshine 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 21:38.


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