- 5,654
- 3,958
- Версия SA-MP
-
- 0.3.7 (R1)
- 0.3.7-R2
- 0.3.7-R3
- 0.3.7-R4
- 0.3DL
ааыыыы:
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
active = 0
sampRegisterChatCommand("hl", activatecmd)
while true do
wait(0)
if not isPauseMenuActive() and isPlayerPlaying(playerHandle) then
if active == 1 then
local valid, ped = getCharPlayerIsTargeting(PLAYER_HANDLE)
if valid and doesCharExist(ped) then
local result, id = sampGetPlayerIdByCharHandle(ped)
if result then
sampSendChat("/heal " ..id ..5000)
end
end
end
end
end
end