Thread: Custom Bags
View Single Post
Plugin Info:     Modification:          Category:          Approver:   v3x (159)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 06-08-2006 , 01:26   Custom Bags
Reply With Quote #1


This plugin allows you to create custom backpacks / armorkits / healthkits with however much health/armor/ammo/nades in each that you want. You can also choose how often the bag spawns, what model it is, and which team can use it. Not only can you spawn custom bags, but you can delete bags that are already on a map. All spawned and deleted bags are saved into a configfile so that when the map changes back it will load the custom bags + removed bags. Custom bags can be removed and removed bags can be de-removed.

Commands (Flag "q"):

Menu Command that contains all the below commands in menu form:
amx_bagmenu

amx_createbag - Syntax:
Code:
<model - 1=backpack | 2=green armor | 3=red armor | 4=yellow armor | 5=medkit>
<health>
<armor>
<shells>
<bullets>
<cells>
<rockets>
<nade1>
<nade2>
<team - 0=any 1=blue 2=red 3=yellow 4=green>
<respawn time in 0.1s>
amx_removebag - Removes the backpack/armor/medkit closest to you from the map.
amx_de-removebag - <bag # - or - 0=list deleted bags>


Example amx_createbag usage:
Code:
amx_createbag 1 0 0 25 50 200 40 0 0 0 20

This creates a bag with a backpack model containing:

0 health
0 armor
25 shells
50 bullets
200 cells
40 rockets
0 nade type 1
0 nade type 2
respawns every 2 seconds
The list of de-removed bags tells you only the time at which the bag was deleted.

Note: When picking up a bag the right section of your hud does not flash.
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Custom_Bags.sma - 2168 views - 36.6 KB)

Last edited by GHW_Chronic; 12-22-2006 at 19:03.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic