18.05.2016, 16:41
For the weapon: You don't need to detect for every armed weapons, just simply check if the weaponid is not fist or other melee weapons inside the switch except armed ones then show the textdraw. Using switch is faster than using if and else.
For 3D textlabel, you need to create per-player 3Dtextlabel.
For 3D textlabel, you need to create per-player 3Dtextlabel.
Код:
new Text3D: Label[MAX_PLAYERS]; // Global var Label[playerid] = Create3DTextLabel(...); // Creating the label Attach3DTextLabelToPlayer(playerid, Label[playerid], ...); // Attaching Delete3DTextLabel(Label[playerid]); // Deleting