Thread: Nade Giver v4.8
View Single Post
Plugin Info:     Modification:          Category:          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, 2478 views)
File Type: sma Get Plugin or Get Source (nade_giver.sma - 5175 views - 35.3 KB)
File Type: zip required_files_NDG.zip (6.6 KB, 2418 views)

Last edited by ot_207; 10-12-2009 at 19:41. Reason: Readded it!
ot_207 is offline