Raised This Month: $100 Target: $400
 25% 

Emergency Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 04-23-2007 , 06:14   Emergency Ammo
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (emergency_ammo.sma - 6382 views - 12.8 KB)
File Type: txt ammoMotd.txt (1.3 KB, 2402 views)
__________________
It's a mystery.

Last edited by Mini_Midget; 04-23-2007 at 06:40.
Mini_Midget is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-23-2007 , 06:17   Re: Emergency Ammo
Reply With Quote #2

Nice...i have to test this ASAP! Gj
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 04-23-2007 , 11:06   Re: Emergency Ammo
Reply With Quote #3

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.
__________________
It's a mystery.
Mini_Midget is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 04-23-2007 , 11:33   Re: Emergency Ammo
Reply With Quote #4

So far,so good!Is working like a charm...Gj! ;)
*No suggests
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 04-23-2007 , 12:27   Re: Emergency Ammo
Reply With Quote #5

Works great, gj there!

Last edited by Deviance; 04-23-2007 at 12:30.
Deviance is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-23-2007 , 16:36   Re: Emergency Ammo
Reply With Quote #6

wow great original idea man a++! + Karma
Styles is offline
Send a message via AIM to Styles Send a message via MSN to Styles
terry0412x
Member
Join Date: Feb 2007
Old 04-29-2007 , 03:21   Re: Emergency Ammo
Reply With Quote #7

How do you use the plugin? :O
terry0412x is offline
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 04-29-2007 , 04:17   Re: Emergency Ammo
Reply With Quote #8

Quote:
Originally Posted by terry0412x View Post
How do you use the plugin? :O
type...
Code:
/ammo
/ammoh
/ammof
/ammos
__________________
It's a mystery.
Mini_Midget is offline
tatar
Junior Member
Join Date: Feb 2007
Old 04-29-2007 , 18:12   Re: Emergency Ammo
Reply With Quote #9

u can use ammo command only when u re alone vs 2+ ?
tatar is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-29-2007 , 20:53   Re: Emergency Ammo
Reply With Quote #10

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.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 00:09.


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