Raised This Month: $84 Target: $400

[Tutorial] Creating brush entities

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Junior Member
Join Date: Feb 2015
Location: Germany
Old 02-24-2015 , 00:52   Re: [Tutorial] Creating brush entities
Reply With Quote #32

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:
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:

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 - 329 views - 2.7 KB)
kumpu is offline

Thread Tools
Display Modes

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 04:39.

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