Raised This Month: $ Target: $400
 0% 

Checking if player is near model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
L//
Senior Member
Join Date: Aug 2008
Location: Not found
Old 12-23-2008 , 12:49   Re: Checking if player is near model
Reply With Quote #2

Description

entity_range - Returns the distance between two entities.

Syntax

Float: entity_range ( ida, idb )

Engine code:

PHP Code:
new float:distance 500.0

public client_PreThink(id)
{
    if(
entity_range(idMY_ENT_ID) < distance)
    {
        
client_print(idprint_chat"My Stuff")
    }

L// is offline
Send a message via MSN to L//
 



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 09:15.


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