Trying to make a nametag system - 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)
+--- Thread: Trying to make a nametag system (
/showthread.php?tid=289497)
Nametag System -
Knappen - 11.10.2011
I'm trying to make a nametag system, like that it doesn't show a players name before you've done /shake.
I've basically finished it, all I need is a way to make a function or whatever.
Something like this
pawn Код:
new friends;
friends =
NameTagInfo[playerid][Friend1],
NameTagInfo[playerid][Friend2],
NameTagInfo[playerid][Friend3],
NameTagInfo[playerid][Friend4],
NameTagInfo[playerid][Friend5],
NameTagInfo[playerid][Friend6],
NameTagInfo[playerid][Friend7],
NameTagInfo[playerid][Friend8],
NameTagInfo[playerid][Friend9],
NameTagInfo[playerid][Friend10],
NameTagInfo[playerid][Friend11],
NameTagInfo[playerid][Friend12],
NameTagInfo[playerid][Friend13],
NameTagInfo[playerid][Friend14],
NameTagInfo[playerid][Friend15],
NameTagInfo[playerid][Friend16],
NameTagInfo[playerid][Friend17],
NameTagInfo[playerid][Friend18],
NameTagInfo[playerid][Friend19],
NameTagInfo[playerid][Friend20],
NameTagInfo[playerid][Friend21],
NameTagInfo[playerid][Friend22],
NameTagInfo[playerid][Friend23],
NameTagInfo[playerid][Friend24],
NameTagInfo[playerid][Friend25],
NameTagInfo[playerid][Friend26],
NameTagInfo[playerid][Friend27],
NameTagInfo[playerid][Friend28],
NameTagInfo[playerid][Friend29],
NameTagInfo[playerid][Friend30];
I know this can't be done in this way, just trying to show my point.
After that I want to do something like this,
pawn Код:
ShowPlayerNameTagForPlayer(playerid, friends, 1);
Can this be done in any way?
If anyone has any tips doing this kind of thing, please tell me, because I think I'm doing it in a really stupid way!
Everything is MySQL based by the way, and it will load all the friends when a player logs in.
When a player does /shake, it automatically adds the players name into a MySQL table.
Thanks for all the answers!
Re: Trying to make a nametag system -
Knappen - 11.10.2011
bump