Cze??. Mam problem z systemem pm'ek, poniewa? dzia?a ju? /pmoff ale wiadomo?ci nie maj? spacji, czyli "/pm 1 jestem tu" wychodzi "(0): jestemtu". Wiecie co jest ?le? Stawiam
[lua]--[[
Komendy dla gracza: /zaplac, /pm
@copyright 2013-2014 Split <[email protected]>
@author Split <[email protected]>
Nie masz prawa u?ywac tego kodu bez mojej zgody.
Napisz do mnie by? mo?e si? zgodz? na u?ycie kodu.
]]--
function prywatnaWiadomosc(plr, cmd, cel, ...)
if getElementData(plr, "gracz_mute") == 1 then
outputChatBox("* Jeste? wyciszony i nie mo?esz pisa? prywatnych wiadomo?ci.", plr, 255, 0, 0)
return
end
if (#arg<=0 or (not cel)) then
outputChatBox("* U?yj: /pm <nick/ID> <tresc>", plr)
return
end
local target = znajdzGracza(plr, cel)
local tresc = table.concat(arg, "")
if not(target) then
outputChatBox("* Nie znaleziono gracza o podanym ID/nicku!", plr)
return
end
local pmoff=getElementData(target,"pmoff")
local powod=table.concat(arg,"")
if (pmoff) then
outputChatBox(getPlayerName(target).." nie akceptuje wiadomo?ci PM.", plr)
if (type(pmoff)=="string") then
outputChatBox("Pow?d: " .. pmoff, plr)
end
return
end
if getElementData(plr,"pmof... |