Files
wnsrc/gamemodes/darkrp/plugins/notes/sv_plugin.lua
lifestorm df294d03aa Upload
2024-08-04 23:54:45 +03:00

28 lines
707 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--[[
| 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/
--]]
local PLUGIN = PLUGIN
netstream.Hook("ixNotesSet", function(client, characterId, text)
if (CAMI.PlayerHasAccess(client, "Helix - Basic Admin Commands")) then
local character = ix.char.loaded[characterId]
if (character) then
character:SetNotes(text)
client:Notify("Notlar başarıyla kaydedildi.")
else
client:Notify("Karakter bulunamadı.")
end
else
client:Notify("Bunu yapmak için izniniz yok.")
end
end)