Raised This Month: $ Target: $400
 0% 

[Solved] About entity distance.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 11-07-2013 , 02:41   Re: [Help] About entity distance.
Reply With Quote #6

Solved, found a stock on internet.

PHP Code:
IsOriginTooClose(const Float:origin[3])
{
    new 
bool:findentFloat:ent_origin[3]
    
find false
    ent 
= -1
    
while((ent engfunc(EngFunc_FindEntityByStringent"classname"ClassnameTripmine)))
    {
        
pev(entpev_originent_origin)
        if(
get_distance_f(originent_origin) <= 30.0)
        {
            
find true
            
break;
        }
    }
    
    if(!
find) return 0;
    
    return 
1;

__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
 



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 23:18.


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