Raised This Month: $ Target: $400
 0% 

Check if player is in radius of entity?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-31-2007 , 15:39   Re: Check if player is in radius of entity?
Reply With Quote #4

Fakemeta !?
Code:
#include <fakemeta>

new Float:radius = 300.0;
new ent = -1;

    while((ent = engfunc(EngFunc_FindEntityInSphere, ent, PlayerOrigin, radius)) != 0)
    {
        pev(ent, pev_classname, entclass, 32)
        if(contain(entclass, "info_") != 0)
        {
             // found entity ;)
        }
    }
__________________
regalis 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 22:24.


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