Skip to content

Commit 7904a82

Browse files
committed
Funnier
1 parent 551b6db commit 7904a82

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lua/ulx/modules/sh/timed_civilize_vote.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ local PERMANENT_EXPIRATION = -1
66
if SERVER then
77
local function voteCivilizeDone( t, targetNick, targetSteamID, minutes, callingPly )
88
local voteYesCount = t.results[1] or 0
9+
local voteNoCount = t.results[2] or 0
910
local shouldCivilize = voteYesCount > 0
1011

1112
if not shouldCivilize then
12-
ulx.fancyLogAdmin( callingPly, "#A's vote to civilize #s did not pass", targetNick )
13+
ulx.fancyLogAdmin( callingPly, "The populace has deemed the refinement of #s unworthy. Motion dismissed: #i in favor, #i opposed", targetNick, voteYesCount, voteNoCount )
1314
return
1415
end
1516

1617
-- Check if player is still on server
1718
local targetPly = player.GetBySteamID64( targetSteamID )
1819
local targetStillOnServer = IsValid( targetPly )
1920
if not targetStillOnServer then
20-
ulx.fancyLogAdmin( callingPly, "#A's vote to civilize #s passed, but the player has left", targetNick )
21+
ulx.fancyLogAdmin( callingPly, "Though the populace voted to refine #s, the target has departed before civility could be imposed", targetNick )
2122
return
2223
end
2324

@@ -34,7 +35,7 @@ if SERVER then
3435

3536
-- Log the result
3637
local durationStr = isPermanent and "permanently" or ULib.secondsToStringTime( minutes * 60 )
37-
ulx.fancyLogAdmin( callingPly, "#A's vote to civilize #s for #s passed", targetNick, durationStr )
38+
ulx.fancyLogAdmin( callingPly, "#s has been refined by democratic decree! Civility shall be enforced for #s. Vote: #i in favor, #i opposed", targetNick, durationStr, voteYesCount, voteNoCount )
3839
end
3940

4041
function ulx.votetimedcivilize( callingPly, targetPly, minutes )

0 commit comments

Comments
 (0)