View Single Post
Author Message
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Old 09-07-2012 , 00:05   [CS:GO] BuyZone Simulator
Reply With Quote #1

Hi,
I wrote a plugin that simulate buyzone on maps that don't have it, simply with this you can buy weapons on maps such as de_lake, de_bank de_safehouse etc.

Installation:
- Make sure you have installed SDKHooks extensions
- Download & put buyzonesimulator.smx into plugins folder
Plugin will start on maps without BuyZone.

Cvars:
sm_bzsimulator - Buyzone simulator state control. 0 - Disabled, 1 - Enabled on maps without buyzone, 2 - Enabled on all maps , default 1.
sm_bzsimulator_range - Simulated buyzone range, default 20.0, 0 = unlimited.

Notes:
- Plugin will create personal buyzone for each player every spawn, buyzone has limited range.
- If you want to reload plugin, do this twice or manually unload and load it, changes will take effect on new round.
- After mp_buytime, plugin will disable hooks and players will be unable to buy until next round
- Plugin will work only on maps without buyzone
- Plugin can try to prevent showing buy menu when USE key is pressed in buyzone range, but for that BLOCK_USEBUY compile switch must be set to 1 or 2. 1 = block on simulated buyzones, 2 = block on all. Version compiled with BLOCK_USEBUY 2 is attached in SECOND post (buyzonesimulator.smx)

Screenshots:
http://steamcommunity.com/sharedfile...&insideModal=0
http://steamcommunity.com/sharedfile...&insideModal=0
http://steamcommunity.com/sharedfile...&insideModal=0
Feedback always welcome.

You can test it on my server (below, first one )
Attached Files
File Type: sp Get Plugin or Get Source (buyzonesimulator.sp - 1443 views - 8.9 KB)
File Type: smx buyzonesimulator.smx (6.6 KB, 1571 views)
__________________

Last edited by KawMAN; 09-20-2012 at 16:35. Reason: update - ready to review
KawMAN is offline
Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN