SA-MP Forums Archive
Team 3D Text Labels? - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Team 3D Text Labels? (/showthread.php?tid=156543)



Team 3D Text Labels? - VictorMartinez - 23.06.2010

I'm adding tags onto people that say the users rank. I'm wondering is it possible to make it to where you can only see your own team's tags? Would using...

CreatePlayer3DTextLabel (to all of your team only)
Update3DTextLabelText (How would I update them properly for each player)
Attach3DTextLabelToPlayer (how would I attach them to the correct people)


work?

Thank you

EDIT: Man I am really confused


Re: Team 3D Text Labels? - VictorMartinez - 23.06.2010

Ok after 5 minutes of total darkness I think I got it


Код:
//OnPlayerSpawn
Foreach...
  if(team = MYTEAM)
  Create3DLabel;
  if(rank = 1)
  Update3DLabel //to rank 1
  if(rank = 2)
  Update3DLabel //to rank 2
  //etc
  Attach3DLabel(playerid);
And for updates... rank up, player leaves and someones else joins....

How do I update them?


Re: Team 3D Text Labels? - NiiRV4N4 - 23.06.2010

Set a timer, every second it checks if they get a rank, if they do, you update the 3d text label.


Re: Team 3D Text Labels? - (SF)Noobanatior - 23.06.2010

... this only to gang thing i think i can do
but where is you rank stored?
and what is max players on your server?


Re: Team 3D Text Labels? - NiiRV4N4 - 23.06.2010

Quote:
Originally Posted by (SF)Noobanatior
...
Stop posting useless stuff.


Re: Team 3D Text Labels? - (SF)Noobanatior - 23.06.2010

Quote:
Originally Posted by NiiRV4N4
Quote:
Originally Posted by (SF)Noobanatior
...
Stop posting useless stuff.
Stop posting useless stuff. mine was a edit im try to help and decided my idea isnt ideal so i removed is
Quote:
Originally Posted by (SF)Noobanatior
... this only to gang thing i think i can do
but where is you rank stored?
and what is max players on your server?



Re: Team 3D Text Labels? - VictorMartinez - 23.06.2010

for easier scripting i just decided to make all tags visible to everyone. thanks though