Need help regarding 3d labels
#1

Код:
public hpcheck(playerid)
{
  new Float:health;
  GetPlayerHealth(playerid,health);
  if (health < 18.0)
  {
    SetPlayerDrunkLevel(playerid,10000);
    new wounded = Create3DTextLabel("Wounded",COLOR_YELLOW,0.0,0.0,0.0,40.0,0);
    Attach3DTextLabelToPlayer(wounded, playerid, 0, 0, 0, 0);
    return 1;
  }
  else if (health < 9.0)
  {
    SetPlayerDrunkLevel(playerid,50000);
    new hwounded = Create3DTextLabel("HEAVILY Wounded",COLOR_RED,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(hwounded, playerid, 0, 0, 0, 0);
    return 1;
  }
  else if (health > 18.0)
  {
    SetPlayerDrunkLevel(playerid,0);
  }


	return 1;
}
Problem here is - it attaches the label to all players. Why?
Reply


Messages In This Thread
Need help regarding 3d labels - by Striker_Moe - 17.10.2009, 12:57
Re: Need help regarding 3d labels - by V1ceC1ty - 17.10.2009, 12:58
Re: Need help regarding 3d labels - by Striker_Moe - 17.10.2009, 12:59
Re: Need help regarding 3d labels - by Beaver07 - 17.10.2009, 13:24

Forum Jump:


Users browsing this thread: 2 Guest(s)