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

Nade Giver v4.8


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-12-2008 , 11:01   Nade Giver v4.8
Reply With Quote #1

Nade Giver

#Modules

Cstrike
Fun
FakeMeta


#Description

It gives Smoke/He/Flash in a certain ammount of time, it can also be set to give instant grenades, grenades per frags, grenades at respawn.

#Installation

-text file goes in "amxmodx\data\lang\" folder
-amxx file goes in "amxmodx\plugins\" folder
-to make this compatible with Biohazard uncomment the #include <biohazard> and recompile it locally

#Cvars

ndg_enable 1 // [1|0] - enable | disable -> plugin

ndg_use_cmd_system 0 // [1|0] - enable | disable -> command system

ndg_chatannounce 1 // [1|0] - enable | disable -> announce when user receives grenade/the command to receive a nade is enabled
ndg_chatcount 0 // [1|0] - enable | disable -> announce the remaining seconds untill the user receives a nade / command is enabled for the nade

ndg_sounds 1 // [1|0] - enable | disable -> plugin sounds

ndg_resettime 1 // [1|0] - if set to 1 it will reset the time when you receive a nade for a frag

ndg_he_time 45 // [-1|0|every value > 0] - if set to -1 it will not give you time based grenades/enable the commands, 0 it will give instant grenades/command enable, >0 seconds till the grenade will be received/command will be enabled
ndg_fl_time 30 // [-1|0|every value > 0] - if set to -1 it will not give you time based grenades/enable the commands, 0 it will give instant grenades/command enable, >0 seconds till the grenade will be received/command will be enabled
ndg_sm_time 20 // [-1|0|every value > 0] - if set to -1 it will not give you time based grenades/enable the commands, 0 it will give instant grenades/command enable, >0 seconds till the grenade will be received/command will be enabled

ndg_he_limit 2 // [values > 0] - maximum grenades that a user can receive
ndg_fl_limit 4 // [values > 0] - maximum flashbangs that a user can receive
ndg_sm_limit 2 // [values > 0] - maximum smokes that a user can receive

ndg_he_ct_frags 10 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades set through ndg_he_ct_quantity cvar
ndg_he_ct_quantity 1 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades when the frags set with ndg_he_ct_frags will be made

ndg_fl_ct_frags 8 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades set through ndg_fl_ct_quantity cvar
ndg_fl_ct_quantity 1 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades when the frags set with ndg_fl_ct_frags will be made

ndg_sm_ct_frags 12 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades set through ndg_sm_ct_quantity cvar
ndg_sm_ct_quantity 1 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades when the frags set with ndg_sm_ct_frags will be made

ndg_he_t_frags 10 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades set through ndg_he_t_quantity cvar
ndg_he_t_quantity 1 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades when the frags set with ndg_he_t_frags will be made

ndg_fl_t_frags 8 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades set through ndg_fl_t_quantity cvar
ndg_fl_t_quantity 1 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades when the frags set with ndg_fl_t_frags will be made

ndg_sm_t_frags 12 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades set through ndg_sm_t_quantity cvar
ndg_sm_t_quantity 1 // [0, values > 0] - if 0 it will never give nades for frags, for > 0 it will give the number of nades when the frags set with ndg_sm_t_frags will be made

ndg_he_respawn_give 0 // [values >= 0] - amount of he grenades given at respawn
ndg_fl_respawn_give 0 // [values >= 0] - amount of flash bangs given at respawn
ndg_sm_respawn_give 0 // [values >= 0] - amount of smoke grenades given at respawn

#Commands

Attention! These commands work only if the plugin has ndg_use_cmd_system set to 1! In this situation to receive nades you need to use these commands when they are enabled!

To get a he!
Say/teamsay -> /he
Console -> ndg_he

To get a flash!
Say/teamsay -> /flash
Console -> ndg_flash

To get a smoke!
Say/teamsay -> /smoke
Console -> ndg_smoke

