This is a Counter-Strike 1.6 mod where players get free weapons and equipment by chance when they spawn.
Weapon Names:
p228
shield
scout
hegrenade
xm1014
c4
mac10
aug
smokegrenade
elite
fiveseven
ump45
sg550
galil
famas
usp
glock18
awp
mp5navy
m249
m3
m4a1
tmp
g3sg1
flashbang
deagle
sg552
ak47
knife
p90
armor
nightvision
defuser
health
Admin Commands:
wc_list
- shows a list of all weapon names
- requires amx_cvar flag "g"
Cvars:
wc_on <0|1>
- is weapon chance enabled?
0=OFF
1=ON
wc_delay <seconds>
- delay to wait after player spawns to give weapons
- Note: The minimum delay is 0.3
wc_prefix <prefix>
- the prefix for all messages when it tells player's when a player received a weapon
- Example: wc_prefix "[CHANCE]"
wc_weaponcount <num>
- number of random weapons player can receive
Requirements:
AMX Mod X version 1.8.1 or higher
HamSandwich Module
Fakemeta Module
Cstrike Module
Fun Module
Notes:
For information about how to add weapons, just look in the weapon_chance.cfg
You MUST put the cvars in the weapon_chance.cfg for them to work.
If you do not add any weapons in the weapon_chance.cfg, none will be given.
In the weapon_chance.cfg, it describes how to add weapons.
Plugin API:
You can now add custom items for weapon chance from other plugins.
This can be useful for plugins that enhance existing weapons like FrostNades or Heat-Seeking grenades.
Attached is the weapon_chance.inc file which contains the functions used for these features.
The plugins which use this include must be afterweapon_chance.amxx in the plugins.ini.
Also, these plugins must be compiled locally with this include.
For an example on using the plugin API, you can see the wc_item_example.sma file attached.
For details on the functions, please read the include file first.
Any questions asked that can be answered with information from this post will be ignored.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw
I love you exolent!
Last edited by Exolent[jNr]; 03-30-2011 at 03:27.
Reason: Update to v2.8