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

Hook buymenu out of buyzone


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dawid35456
Junior Member
Join Date: Mar 2012
Old 08-19-2019 , 02:39   Hook buymenu out of buyzone
Reply With Quote #1

Hi, as I wrote in the title - is there a possibility to hook buy menu when player is out of buyzone?
Waiting for any sugestions!
dawid35456 is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 08-19-2019 , 08:31   Re: Hook buymenu out of buyzone
Reply With Quote #2

How you can hook buymenu if player cant open it out of buyzone?
GetEntProp(client, Prop_Send, "m_bInBuyZone")

Last edited by Indarello; 08-19-2019 at 08:35.
Indarello is offline
Farbror Godis
AlliedModders Donor
Join Date: Feb 2016
Old 08-19-2019 , 09:34   Re: Hook buymenu out of buyzone
Reply With Quote #3

PHP Code:
AddCommandListener(CmdListener_BuyMenu"buymenu"); 
Then in the callback you can check if the client is in the buyzone or not using Indarello's example.
__________________

Last edited by Farbror Godis; 08-19-2019 at 09:34.
Farbror Godis is offline
Reply


Thread Tools
Display Modes

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 11:32.


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