Raised This Month: $2 Target: $400
 0% 

getting area..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 09-13-2005 , 04:45   getting area..
Reply With Quote #1

i haven't posted here for a long time, lol.

anyway,

If lets say, this small box

Code:
|---------------|
|                   |
|                   |
|                   |
|                   |
|---------------|
Is a huge map. And there is this person in X.


Code:
|---------------|
| X                |
|                   |
|                   |
|                   |
|---------------|
So now X talks. And I only want people in this area to hear the message (defined as Y).


Code:
|---------------|
| XY              |
|YYY             |
|                   |
|                   |
|---------------|
The square around X. How do I do that?
__________________
Plugins:
none

n0obie4life is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-13-2005 , 06:44  
Reply With Quote #2

Code:
public myFunc(id) {     new iPlayers[32],iNum,i;     get_players(iPlayers,iNum,"ac");     for(i = 0; i <= iNum; i++)     {         new x = iPlayers[i];         if(floatround(entity_range(id,x)) <= 1000)         {             // listen         }         else         {             // don't listen         }     } }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply


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


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