Player Labels (/pl - good for spectating and 3D player stats!) -
Gammix - 08.05.2015
Player Labels
This is similar feature to /dl (a default system command by SA-MP to view all streamed vehicles statistics), but for players. The labels will display you statistics of the streamed players to you in a 3D text label attached to them.
This can be used while you are spectating. To disable labels on every player, you can also enable label for just a single player via
/pl <playerid/name>
Statistics included in labels:
Code:
[id, health, armour, ping,
team, money, score,
distance away from you,
weapon name, weapon's ammo,
interior id, virtual world id,
position including facing angle]
Download
GitHub:
https://github.com/Agneese-Saini/SA-...ts/plabels.pwn
Requirements
Sscanf2 Plugin:
https://sampforum.blast.hk/showthread.php?tid=602923
Streamer Plugin:
https://sampforum.blast.hk/showthread.php?tid=102865
Foreach Include:
https://sampforum.blast.hk/showthread.php?tid=570868
I-ZCMD Include:
https://sampforum.blast.hk/showthread.php?tid=576114
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Ghazal - 08.05.2015
That's very nice.
+REP
Re: Player Labels (/pl - good for spectating and 3D player stats!) - Emmet_ - 08.05.2015
Nice. I like the idea.
Just in case it might be useful to you, the hex color for the /dl text is 0x358BD4FF. So you can make the player labels the same color aswell.
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
LMaxCo - 08.05.2015
Wow, that's cool idea
REP+
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
SkyFlare - 08.05.2015
NICE, I like this one, simple and really good for spectating like you mentioned
Maybe you could add in when a player enters a car
the car health shows and car id etc
so that you dont need to do /dl
would be a nice feature when spectating
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
LazyB0y - 08.05.2015
Great Work Nice
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Luis- - 08.05.2015
This could come in handy. Nice work.
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
giorgosdim12 - 08.05.2015
Nice job!
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Gammix - 08.05.2015
Quote:
Originally Posted by SkyFlare
NICE, I like this one, simple and really good for spectating like you mentioned
Maybe you could add in when a player enters a car
the car health shows and car id etc
so that you dont need to do /dl
would be a nice feature when spectating
|
Thats not a good idea. You can always use /dl and /pl together(just ignore labels collapsing)!
Quote:
Originally Posted by Emmet_
Nice. I like the idea.
Just in case it might be useful to you, the hex color for the /dl text is 0x358BD4FF. So you can make the player labels the same color aswell.
|
No, i would be collapsing if the colors are same. BTW, i you can set it in
LABEL_COLOR
AW: Player Labels (/pl - good for spectating and 3D player stats!) -
Tommyx3 - 08.05.2015
I think you missed something..
What if a new player connects ?
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Gammix - 08.05.2015
Fixed that and a critical BUG, actually i never declared labels for multiple players. It was like when someone do /pl, it would work for only one player!
Re-download the new version!
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
$$inSane - 12.05.2015
Very nice!
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Michael B - 12.05.2015
I'm going to use this for sure! Thanks!
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
benjaminjones - 12.05.2015
I like it, well done.
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
X337 - 12.05.2015
Nice job mate
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
SkyFlare - 13.05.2015
Quote:
Originally Posted by Gammix
Thats not a good idea. You can always use /dl and /pl together(just ignore labels collapsing)!
|
Alright then, do you mind if I use this for my server I am creating, I want to edit it quite a lot, just as a spectating feature, I want to put all the other things that are missed in as well.
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Gammix - 13.05.2015
Quote:
Originally Posted by SkyFlare
Alright then, do you mind if I use this for my server I am creating, I want to edit it quite a lot, just as a spectating feature, I want to put all the other things that are missed in as well.
|
Its already open sourced (people release here for other people to use); Do your editing!
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Vaishnav - 13.05.2015
does it show all player weapons ? at one time ?
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Gammix - 13.05.2015
Quote:
Originally Posted by Vaishnav
does it show all player weapons ? at one time ?
|
No, only the weapon player has in his/her hand.
BTW, If i had to display all weapons with their ammo, it would have been a long string and a long label (which will be annoying).
Re: Player Labels (/pl - good for spectating and 3D player stats!) -
Crayder - 13.05.2015
Btw, just noticed IG... The US Dollar Sign, '$', goes before the amount of cash, not after.
Yours: 0$
IRL: $0.00