Raised This Month: $ Target: $400
 0% 

circle origin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
daniel46
Senior Member
Join Date: Dec 2011
Old 04-22-2013 , 07:00   circle origin
Reply With Quote #1

can i some how get some place in the map in circle shape and if player stand in this place then FUNCTION?
daniel46 is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 04-22-2013 , 07:19   Re: circle origin
Reply With Quote #2

Engine

PHP Code:
find_ent_in_sphere(start_from_ent, const Float:origin[3], Float:radius); 

Last edited by EpicMonkey; 04-22-2013 at 07:19.
EpicMonkey is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 04-22-2013 , 07:22   Re: circle origin
Reply With Quote #3

so i do

while( find_ent_in_sphere(start_from_ent, const origin[3], 10.0); )

yes?

and how do i check if player stand in this place?

Last edited by daniel46; 04-22-2013 at 07:46.
daniel46 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-22-2013 , 08:01   Re: circle origin
Reply With Quote #4

Try this:
Code:
is_user_in_sphere( id, Float:flOrigin[], Float:flRadius ) {     new iEnt = -1;         while( ( iEnt = engfunc( EngFunc_FindEntityInSphere, iEnt, flOrigin, flRadius ) ) )     {         if( iEnt == id )             return true;     }         return false; }
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
daniel46
Senior Member
Join Date: Dec 2011
Old 04-22-2013 , 09:50   Re: circle origin
Reply With Quote #5

Quote:
Originally Posted by hornet View Post
Try this:
Code:
is_user_in_sphere( id, Float:flOrigin[], Float:flRadius ) {     new iEnt = -1;         while( ( iEnt = engfunc( EngFunc_FindEntityInSphere, iEnt, flOrigin, flRadius ) ) )     {         if( iEnt == id )             return true;     }         return false; }
thanks working good
daniel46 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 10:58.


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