- 478
- 20
- Версия MoonLoader
- .026-beta
как правильно оформить ?
Lua:
nick = sampGetPlayerNickname(id)
_ , ID = sampGetCharHandleBySampPlayerId(nick)
hp = sampGetPlayerHealth(ID)
Lua:
if uds.v then
if isKeyDown(vkeys.VK_MENU) and isKeyJustPressed(vkeys.VK_Z) then
if hp <=80 then
sampSendChat('/usedrugs 1')
end
if hp <=60 then
sampSendChat('/usedrugs 2')
end
if hp<=40 then
sampSendChat('/usedrugs 3')
end
end
end