This commit is contained in:
lifestorm
2024-08-04 22:55:00 +03:00
parent 8064ba84d8
commit 73479cff9e
7338 changed files with 1718883 additions and 14 deletions

View File

@@ -0,0 +1,39 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
PLUGIN.name = "AWarn3 Compat"
PLUGIN.author = "Gr4Ss"
PLUGIN.description = "Ajoute l'intégration AWarn 3."
if (!AWarn) then return end
if (SERVER) then
function PLUGIN:PlayerLoadedCharacter(client, character, lastChar)
client:SetNetVar("AWarnWarnings", client:GetActiveWarnings())
end
function PLUGIN:AWarnPlayerWarned(client, aID, reason)
client:SetNetVar("AWarnWarnings", client:GetActiveWarnings())
end
function PLUGIN:AWarnPlayerIDWarn(clientID, aID, reason)
for _, v in ipairs(player.GetAll()) do
if (v:SteamID64() == clientID) then
return self:AwarnPlayerWarned(v, aID, reason)
end
end
end
else
function PLUGIN:GetPlayerESPText(client, toDraw, distance, alphaFar, alphaMid, alphaClose)
if (client:GetNetVar("AWarnWarnings", 0) > 0) then
toDraw[#toDraw + 1] = {alpha = alphaClose, priority = 29.5, text = "Avertissements : "..client:GetNetVar("AWarnWarnings", 0)}
end
end
end