SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 28/10/2018, 09:00 AM   #1
Infin1ty
Banned
 
Join Date: Feb 2018
Posts: 118
Reputation: 52
Default nametags.inc - basic custom nametags

nametags.inc - basic custom nametags

nametags.inc was written to be used with my script. I decided to release it just because I could - besides, it was completely independent of the script and could function without it, so why not?
It's like the normal SAMP nametag, just using a 3d text label instead. This does not eliminate the underscore from a player's name.

Dependencies:
  • streamer
  • y_hooks

Notes:
  • If you are already setting the player's color to -1 under OnPlayerConnect OR you're using fixes.inc you can get rid of lines 85 - 90.
  • If you want to modify the draw distance for the nametags you can define NT_DISTANCE in your script with a value below or greater than 20.0 before you include nametags.inc.
  • You should probably include this after all the dependencies.
  • You can work on this and modify it as you wish. Just keep the credits in, will you?
  • Excuse my pretty shit thread, its my first time releasing something - even though I've been developing for around 2 years now.

Downloads:
GitHub

Last edited by Infin1ty; 28/10/2018 at 03:56 PM.
Infin1ty is offline   Reply With Quote
Old 28/10/2018, 11:25 AM   #2
iFoxTheRoleplayer
Big Clucker
 
Join Date: Aug 2014
Posts: 123
Reputation: 18
Default Re: nametags.inc - basic custom nametags

Nice, rep + xx
iFoxTheRoleplayer is offline   Reply With Quote
Old 28/10/2018, 03:58 PM   #3
Infin1ty
Banned
 
Join Date: Feb 2018
Posts: 118
Reputation: 52
Default Re: nametags.inc - basic custom nametags

Update v0.2:
  • Got rid of the need for the strlib dependency.
  • Got rid of the need for foreach.
  • Script no longer destroys the nametags under OnGameModeExit as Streamer already does that (thanks TommyB!)
Infin1ty is offline   Reply With Quote
Old 29/10/2018, 04:14 PM   #4
waysemir
Little Clucker
 
Join Date: Oct 2014
Posts: 40
Reputation: 3
Default Re: nametags.inc - basic custom nametags

Is it disappear?
waysemir is offline   Reply With Quote
Old 29/10/2018, 04:34 PM   #5
waysemir
Little Clucker
 
Join Date: Oct 2014
Posts: 40
Reputation: 3
Default Re: nametags.inc - basic custom nametags

Any screenshot?
waysemir is offline   Reply With Quote
Old 29/10/2018, 05:01 PM   #6
BigETI
Banned
 
Join Date: Mar 2010
Location: Germany
Posts: 1,053
Reputation: 359
Default Re: nametags.inc - basic custom nametags

not a sampctl package REEEEEEEEEE
BigETI is offline   Reply With Quote
Old 29/10/2018, 05:17 PM   #7
CantBeJohn
Big Clucker
 
CantBeJohn's Avatar
 
Join Date: Oct 2016
Posts: 107
Reputation: 15
Default Re: nametags.inc - basic custom nametags

You should update the GitHub's readme since you removed strlib and foreach as dependencies.
CantBeJohn is offline   Reply With Quote
Old 29/10/2018, 06:30 PM   #8
Mellnik
Gangsta
 
Mellnik's Avatar
 
Join Date: Dec 2011
Location: Paradise Falls, CAℕADA
Posts: 771
Reputation: 373
Default Re: nametags.inc - basic custom nametags

All this does is creating a text label.
Mellnik is offline   Reply With Quote
Old 29/10/2018, 11:08 PM   #9
solstice_
Gangsta
 
solstice_'s Avatar
 
Join Date: Feb 2016
Location: basement
Posts: 543
Reputation: 68
Default Re: nametags.inc - basic custom nametags

wow cool friend
solstice_ is offline   Reply With Quote
Old 30/10/2018, 01:35 PM   #10
JackDeen
Little Clucker
 
Join Date: Oct 2017
Posts: 2
Reputation: 0
Default Re: nametags.inc - basic custom nametags

This just creates a text label with the name, it doesnt show health and armor.

Also the code looks like it was edited from https://forum.sa-mp.com/showthread.php?t=651314
JackDeen is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Custom Player Nametags Nyzenic Filterscripts 28 03/05/2019 10:58 PM
Nametags ikbenremco Scripting Help 0 05/05/2012 07:58 AM
[HELP] NAMETAGS suwithy04 Help Archive 7 17/09/2010 08:10 PM
NPC nametags kazai Help Archive 2 16/10/2009 11:17 AM
[Help] NameTags joeri55 Help Archive 18 14/09/2009 06:03 PM


All times are GMT. The time now is 10:57 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.