Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
propban
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jess
propban
Commits
5645083b
Commit
5645083b
authored
Jul 08, 2018
by
Jonah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaning up
parent
b36f372d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
addons/propban/lua/ulx/modules/propban.lua
addons/propban/lua/ulx/modules/propban.lua
+3
-3
No files found.
addons/propban/lua/ulx/modules/propban.lua
View file @
5645083b
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment