17.10.2009, 12:57
Код:
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; }