Give player a radius?
Hi, how would I give a player a radius?
For example: I have 2 players, one player has a radius. When the other player steps into the first players radius it will say "You are in the radius". I think I find the origin of both players then calculate the distance or something? Please someone help me :)! |
Re: Give player a radius?
theres a couple differant ways to do it
Code:
Code:
|
Re: Give player a radius?
try my function:
Code:
|
Re: Give player a radius?
why return 0 ? return and return 0 are ==
|
Re: Give player a radius?
The correct way of using this function is:
a should be in a loop of all players like this: Code:
You should remove the console_print out of the inradius function. |
Re: Give player a radius?
well if your going to do that then you might as well use
Code:
finding all indexs of the players in the rduius |
Re: Give player a radius?
Hi, here is the code i'm using and it is hooked to a set_task. It doesn't do what its supposed to though. Can anyone fix it for me?
Code:
|
Re: Give player a radius?
im not exactly sure what it is your tryign to do . please explaine why your setting solid and not solid ? heres a function from my follwo the bomb plugin .
Code:
|
Re: Give player a radius?
I'm trying to set it so when players are in so much distance of each other they will become not solid so they can walk through each other.
|
Re: Give player a radius?
ah ok i see what your doing now . Well above is the function from my follow the bomb plugin which uses all of those types of functions . You should look at my plugin to see how it works . your function is a horable mess , with a for in a for .
|
| All times are GMT -4. The time now is 06:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.