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

[CS][Forward] client_buy


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-06-2011 , 03:20   [CS][Forward] client_buy
Reply With Quote #1

client_buy Forward



.: Description :.


The plugin offers a forward that allow you to hook any buy attempt.



.: Forward :.

client_buy < player index > < item type >

Returns : PLUGIN_CONTINUE , PLUGIN_HANDLED


.: Item indexes :.

For weapons, index is the weapon type, so CSW_AK47 or CSW_MP5NAVY for example.
For vest and helmet, this is amxx defines : CSW_VEST and CSW_VESTHELM.
I had to introduce new indexes for the plugin, here they are :
  • CSW_DEFUSER : defusal kit
  • CSW_NVGS : nightvision
  • CSW_SHIELD : shield
  • CSW_PRIMAMMO : primary ammo
  • CSW_SECAMMO : secondary ammo
Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (client_buy.sma - 3099 views - 7.7 KB)
File Type: inc cl_buy.inc (256 Bytes, 1584 views)
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 07-06-2012 at 21:10.
ConnorMcLeod 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 18:28.


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