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(id, MY_ENT_ID) < distance)
{
client_print(id, print_chat, "My Stuff")
}
}