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

BackPack Ammo Features v0.1.5 (04 apr 10)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-29-2008 , 12:55   BackPack Ammo Features v0.1.5 (04 apr 10)
Reply With Quote #1

Bp Ammo Features




.: Description :.


Features :
  • Change the max bpammo you can carry
  • Change the cost of 1 bpammo
  • Change amount of bullet you got in a bought bpammo (not in the gun)

Suggestion : Use this plugin with Weapons MaxClip plugin.



.: Commands :.

  • set_bpammo_max < Ammo Name > < Amount > (better to set <255 so the right number is displayed)
    Max "Ammo Name" bpammo that you can carry
  • set_bpammo_cost < Ammo Name > < Price >
    Cost of 1 "Ammo Name" bpammo
  • set_bpammo_amount < Ammo Name > < Amount >
    Number of bullets in 1 "Ammo Name" bpammo that you buy



.: Ammo Names and Corresponding Weapons :.

  • 9mm : elite , glock18 - mp5navy , tmp
  • 57mm : fiveseven - p90
  • 50ae : deagle -
  • 45acp : usp - mac10 , ump45
  • 357sig : p228 -
  • 762nato : - scout , g3sg1 , ak47
  • 556nato : - aug , sg550 , galil , famas , m4a1 , sg552
  • buckshot : - m3 , xm1014
  • 338magnum : - awp
  • 556natobox : - m249



.: Config Examples :.


You can put commands in amxx.cfg.
I recommand to decrease the cost if you increase the number, because some player don't use buyammo1/2 commands,
so they will buy all bpammo that is avaible and then they can loose lot of money ;)

If you want to change max bpammo that you can carry for shotguns (m3 and xm1014) to 100 (default is 32) :
set_bpammo_max buckshot 100

If you want to change the cost of 1 m4a1 bpammo to 20 (default is 30) :
set_bpammo_cost 556nato 20

If you want to get 15 bullets instead of 12 whan you buy 1 bpammo for you usp :
set_bpammo_num 45acp 15

For default cs value see this link : CS_Weapons_Information



.: Modules :.


Cstrike
Fakemeta
Hamsandwich



.: Credits :.


VEN for CS Weapons Informations
HLSDK of course


.: ScreenShots :.


[IMG]http://img140.**************/img140/9778/deageh3.png[/IMG]
With this setting :
// deagle
set_bpammo_max 50ae 50 // default 35
set_bpammo_cost 50ae 1 // default 40
set_bpammo_num 50ae 9 // default 7



.: Note :.


I'm affraid this plugin should be unapproved as values are hardcoded,
only 1 price for all ammos, and doesn't supports pri/secammo commands and buymenu.



.: Changelog :.


Code:
v0.1.5 ( 04 apr 2010 )
- Fixed pistols were not detected on linux -> changed get_pdata_int with get_pdata_cbase)
- Use client_print for "insuffisient funds !!" message instead of sending a TextMsg message.

v0.1.4 ( 23 mar 2010 )
- Fixed typo in CS_InternalCommand forward

v0.1.3 ( 22 mar 2010 )
- Re-used cstrike cs_set_money native

v0.1.2 ( 22 mar 2010 )
- Fixed blinking money when ammo was full and money was less than ammo cost

v0.1.1 ( 22 mar 2010 )
- Magically fixed crashes (added checks and security + Cs_InternalCommand forward).

v0.1.0 ( 21 mar 2010 )
- Moved cvars to commands for efficienty
- Add money blink + "not enough money" message when not enough money

v0.0.3 ( 17 jan 2009 )
- Fixed buy menu bad registering

v0.0.2 ( 30 nov 2008 )
- Added support for collected weapons
Attached Files
File Type: sma Get Plugin or Get Source (bpammo_features.sma - 4486 views - 9.0 KB)
__________________
- tired and retired -

Last edited by ConnorMcLeod; 02-10-2011 at 02:44.
ConnorMcLeod is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: La Plata, Bs As, Argenti
Old 11-29-2008 , 14:13   Re: BackPack Ammo Features
Reply With Quote #2

Gj. I go to test now.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 11-29-2008 , 18:42   Re: BackPack Ammo Features
Reply With Quote #3

Nice. Gonna use it.
__________________
hleV is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-30-2008 , 04:26   Re: BackPack Ammo Features
Reply With Quote #4

Updated, collecting weapons wasn't implemented.
__________________
- tired and retired -
ConnorMcLeod is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 12-01-2008 , 17:20   Re: BackPack Ammo Features
Reply With Quote #5

Nice!
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
NestleMilo
BANNED
Join Date: May 2008
Location: http://zombieplague.org
Old 12-19-2008 , 15:52   Re: BackPack Ammo Features
Reply With Quote #6

This can't make the ammo go past 500 right? So it can't be 7/500? If you do set it will the ammo be 255 or will it actually show 500.
NestleMilo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-19-2008 , 16:23   Re: BackPack Ammo Features
Reply With Quote #7

It will actually be 500, but it will show something like 512-500, also, each time you gonna reload, the amount shown will increase untill 512-bpammo is <255
__________________
- tired and retired -
ConnorMcLeod is offline
NestleMilo
BANNED
Join Date: May 2008
Location: http://zombieplague.org
Old 12-22-2008 , 20:54   Re: BackPack Ammo Features
Reply With Quote #8

Don't really understand o.O

So lets say I change it so that the bp ammo for the m4 is 1000. It would show IN GAME

30/1000

or

30/255.

I would test this out myself, but steam is being gay.
NestleMilo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-23-2008 , 05:42   Re: BackPack Ammo Features
Reply With Quote #9

252 -> 30/252
253 -> 30/253
254 -> 30/254
255 -> 30/253
256 -> 30/252
etc..
__________________
- tired and retired -
ConnorMcLeod is offline
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 12-23-2008 , 06:28   Re: BackPack Ammo Features
Reply With Quote #10

Awesome idea, +karma :].
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
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 11:46.


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