Make notifications stay longer

This commit is contained in:
Jonny_Bro (Nikita) 2023-07-22 00:31:35 +05:00
parent 95adabcf3c
commit 2996e8834f

View file

@ -49,9 +49,9 @@ hook.Add("PlayerNoClip", "BlockNoClip", function(ply, enabled)
ply:SetNW2Int("CPNum", -1)
if CLIENT_IFTP() then
notification.AddLegacy("Noclip Enabled: Respawn to run the course", NOTIFY_ERROR, 2)
notification.AddLegacy("Noclip Detected! Respawn to restart the course", NOTIFY_ERROR, 4)
elseif SERVER and game.SinglePlayer() then
ply:SendLua("notification.AddLegacy(\"Noclip Enabled: Respawn to run the course\", NOTIFY_ERROR, 2)")
ply:SendLua("notification.AddLegacy(\"Noclip Detected! Respawn to restart the course\", NOTIFY_ERROR, 4)")
end
end