[HELP] Player Aim At Entity
Hello. This is the current code to display the map name on the panels when the player gets closer to them. Can someone modify the code to display them if player is aiming at the entity named target_name ? Thanks!
Code:
public display_map_name(task_id) |
Re: [HELP] Player Aim At Entity
PHP Code:
|
Re: [HELP] Player Aim At Entity
Quote:
|
Re: [HELP] Player Aim At Entity
Quote:
|
Re: [HELP] Player Aim At Entity
Quote:
I recently used the native too and I do believe the distance should be in integer, you can refer to the native information. PHP Code:
|
Re: [HELP] Player Aim At Entity
Quote:
I did that for now, but it doesn't display the message on the panels, even if I put test on the emssage. Code:
public display_map_name(id) |
Re: [HELP] Player Aim At Entity
First of all, I am just trying to help here and if this still doesn't help, I am sorry.
I will explain here what I am trying to do. Firstly, catch what the 'id' is aiming, and save the aimed target into 'iEnt'. Then, I check in the while loop if the aimed index( iEnt ) is equal to the entity that the user wanted to aim( ent ). So, I check it( ent == iEnt ). If it's equal then show the HUD message that you wanted to show to the user. I might be wrong but any improvement or rectification towards my code is greatly welcomed. Thank you.. PHP Code:
|
Re: [HELP] Player Aim At Entity
Quote:
|
Re: [HELP] Player Aim At Entity
Quote:
Code:
public display_map_name( id ) |
Re: [HELP] Player Aim At Entity
Code:
public display_map_name( i_Client ) |
| All times are GMT -4. The time now is 17:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.