Creating Buyzones
How would you create a buyzone in a certain spot that can be used? Let's just say for example in a spot where a person spawns, thus something like {-16.0,-16.0,-36.0}/{16.0,16.0,36.}.
I've tried checking if the person is next to it and forcing them to touch, but nothing is happening. I've also tried forcing the status icon, but that also doesn't work. Here's my code for creating it so far: Code:
Very messy, I know. I also tried the post think thing: Code:
It says "found buyzone" when you're close to one, but it doesn't let you buy. |
Re: Creating Buyzones
Just a couple notes:
The buyzones are made during plugin_precache, and "Team + 1" is because it is passed as a 0 or 1, with 0 being terrorist and CT being 1. |
Re: Creating Buyzones
this succesfully creates a buyzone at spawns. perhaps you can manipulate it. http://emp`.ampaste.net/6148
|
Re: Creating Buyzones
Quote:
|
Re: Creating Buyzones
I did this before. Setting the size didnt work for me but setting the absmin/max worked.
You can also look at this plugins: http://forums.alliedmods.net/showthread.php?p=358059 http://forums.alliedmods.net/showthread.php?p=365040 |
Re: Creating Buyzones
Code:
|
Re: Creating Buyzones
Thanks, it works.
|
Re: Creating Buyzones
If want to let player can buy at any spawn point only
just remove all "func_buyzone" when "func_buyzone" create then engine will auto support that. |
Re: Creating Buyzones
Quote:
|
| All times are GMT -4. The time now is 22:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.