View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-29-2008 , 11: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 - 5701 views - 9.0 KB)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-10-2011 at 01:44.
ConnorMcLeod is offline