Skip to content

Commit

Permalink
Add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Doridian committed Mar 22, 2024
1 parent 9a290fd commit cf72a62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/sa/core/server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ local function LoadRes(ply, body, code)
end
ply.sa_data.available = true

if not ply.sa_data.loaded then
ply:ChatPrint("Warning! Your profile has failed to load! Progress will not be saved!")
end

if ply.sa_data.is_banned then
ply:Kick("Banned: " .. ply.sa_data.ban_reason or "N/A")
return
Expand Down

0 comments on commit cf72a62

Please sign in to comment.