Raised This Month: $51 Target: $400
 12% 

Forbidden weapons [ Updated : 08/01/2008 ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Orangutanz (13)
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-04-2007 , 01:32   Forbidden weapons [ Updated : 08/01/2008 ]
Reply With Quote #1

Forbidden weapons
( Last update : 08/01/2008 )


Description :
- - - - - - - - -
This plugin allows you to specify what weapons will be forbidden to be used in few ways.

Features :
- - - - - - - -
  • Using cvars to define easily forbidden weapons.
  • Forbidden weapons can be set per team.
  • Automatic dropping when you get a forbidden weapon ( at buying, given by map, etc.. )
  • Immediate removing when a forbidden weapon is dropped.
  • Not allowing to pick up forbidden weapons on the ground.
  • Multilingual plugin. (°)

    (°) See /amxmodx/data/lang/forbidden_weapons.txt file.

Requirement :
- - - - - - - - - - -
  • Cs 1.6 / Cz
  • AMXX 1.7x or highly.

Commands :
- - - - - - - -
  • amx_fw_stop : Stop plugin properly.
  • amx_fw_start : Start plugin stopped with the command 'amx_fw_stop' command.

Cvars :
- - - - -
  • fw_team_t <weapon1,weapon2,etc..>
    Specifies the weapons to restrict to the 'T' team.
  • fw_team_ct <weapon1,weapon2,etc..>
    Specifies the weapons to restrict to the 'CT' team.
    -----

    Here a full weapons names list :
    - Common : glock18, usp, p228, deagle, m3, xm1014, mp5navy, tmp, p90, scout, awp, m249, hegrenade, flashbang, smokegrenade.
    - 'CT' weapons : fiveseven, ump45, m4a1, sg550, aug, famas
    - 'T' weapons : elite, mac10, galil, ak47, sg552, g3sg1
    The value by default : "" . ( it means empty so all weapons are allowed )
    If 'fw_team_t' and 'fw_team_ct' cvars are empty, the plugin will be disabled.


    Example :

    - You want to restrict only 'deagle' and "He" to the T team : fw_team_t "deagle,hegrenade"
    - You want to restrict only 'm4a1', 'ak47' and 'smokegrenade' to the CT team : fw_team_ct "m4a1,ak47,smokegrenade"


  • fw_mode <flags>
    Specifes mode to enable.

    The flags are additives.
    "a" : Automatic dropping when you get forbidden weapon ( at buying, given by map, etc.. )
    "b" : Immediate removing when forbidden weapon is dropped.
    "c" : Not allowing to pick up weapons on the ground.
    The value by default : "abc".

  • fw_chat_delay <delay>
    Specifies a delay in seconds between each message when you're trying to pick up the same forbidden weapon on the ground.
    ( No need to flood the chat )

    The value by default : "3".

  • fw_log_enabled <0|1>
    Enable log to check what weapons have been loaded.
    The value by default : "1".

Colored text :
- - - - - - - - - - -
Colored messages are supported in chat. You may want to customize color.
There are 3 string replace characters.
!g : green color
!t : team color ( T -> Red ; CT -> Blue )
!n : regular color ( yellow by default )
See /amxmodx/data/lang/forbidden_weapons.txt file.


Note : This plugin is a request.
Note : Feel free to correct my poor english.
Attached Files
File Type: sma Get Plugin or Get Source (forbidden_weapons.sma - 6062 views - 24.2 KB)
File Type: txt forbidden_weapons.txt (1.7 KB, 2338 views)
__________________

Last edited by Arkshine; 01-08-2008 at 09:51. Reason: Updated. v1.1.2
Arkshine 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 22:36.


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