yuh ofc :thumbup:works on 0.3.6pl1?
nah better let the player know the amount by himself
are you sure? I tested it and it workedI use the MOD version and when I kill one monster I dont gain the reputation... repair it plz
yes, in the reptime functionI figured out how to add it myself
Is there a way to config it so you can't rep the same person in like a week?
function repTime(timeDiff) --configured for 1 week
local dateFormat = {
{"day", timeDiff / 60 / 60 / 24 % 7},
{"hour", timeDiff / 60 / 60 % 24},
{"minute", timeDiff / 60 % 60},
{"second", timeDiff % 60}
}
local out = {}
for k, t in ipairs(dateFormat) do
local v = math.floor(t[2])
if(v > 0) then
table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or ''))
end
end
return table.concat(out)
end
yes, in the reptime function
try this one:
Lua:function repTime(timeDiff) --configured for 1 week local dateFormat = { {"day", timeDiff / 60 / 60 / 24 % 7}, {"hour", timeDiff / 60 / 60 % 24}, {"minute", timeDiff / 60 % 60}, {"second", timeDiff % 60} } local out = {} for k, t in ipairs(dateFormat) do local v = math.floor(t[2]) if(v > 0) then table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or '')) end end return table.concat(out) end
cybermaster thx now i have this problem
Have This Problem
$main_content .= '<img src="repPics.php?type=1" /><center><img src="repPics.php?type=2" /></center><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=1 WIDTH=100%>
function addPlayerRep(cid, amount, color)
function removePlayerRep(cid, amount, color)
ofc, usig
Lua:function addPlayerRep(cid, amount, color)
Lua:function removePlayerRep(cid, amount, color)