01.06.2017, 10:21
I'm trying to do something like RC-RP's like, it looks quite cool and I said why not grabbing the idea of my own.
That's basically when they're connected:
Now basically, it's going under OnPlayerConnect, and I disabled the samp nametag, so there will be no armour or health bars, even though, I want to make it stock that I can grab or change it's colors everytime. like if I wanna call it in "/aduty" command and whenever admin on duty it will update the color of the textlabel, but I'm lost and I tried few ways and no success.
That's basically when they're connected:
Quote:
GetPlayerName(playerid, PlayerInfo[playerid][pUsername], MAX_PLAYER_NAME); format(PlayerInfo[playerid][pName], MAX_PLAYER_NAME, "%s", GiveNameSpaceEx(PlayerInfo[playerid][pUsername])); NameTag[playerid] = Create3DTextLabel(PlayerInfo[playerid][pName], 0xFFFFFFFF, 0, 0, 0, NAME_DRAWDISTANCE, 0, 1 ); Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.2); GiveNameSpace(PlayerInfo[playerid][pName]); |