How do I Display Rank Above Players Head
#1

I have ZCMD and it's a rank system but How would I display the players rank about his/her head or name?

Here is the actual code:

Код:
strcat(tmp, rank);
    SendClientMessage(playerid, COLOR_WHITE, tmp);
    format(string, sizeof(string),"Name:%s - Your Current Score: "#COL_GREEN#"%d",Pname, score);
    SendClientMessage(playerid, COLOR_WHITE, string);
    return 1;
I've seen this many times in servers...
All I want is A rank like "Major" Above the players Name
Reply
#2

By using https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

Ok I see
Код:
public OnPlayerConnect(playerid)
{
    new Text3D:label = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    return 1;
}
Now what about rank instead of "Hello, I am new here!"?
Reply
#4

The ranks depends on your admin levels ? or something else ?
Reply
#5

No It's ZCMD so it's just military ranks. And the ranks are apart of a filterscript too...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)