Files
wnsrc/gamemodes/ixhl2rp/plugins/notes/sv_plugin.lua

28 lines
714 B
Lua
Raw Normal View History

2024-08-04 23:12:27 +03:00
--[[
| 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("Notatki zostały pomyślnie zapisane.")
else
client:Notify("Nie znaleziono postaci.")
end
else
client:Notify("Nie masz do tego uprawnień.")
end
end)