AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   BackPack Ammo Features v0.1.5 (04 apr 10) (https://forums.alliedmods.net/showthread.php?t=81183)

ConnorMcLeod 11-29-2008 11:55

BackPack Ammo Features v0.1.5 (04 apr 10)
 
8 Attachment(s)
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 :D


.: 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


AntiBots 11-29-2008 13:13

Re: BackPack Ammo Features
 
Gj. I go to test now. :D

hleV 11-29-2008 17:42

Re: BackPack Ammo Features
 
Nice. Gonna use it.

ConnorMcLeod 11-30-2008 03:26

Re: BackPack Ammo Features
 
Updated, collecting weapons wasn't implemented.

Fry! 12-01-2008 16:20

Re: BackPack Ammo Features
 
Nice! :D

NestleMilo 12-19-2008 14:52

Re: BackPack Ammo Features
 
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.

ConnorMcLeod 12-19-2008 15:23

Re: BackPack Ammo Features
 
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 :mrgreen:

NestleMilo 12-22-2008 19:54

Re: BackPack Ammo Features
 
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.

ConnorMcLeod 12-23-2008 04:42

Re: BackPack Ammo Features
 
252 -> 30/252
253 -> 30/253
254 -> 30/254
255 -> 30/253
256 -> 30/252
etc..

FakeNick 12-23-2008 05:28

Re: BackPack Ammo Features
 
Awesome idea, +karma :].


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

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