Raised This Month: $ Target: $400
 0% 

Entity Use (Like a button)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
milutinke
AlliedModders Donor
Join Date: Jun 2012
Location: Serbia
Old 10-22-2015 , 08:45   Re: Entity Use (Like a button)
Reply With Quote #1

You can use: entity_range( iEntityId, iPlayer )
That will solve the problem.

Example:
Code:
if( entity_range( iEntityId, iPlayer ) <= 30 ) {
//Activate button
}

Last edited by milutinke; 10-22-2015 at 08:47.
milutinke is offline
Send a message via Skype™ to milutinke
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 22:18.


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