Фиксы
Этот коммит содержится в:
родитель
ada6371905
коммит
e6bb13bda0
3 изменённых файлов: 27 добавлений и 16 удалений
|
|
@ -12,7 +12,7 @@ function TOOL:LeftClick(tr)
|
|||
if !IsValid(tr.Entity) then return end
|
||||
if tr.Entity:IsWorld() || tr.Entity:CreatedByMap() then return end
|
||||
|
||||
local id = tr.Entity:GetNWString("Permaents.ID", false)
|
||||
local id = tr.Entity:GetNWString("Permanent.ID", false)
|
||||
|
||||
tr.Entity:MakePermanent(id, ply:SteamID())
|
||||
return true
|
||||
|
|
@ -31,7 +31,7 @@ function TOOL:RightClick(tr)
|
|||
if tr.Entity:IsWorld() || tr.Entity:CreatedByMap() then return end
|
||||
if !tr.Entity:GetNWBool("IsPermanent") then return end
|
||||
|
||||
local id = tr.Entity:GetNWString("Permaents.ID")
|
||||
local id = tr.Entity:GetNWString("Permanent.ID")
|
||||
|
||||
permanent.Remove(id)
|
||||
tr.Entity:Remove()
|
||||
|
|
@ -74,7 +74,6 @@ function TOOL:DrawHUD()
|
|||
|
||||
end
|
||||
|
||||
draw.SimpleTextOutlined(trace.Entity:GetNWString("Permaents.ID"), "GModNotify", x, y, color_white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, color_black)
|
||||
draw.SimpleTextOutlined(trace.Entity:GetNWString("Permaents.Creator"), "GModNotify", x, y + 25, color_white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, color_black)
|
||||
draw.SimpleTextOutlined(trace.Entity:GetNWString("Permanent.ID"), "GModNotify", x, y + 16, color_white, TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, color_black)
|
||||
|
||||
end
|
||||
Загрузка…
Создание таблицы
Добавить ссылку
Сослаться в новой задаче