#Useful Links
Servers using this plugin
Translation Thread

#Cool plugins that can be used with this
Nade Modes
FrostNades
NapalmNades
Teleport Smoke Grenade

#Changelog
Code:
2.0 - Script changes showd use less cpu now ;).
    - added a new mode to give nades (see description)
3.0 - Hudmessages added
4.0 - Removed hudmessages, added colored chat messages, changed method to give nades, we now have a passive one with less resource use, no more nade giver lite, Multilanguage
4.5 - BH and ZP compatability
4.7 - New cvar to reset frags on death
4.8 - Improve compatibility with BH
#Credits
- Testers
- Translators
Attached Files
File Type: txt nade_giver.txt (5.0 KB, 2470 views)
File Type: sma Get Plugin or Get Source (nade_giver.sma - 5155 views - 35.3 KB)
File Type: zip required_files_NDG.zip (6.6 KB, 2405 views)

Last edited by ot_207; 10-12-2009 at 19:41. Reason: Readded it!
ot_207 is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-12-2008 , 13:25   Re: Nade Giver
Reply With Quote #2

already made?
http://forums.alliedmods.net/showthr...ght=nade+giver
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-12-2008 , 15:23   Re: Nade Giver
Reply With Quote #3

It's diferent , that plugin gives nades at the begining of each round, this gives you nades every x seconds ... it's a diference...
I made this one specially for CSDM becouse when you spawn you get 1 he and 2 flashes and 1 smoke but after you throw them you haven't got any!
So this plugin recharges the amunition for you!

Last edited by ot_207; 04-12-2008 at 15:25.
ot_207 is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-12-2008 , 15:24   Re: Nade Giver
Reply With Quote #4

true true :] GJ On plugin :] and its ur 1st also heh.
Nice.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
mahooo60
Senior Member
Join Date: Apr 2005
Old 04-12-2008 , 15:45   Re: Nade Giver
Reply With Quote #5

i think this is really usefull plugin,good job!
my server runs csdm and it gives every respawn all nades and if all guys
smokes every respawn at the same time(like on aim maps)then the server gets lag a bit...
now i can disable it on csdm and use this plugin and can hope for a laggles server...

thank u very much for it

Last edited by mahooo60; 04-12-2008 at 15:49.
mahooo60 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-12-2008 , 15:49   Re: Nade Giver
Reply With Quote #6

Please tell me if this plugin laggs your server and post the errors if there are any... And sugestions for other functions are welcomed!
ot_207 is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-12-2008 , 15:50   Re: Nade Giver
Reply With Quote #7

add cvar for if we enable it
they can type /he or /flash or /smoke and gets that nade.
and they can press it depending on the cvar for the time they recieved one.
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
mahooo60
Senior Member
Join Date: Apr 2005
Old 04-12-2008 , 15:55   Re: Nade Giver
Reply With Quote #8

Quote:
Originally Posted by Battousai-sama View Post
add cvar for if we enable it
they can type /he or /flash or /smoke and gets that nade.
and they can press it depending on the cvar for the time they recieved one.

no,please hold the plugin small...big plugins makes errors or stops running well other functions of other plugins or makes lag aswell!or leave this one orginal and put the one with more functions extra.so every1 can choose....

Last edited by mahooo60; 04-12-2008 at 16:00.
mahooo60 is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 04-12-2008 , 15:55   Re: Nade Giver
Reply With Quote #9

Quote:
Originally Posted by Battousai-sama View Post
and they can press it depending on the cvar for the time they recieved one.
Sorry, but I didn't understood the last part .
ot_207 is offline
Battousai-sama
Veteran Member
Join Date: Jul 2007
Old 04-12-2008 , 15:59   Re: Nade Giver
Reply With Quote #10

like u know u put time
x seconds they recieve nade?
make it so they can use the command for that time also.
like after x second they allowed ot use the command.
To prevent spam :]
__________________
Battousai-sama is offline
Send a message via MSN to Battousai-sama
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 13:08.


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