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)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 - 1395 views - 8.4 KB)

Last edited by yura097; 04-16-2010 at 10:26.
yura097 is offline
Send a message via ICQ to yura097
 



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 17:02.


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