Raised This Month: $ Target: $400
 0% 

Weapon Chance by Exolent


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   v3x (159)
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-02-2008 , 00:14   Weapon Chance by Exolent
Reply With Quote #1

Weapon Chance
Version 2.8
by Exolent



Introduction:
  • 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 after weapon_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.
Attached Files
File Type: cfg weapon_chance.cfg (2.5 KB, 4824 views)
File Type: sma Get Plugin or Get Source (weapon_chance.sma - 8010 views - 19.8 KB)
File Type: inc weapon_chance.inc (1.9 KB, 3558 views)
File Type: sma Get Plugin or Get Source (wc_item_example.sma - 5973 views - 739 Bytes)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 03-30-2011 at 03:27. Reason: Update to v2.8
Exolent[jNr] is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:36.


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