AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Hook buymenu out of buyzone (https://forums.alliedmods.net/showthread.php?t=318198)

dawid35456 08-19-2019 02:39

Hook buymenu out of buyzone
 
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! :D

Indarello 08-19-2019 08:31

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

Farbror Godis 08-19-2019 09:34

Re: Hook buymenu out of buyzone
 
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.


All times are GMT -4. The time now is 19:03.

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