SA-MP Forums Archive
[FilterScript] AimData - Basic information while aiming. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] AimData - Basic information while aiming. (/showthread.php?tid=583383)



AimData - Basic information while aiming. - Swedky - 28.07.2015

Hello, it has been a while I don't post something because I was inactive on SA-MP. I recently remembered of a simple code I've done, when you aim at a player, it will show you basic information in TDs (as name, ID, health, armour, etc...) and if the player target is of your same team (useful for DM/TDM).
This is a code which I will not use in a future, so I'm releasing it.


How to use:
Just aim at player you want to get info, and TDs will be show. When you stop aim, it will hide.


Images:


In these images there two differences in the TDs: the bar that are low of the name will show if the player you're aiming is of your same team (green color) or not (red color).


Download:
Pastebin
MediaFire - File .tde, you will can edit the TDs with 'Zamaroht TextDraw Editor'. In the FS, at end of OnGameModeInit I wrote a code, you have to execute it and the file will sync with TD Editor.


Credits:
Zamaroht - For Zamaroht TextDraw Editor
Me - FilterScript.
Emmet_ & Onfroi: Questions about english


PS: you are free to edit the TDs as you want. Really isn't necessary show the name, ID, etc... You should change it.


Re: AimData - Basic information while aiming. - Onfroi - 28.07.2015

Nice script, this can be useful for a lot of things.
Maybe even make something like Watch Dogs


Re: AimData - Basic information while aiming. - Jakwob - 28.07.2015

Nice work, when another player walks between the player you are aiming at will the td hide and another new one made for the player who walked between you and the aimed player or will it just create a new td over the old one?


Re: AimData - Basic information while aiming. - meocahat - 28.07.2015

Hnmm Nice and good This will help me show VIP Level, Admin level, god mode or more


Respuesta: Re: AimData - Basic information while aiming. - Swedky - 28.07.2015

Quote:
Originally Posted by Jakwob
Посмотреть сообщение
Nice work, when another player walks between the player you are aiming at will the td hide and another new one made for the player who walked between you and the aimed player or will it just create a new td over the old one?
No, just re-update PlayerTD with new info (player you're aiming information)


Quote:
Originally Posted by Onfroi
Посмотреть сообщение
Nice script, this can be useful for a lot of things.
Maybe even make something like Watch Dogs
Quote:
Originally Posted by meocahat
Посмотреть сообщение
Hnmm Nice and good This will help me show VIP Level, Admin level, god mode or more
Thanks guys


Re: AimData - Basic information while aiming. - KILLER3 - 03.08.2015

Tested and works Good yob!!


Re: AimData - Basic information while aiming. - LazyB0y - 03.08.2015

Good Job


Re: AimData - Basic information while aiming. - SWAT4 - 03.08.2015

Nice bro!
thanks for releasing this


Re: AimData - Basic information while aiming. - Crayder - 03.08.2015

Though, technically you don't need to physically aim at the players with the new camera functions. I think it'd be a lot better than needing to aim. Just move your mouse to look at a player and boom, you got their info without aiming.

Just change GetPlayerTargetPlayer to GetPlayerCameraTargetPlayer.

Other than that, nice idea.


Re: AimData - Basic information while aiming. - Wizzy951 - 03.08.2015

Here I come with a suggestion, not entirely sure whether it's accomplishable or not, but if you could make it when a player is aiming with a sniper to show the distance to the target.