Jump to content

[Release] [CPC] Name Tags


ToejaM

Recommended Posts

way to necro this thread man... look at the code

//Created by [CPC] ToejaM - www.CPC-Gaming.eu
Waituntil{!isNull player};

while{true} do {
sleep 0.5;
if((isPlayer cursorTarget) && (alive cursorTarget) && (side cursorTarget == side player) && (player distance cursorTarget < 5)) then {
_tag = name cursorTarget;
cutText [_tag,"PLAIN",0.1];

} else {
};
};

pretty small and simple, you can modify it however you want, only one way to find out!

Link to comment
Share on other sites

  • 1 year later...

I have made an addition to your script however I don't know for sure if it will work (haven't tested on my server yet), however the idea of it is to add a tag such as [Hero] or [Bandit] in front of the players name if their humanity is +/- 15000. 

Waituntil{!isNull player};
while{true} do {
	sleep 0.5;
	if((isPlayer cursorTarget) && (alive cursorTarget) && (side cursorTarget == side player) && (player distance cursorTarget < 15)) then {
		if player getVariable "humanity" > 15000 then {
			_targetHumanity == "Hero"
		} else {
			if player getVariable "humanity" < -15000 then {
				_targetHumanity == "Bandit"
			};
		} else {
			if (player getVariable "humanity" >-15000) && (player getVariable "humanity" < 15000) then {
				_name = name cursorTarget;
			};
		};
		_name = "["_targetHumanity"]" + name cursorTarget;
		cutText [_name,"PLAIN",0.1];
	} else {};
};

 

Link to comment
Share on other sites

21 hours ago, braydenrox55 said:

I have made an addition to your script however I don't know for sure if it will work (haven't tested on my server yet), however the idea of it is to add a tag such as [Hero] or [Bandit] in front of the players name if their humanity is +/- 15000. 


Waituntil{!isNull player};
while{true} do {
	sleep 0.5;
	if((isPlayer cursorTarget) && (alive cursorTarget) && (side cursorTarget == side player) && (player distance cursorTarget < 15)) then {
		if player getVariable "humanity" > 15000 then {
			_targetHumanity == "Hero"
		} else {
			if player getVariable "humanity" < -15000 then {
				_targetHumanity == "Bandit"
			};
		} else {
			if (player getVariable "humanity" >-15000) && (player getVariable "humanity" < 15000) then {
				_name = name cursorTarget;
			};
		};
		_name = "["_targetHumanity"]" + name cursorTarget;
		cutText [_name,"PLAIN",0.1];
	} else {};
};

 

 

you realise the age of this post right?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...