View Single Post
kumpu
Junior Member
Join Date: Feb 2015
Location: Germany
Old 02-24-2015 , 00:52   Re: [Tutorial] Creating brush entities
Reply With Quote #61

Hello!
Trying to write a plugin that add's buyzones to the map if there are none.
Now I have 2 problems:
- I could not figure out a good way to get the team spawn coordinates to teleport the buyzone to. Right now I'm looping through all clients to get a t and ct client's position.
- It doesn't work. No errors, the buyzone just doesn't show up. With bots i got the following console message:
Code:
pos0: 632.000000, pos1: 267.000000, pos2: -295.000000(debug msg by plugin)
CT bot spawned outside of a buy zone (632, 267, -295)
As you can see, I already tried to move the 3. coordinate, because it seemed to be > than the bot spawn coordinate otherwise - no success.

My Code:
Spoiler

Also attached the .sp because formatting is nice.
Can someone please help me a bit? (sorry for reviving an old thread)
Attached Files
File Type: sp Get Plugin or Get Source (AddBuyzone.sp - 336 views - 2.7 KB)
kumpu is offline