function onDeath(cid, corpse)
doPlayerSetStorageValue(cid, 36901, 1)
return TRUE
end
if getPlayerStorageValue(cid, 36901) == 1 then
local swiatynie = {
{x=,y=,z=},
{x=,z=,z=},
{x=,y=,z=}
}
doTeleportThing(cid, swiatynie[math.random(1, #swiatynie)])
setPlayerStorageValue(cid, 36901, 0)
end
registerCreatureEvent(cid, "Die")
<event type="death" name="Die" event="script" value="dea.lua"/>