Raised This Month: $51 Target: $400
 12% 

detecting nearby players near client


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
labelmaker
Member
Join Date: Mar 2009
Location: Kentucky USA
Old 03-14-2009 , 11:22   detecting nearby players near client
Reply With Quote #1

im still looking around but can someone point me to some links to how i can set this up. I want to detect others nearby or maybe within the clients view. Im going to bunnyhop ppl now that ive got that working, loads of fun.
labelmaker is offline
Send a message via Skype™ to labelmaker
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Old 03-14-2009 , 11:30   Re: detecting nearby players near client
Reply With Quote #2

I think in scripting/funcommands/timebomb.sp you can find something like that

or look to Entity touch hook in Hacks extesion
plugin using touch hook http://forums.alliedmods.net/showthread.php?p=571224
__________________
KawMAN is offline
Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
MikeJS
Senior Member
Join Date: Nov 2008
Old 03-14-2009 , 11:42   Re: detecting nearby players near client
Reply With Quote #3

Loop through everyone in the server, get their positions then use GetVectorDistance.
__________________
MikeJS is offline
labelmaker
Member
Join Date: Mar 2009
Location: Kentucky USA
Old 03-14-2009 , 11:50   Re: detecting nearby players near client
Reply With Quote #4

thx mike

Last edited by labelmaker; 03-15-2009 at 13:47.
labelmaker is offline
Send a message via Skype™ to labelmaker
Reply



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 01:41.


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