Raised This Month: $ Target: $400
 0% 

What is this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YakumoHiratsuhi
Veteran Member
Join Date: Dec 2010
Location: Dreαmlαnd.
Old 05-07-2013 , 15:07   Re: What is this?
Reply With Quote #1

Thanks for posting the function, here's what i figured out.
entity_range() returns the distance between two entities in a float datatype, i really don't know if this function checks if the two ents are valid, ignoring the player you should check if ferencere or distancemax entity is valid before doing anything.

PHP Code:
if(entity_range(idferencere) > maxdistance && entity_range(iddistancemax) > maxdistancem)
->
if(is_valid_ent(ferencere) && is_valid_ent(distancemax) && entity_range(idferencere) > maxdistance && entity_range(iddistancemax) > maxdistancem
not pretty sure since idk all the part of the global code that is used there.
__________________
"Podra parecer ridiculo o imposible, pero este es el camino que seguimos los verdaderos hombres, si hay un muro en el camino, lo derribamos, si no hay camino, haremos uno, con nuestras propias manos, porque el magma de nuestro corazón arde en llamas."

Last edited by YakumoHiratsuhi; 05-07-2013 at 15:10.
YakumoHiratsuhi is offline
Send a message via MSN to YakumoHiratsuhi
Reply



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:48.


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