Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: pmoff
1. PmOFF
Siema. Mam kolejny problem, gdy? nie dzia?a mi /pmoff. Wie kto? gdzie jest b??d?

[lua]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")
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,"pmoff") then
outputChatBox("Posiadasz wy??czone wiadomo?ci PM. Ta osoba nie b?dzie mog?a Ci odpisa?.", plr)
end


if getElementData(target, "gracz_mute") == 1 then
outputChatBox("* Ten gracz jest wyciszony, nie odpisze ci!", plr)
return
end

addCommandHandler("pmon", function(plr,cmd)
removeElementData(plr,&...