AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS] ReserveAmmoSetter (https://forums.alliedmods.net/showthread.php?t=203231)

javalia 12-16-2012 15:55

[CSS] ReserveAmmoSetter
 
2 Attachment(s)
<ReserveAmmoSetter>



Introdution
did you wanted to have separated reserved ammos for mp5 and glock?
did you wanted to have separated reserved ammos for fiveseven and p90?
did you wanted to have 400 ammos for p90 and 120 ammos for fiveseven?
this plugin is for that!
even through this plugin is small, i had hard time to fix all the bugs while making this plugin...



Requirements

this plugin needs the things listed below to work:
  • SDKHooks



Installation

to install this plugin
  • put the smx file in the sourcemod/plugins folder
  • put these configs in server.cfg and besure those are not overrided by any other config file or plugins.
    Code:

    ammo_338mag_max 0;
    ammo_357sig_max 0;
    ammo_45acp_max 0;
    ammo_50AE_max 0;
    ammo_556mm_box_max 0;
    ammo_556mm_max 0;
    ammo_57mm_max 0;
    ammo_762mm_max 0;
    ammo_9mm_max 0;
    ammo_buckshot_max 0;

  • put reserveammosetter.txt in your sourcemod/configs/reserveammosetter/ folder
to compile this plugin manually
  • put sp file in the sourcemod/scripting folder
  • put every include files needed for this plugin into the sourcemod/scripting/include folder
  • compile.



Configuration

to config this plugin, you need to open the reserveammosetter.txt that you placed in
sourcemod/configs/reserveammosetter/ folder.
be careful when you edit this file, because i didnt made a good paser code, putting any whitespace character
can cause problems while parsing. default values of config file is intended to work in classic server with RealisticReload plugin on here https://forums.alliedmods.net/showthread.php?p=1424074



Known Bugs & Limits Of the Mod

because of the way how this plugin work, this plugin will override reserved ammo`s amount that is placed on map.
this includes guns that is spawned by other plugin.
while using this plugin, you cannot buy ammos with buyammo commands in css.(i am thinking to add command support.)
this plugin will make a little predict error to reserved ammos but its not a big problem.



Special Thanks To

i want to say thanks to these guys
  • someone whom will get interested on my plugin and use this.



Change Log

all the date`s format is y/m/d
Code:

update at 2012 12 22(ver 1.0.3.3)
  • changed code to have better look. it needs latest sm snapshot to work without bug.

  • changed default config of reserved ammos for guns a bit.

update at 2012 12 17(ver 1.0.0.0)
  • released



Root_ 01-07-2014 15:06

Re: [CSS] ReserveAmmoSetter
 
Good work! I just wanted to create something similar, good that I found this plugin just now :mrgreen:
BTW I think it will work for any game.


All times are GMT -4. The time now is 08:42.

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