AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Emergency Ammo (https://forums.alliedmods.net/showthread.php?t=54335)

Mini_Midget 04-23-2007 05:14

Emergency Ammo
 
2 Attachment(s)
Emergency Ammo
Author: Mini_Midget
Version: 1.0
Modules: Fun and Cstrike
Description:
Has this ever happened to you?
You're the only one left against 4 enemies and all your weapons are low on ammo but and you got some spare cash left. You can't find any guns to swap with any where nearby.
This is when Emergency Ammo comes in!
You don't have to be in the buy-zone nor do you have to be within the buy-time. Just type one of the commands or bind one to your keys and you will get one clip of ammo for your current gun you are holding. Or maybe you want grenades? Don't worry! Emergency Ammo also supplies the 3 grenades.

Cvars:
mp_emergencyammo "1"
amx_multiammo "2"
amx_emernade "1"

Commands:
say "/ammo" ; say "/ammoh" ; say "/ammof" ; say "/ammos"
For binding...
"ammo" Current holding weapon
"ammoh" HE-Grenades
"ammof" Flash-Bangs
"ammos" Smoke-Grenades
For help about Emergency Ammo.
say "/ammohelp"

Installation
Do whatever you usually do with a plugin.
Put ammoMotd.txt in cstrike folder.

Screenshots
[IMG]http://img187.**************/img187/3267/93164061jc6.jpg[/IMG]
[IMG]http://img100.**************/img100/7783/18046973na5.jpg[/IMG]
[IMG]http://img152.**************/img152/9744/88551084ks4.jpg[/IMG]

Changelog:
Version 1.0
First Release
Credits
regalis

Alka 04-23-2007 05:17

Re: Emergency Ammo
 
Nice...i have to test this ASAP! Gj :wink:

Mini_Midget 04-23-2007 10:06

Re: Emergency Ammo
 
Cheers Alka. I guess you're the first to try this plugin apart from me.

Any thoughts about it?
Suggestions maybe?
And maybe a few errors/bugs here and there?

Want to keep this plugin top notch for others as well.

Alka 04-23-2007 10:33

Re: Emergency Ammo
 
So far,so good!Is working like a charm...Gj! ;)
*No suggests :P

Deviance 04-23-2007 11:27

Re: Emergency Ammo
 
Works great, gj there!

Styles 04-23-2007 15:36

Re: Emergency Ammo
 
wow great original idea man a++! + Karma

terry0412x 04-29-2007 02:21

Re: Emergency Ammo
 
How do you use the plugin? :O

Mini_Midget 04-29-2007 03:17

Re: Emergency Ammo
 
Quote:

Originally Posted by terry0412x (Post 471004)
How do you use the plugin? :O

type...
Code:

/ammo
/ammoh
/ammof
/ammos


tatar 04-29-2007 17:12

Re: Emergency Ammo
 
u can use ammo command only when u re alone vs 2+ ?

Hawk552 04-29-2007 19:53

Re: Emergency Ammo
 
there's a ton of redundant code, just do something like this:

Code:
enum WEAPONS {    MULTIPLIER = 0,    NAME[33] } #define MAX_WEAPONS 2 new g_Weapons[MAX_WEAPONS][WEAPONS] = {    {50,"name"},    {32,"spam"}, }

Then:

Code:
if ( money < ( multi * g_Weapons[Selection][MULTIPLIER] ) )             {                 client_print ( id , print_chat , "[AmxX] You do not have enough money." )             }             else             {                 give_item ( id , g_Weapons[Selection][NAME] )                 cs_set_user_money ( id , money - ( multi * g_Weapons[Selection][MULTIPLIER] ) )             }

Also, please don't use "AmxX" in the print. I mean I'm not going to hold it back for that but it looks pretty retarded.

I'm going to approve it for now but please do as I said.


All times are GMT -4. The time now is 01:54.

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