Check if a player is standing on opposite team spawn(buyzone)
How can i check this for both teams, to see is player on spawning area or in buyzone of opposite team (those two are pretty much the same), is there some simpler way that creating 2 zones with coordinates for every map and checking is player in that zone.
|
Re: Check if a player is standing on opposite team spawn(buyzone)
I think that you can detect them via Touch. You get the buyzone origins, store them and compare them when user touches them.
|
Re: Check if a player is standing on opposite team spawn(buyzone)
I get everything except this
Quote:
|
Re: Check if a player is standing on opposite team spawn(buyzone)
Ok i tried this with different approach by spawning a fake player of opposite team and check is that player in buyzone, and i dont unerstand why buyzone check always returns 0.
PHP Code:
|
Re: Check if a player is standing on opposite team spawn(buyzone)
Hi,
you could check in sphere for info_player_start (ct spawn) and info_player_deathmatch (t spawn). Greetz Leon |
Re: Check if a player is standing on opposite team spawn(buyzone)
Such a simple and easy solution, tnx for help.
|
| All times are GMT -4. The time now is 00:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.