• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Help fix !frags

warriorfrog

Active Member
Joined
Jul 29, 2015
Messages
334
Reaction score
35
Im using 0.4 (8.60)

My !frags don't work, someone help me to fix?

Error
https://imgur.com/IBUdeVX

Script
Code:
local hours = math.floor(remainingSeconds / 3600)
local minutes = math.floor((remainingSeconds % 3600) / 60)
local seconds = remainingSeconds % 60

local message = "You have " .. kills .. " unjustified kill" .. (kills > 1 and "s" or "") .. ". The amount of unjustified kills will decrease after: "
if hours ~= 0 then
if hours == 1 then
message = message .. hours .. " hour, "
else
message = message .. hours .. " hours, "
end
end

if hours ~= 0 or minutes ~= 0 then
if minutes == 1 then
message = message .. minutes .. " minute and "
else
message = message .. minutes .. " minutes and "
end
end

if seconds == 1 then
message = message .. seconds .. " second."
else
message = message .. seconds .. " seconds."
end

player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, message)
return false
end
 
Back
Top