Commit 5645083b authored by Jonah's avatar Jonah

cleaning up

parent b36f372d
local CATEGORY_NAME = "Prop Ban"
--helper functions
function send_messages(v, message)
local function send_messages(v, message)
if type(v) == "Players" then
v:ChatPrint(message)
elseif type(v) == "table" then
......@@ -27,8 +27,8 @@ function ulx.propban( calling_ply, target_ply, num_rounds, reason)
target_ply:SetPData("propban_rounds", new_rounds)
target_ply:SetPData("propban_reason", reason)
else
target_ply:RemovePData("propban_rounds")
target_ply:RemovePData("propban_reason")
target_ply:RemovePData("propban_rounds")
target_ply:RemovePData("propban_reason")
end
rounds_left = tonumber(target_ply:GetPData("propban_rounds")) or 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment