#3

Quote:
Originally Posted by Sjn
Посмотреть сообщение
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.

Код:
new Text3D: Label[MAX_PLAYERS]; // Global var

Label[playerid] = Create3DTextLabel(...); // Creating the label

Attach3DTextLabelToPlayer(playerid, Label[playerid], ...); // Attaching

Delete3DTextLabel(Label[playerid]); // Deleting
Thanks, but how can I create a switch like that? I never created any switches and wiki didn't make me smarter too.
Reply


Messages In This Thread
Help - by GoldenLion - 18.05.2016, 16:31
Re: Help - by Sjn - 18.05.2016, 16:41
Re: Help - by GoldenLion - 18.05.2016, 17:03
Re: Help - by Sjn - 18.05.2016, 17:09
Re: Help - by GoldenLion - 18.05.2016, 17:33

Forum Jump:


Users browsing this thread: 2 Guest(s)