- 442
- 88
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
У меня больше 140 ХП, но выполняется 2 условие.
Код:
if not sampIsChatInputActive() and not sampIsDialogActive() then
hp = sampGetPlayerHealth(id)
if hp < 120 then
sampAddChatMessage('/usedrugs 3', -1)
elseif hp > 120 or hp == 120 and not hp > 139 then
sampAddChatMessage('/usedrugs 2', -1)
elseif hp == 140 or hp > 140 then
sampAddChatMessage('/usedrugs 1', -1)
end
end