18.05.2016, 16:31
How can I make this code work only for guns without many ifs or a switch?
Also if I attach a 3D text label to two or more players then it's working fine, they are both visible and working fine, but when the script deletes a 3D textdraw let's say by doing /deletemylabel then all the textdraws on the players disappear. How to make it like that every player has his own 3D text label that others can see? Is it created with CreatePlayer3DTextLabel? I want this for my death system, when player is dead he will have a label on him saying he's dead.
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart) { PlayerTextDrawShow(playerid, Crosshair[playerid]); SetTimer("RemoveCrosshair", 350, false); return 1; }