Hi guys,today i was scripting a filterscript but i was facing a weird problem,when i use the filterscript in my freeroam gamemode,it works fine/shows the labels but when i use it in other gamemodes (Bare),it does not.I first thought its streamer so i tried adding streamer include and plugin but still it didn't work.
Code:
new str[50];
format(str, sizeof(str), "%s(%d)", GetName(playerid), playerid);
NameTag[playerid] = Create3DTextLabel(str, NAMETAG_COLOR, 0, 0, 0, 40.0, 1);
Attach3DTextLabelToPlayer(NameTag[playerid], playerid, 0.0, 0.0, 0.2);
new label[80];
format(label, sizeof(label), "Health: %f\nDamage: %f", STARTING_HEALTH,STARTING_DAMAGE);
StatsLabel[playerid] = Create3DTextLabel(label, LABEL_COLOR, 0.0, 0.0, 0.0, 40.0, 1);
Attach3DTextLabelToPlayer(StatsLabel[playerid], playerid, 0.0, 0.0, -1);