AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Nade Giver (https://forums.alliedmods.net/showthread.php?t=7539)

Dizzy 11-12-2004 00:40

Nade Giver
 
3 Attachment(s)
Nade Giver
v2.0

MAINTENANCE - Stay Tuned

NOW WITH DOD SUPPORT THANKS TO JOSELITO

Code:
////////////////////////////////// //AMXMOD[X]                     // //Nade Giver v2.0               // //CS code by: Dizzy (Original)  // //DOD code by: Joselito         // //(©)All rights reserved        // //                              // //Cvars:                        // // amx_nadegiver (0|1) (off|on) // // amx_nade_flash <number>      // // amx_nade_grenade <number>    // // amx_nade_smoke <number>      // //                              // //Server CFG Cvars:             // // ng_nadegiver 1               // //                              // // For CS:                      // // ng_cs_flash 2                // // ng_cs_smoke 1                // // ng_grenade 1                 // //                              // // For DOD:                     // // ng_grenade 2                 // //                              // //Client Commands:              // // nademenu --CS                // // nadegive --DOD               // //                              // //Description:                  // //                              // //   When a new round begins    // //   you can type the client    // //   commands to obtain two     // //   flashes, one he grenade    // //   ,and one smoke per round.  // //////////////////////////////////

LizardKing 11-12-2004 03:05

Hey great idea/plugin. I will definitly use this.

Johnny got his gun 11-12-2004 05:01

Maybe you should tell people about the sv_nade cvar...

Dizzy 11-12-2004 16:48

K sorry about that I will JGHG :)

Dizzy 11-14-2004 11:20

If you have an Idea to this plugin or you want a feature added just tell me and I will add it :) :D

I was wondering if I added this

Code:
new bool:hasloaned[32]

Code:
register_event("ResetHUD","roundchange","b")

Code:
public client_connect(id) { hasloaned[id] = false } public client_disconnect(id) { hasloaned[id] = false }

Code:
public roundchange(id) { hasloaned[id] = false return PLUGIN_CONTINUE }

with a grand total of
Code:
#include <amxmodx> #include <fun> new bool:hasloaned[32] public plugin_init() {   register_plugin("Nade Giver","1.0","Dizzy")   register_cvar("sv_nade","1")   register_clcmd("say /smoke","Smoke")   register_clcmd("say /he","HE")   register_clcmd("say /flash","Flash")   register_event("ResetHUD","roundchange","b") } public client_connect(id) { hasloaned[id] = false } public client_disconnect(id) { hasloaned[id] = false } public Smoke(id) { if (hasloaned[id]) return PLUGIN_HANDLED if (get_cvar_num("sv_nade") !=0) { give_item(id,"weapon_smokegrenade") } return PLUGIN_HANDLED } public HE(id) { if (hasloaned[id]) return PLUGIN_HANDLED if (get_cvar_num("sv_nade") !=0) { give_item(id,"weapon_hegrenade") } return PLUGIN_HANDLED } public Flash(id) { if (hasloaned[id]) return PLUGIN_HANDLED if (get_cvar_num("sv_nade") !=0) { give_item(id,"weapon_flashbang") } return PLUGIN_HANDLED }   public roundchange(id) { hasloaned[id] = false return PLUGIN_CONTINUE }

will that make it soo you can only use one grenade per round?

Dizzy 11-15-2004 20:35

Well, is anyone gonna reply to me?

Will that make it once a round?

:|

BigBaller 11-15-2004 23:57

This is your plugins thread, not the scripting help forum.

Dizzy 11-25-2004 23:40

Should I add anything to this plugin? Change Anything if you have any suggestions just tell me :)!!

Lord_Destros 02-03-2005 21:56

How bout nade only?
 
How bout adding a nade only function, so it can make any map an HE map. An HE plugin was created by Burnzy which worked great, but he was later banned, so his plugin was removed, I still have a copy of it, but thought you could add it in yours. Also I'm not sure if yours already does this, but you could make it so that it gives people the nades right after they use it automatically. Also if you do add a nade only cvar, plz create a cvar for nade only AND one for nades and knives only. lol, that would be interesting..................... :) :) :D

Dizzy 04-05-2005 22:33

Yesh, Adding A HE Only Arena Would Be Kinda Cool, Can You Give Me Burnzy's Script?

I'd Like To Take A Look At It.


All times are GMT -4. The time now is 09:31.

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