nevix
Tunzodus.net
What script i need change when player died in pvp area?
Eg: i need execute this: playerdeath.lua but not working in pvpzone? what lua i should change?
B
Eg: i need execute this: playerdeath.lua but not working in pvpzone? what lua i should change?
Code:
if (getGlobalStorageValue(25003) == 1) then
setGlobalStorageValue(25002, 0)
for _, pid in ipairs(getOnlinePlayers()) do
if getPlayerStorageValue(pid, 25001) == 1 then
local playerids = getPlayerByName(pid)
local center = {x = 32346, y = 32224, z = 7}
doTeleportThing(playerids,center)
doSendMagicEffect(center, CONST_ME_TELEPORT)
broadcastMessage("Last Man Standing event ended. Winner is: "..pid..", hes got 2 shop points!", MESSAGE_STATUS_WARNING)
end
end
B