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

[CS:GO] Both teams player can use buyzone on Both teams spawn point?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 11-02-2015 , 15:22   [CS:GO] Both teams player can use buyzone on Both teams spawn point?
Reply With Quote #1

Hello.

I want "CT can use T's buyzone" and "T can use CT's buyzone" (not everywere)
How to do this?

I think "func_buyzone", This has no team distinction.
SHUFEN is offline
Send a message via Skype™ to SHUFEN
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 11-02-2015 , 16:00   Re: [CS:GO] Both teams player can use buyzone on Both teams spawn point?
Reply With Quote #2

https://developer.valvesoftware.com/wiki/Func_buyzone - I believe that func_buyzone has a netprop for that.

So just find/hook spawn your desired buyzone and edit netprop.
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 11-03-2015 , 16:38   Re: [CS:GO] Both teams player can use buyzone on Both teams spawn point?
Reply With Quote #3

I tried this for change T buyzone to CT buyzone.

Quote:
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <sdkhooks>

public OnEntityCreated(entity, const String:classname[])
{
if(StrEqual(classname, "func_buyzone"))
{
SDKHook(entity, SDKHook_Spawn, BuyZone);
}
}

public BuyZone(entity)
{
new TeamNum = GetEntProp(entity, Prop_Send, "m_iTeamNum");
if(TeamNum == 2)
{
SetEntProp(entity, Prop_Send, "m_iTeamNum", 3);
}
}
but its not worked. Will help me?
thx in advance.
SHUFEN is offline
Send a message via Skype™ to SHUFEN
Reply



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 01:03.


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