Witam, wie kto? mo?e jak zablokowa? przesy?anie pieni?dzy na to samo uid ( gdy np. 2 graczy jest na jednym koncie )
Kod na przesy?anie:
[lua]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]
function onPrivateMessage(plr, cmd, target, ...)
if not target or not {...} then
outputChatBox('* U?yj /pm <nick/ID> <tre??>', plr)
return
end
local text=table.concat({...}, ' ')
local target=findPlayer(plr, target)
if not target then
outputChatBox('* Nie znaleziono podanego gracza.', plr, 255, 0, 0)
return
end
outputChatBox("#FFFFFF>> #BABABA"..getPlayerName(target).."["..getElementData(target,"id").."]: #ffffff"..text.."", plr, _, _, _, true)
outputChatBox("#FFFFFF<< #BABABA"..getPlayerName(plr).."["..getElementData(plr,"id").."]: #ffffff"..text.."", target, _, _, _, true)
local pm_text=('PM> %s(%d) >> %s(%d): %s'):format(getPlayerName(plr), getElementData(plr,"id"), getPlayerName(target), getElementData(target,"id"), text)
triggerClientEvent(root, "admin:addText", root, pm_text)
end
addCommandHandler('pw', onPrivateMessage)
addCommandHandler('pm', onPrivateMessage)
... |