local event = require('lib.samp.events')
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do wait(0)
end
end
function event.onPlayerDeath(playerId)
id = playerId
nickname = sampGetPlayerNickname(playerId)
bool, ped = sampGetCharHandleBySampPlayerId(playerId)
if bool then
x, y, z = getDeadCharPickupCoords(ped)
z = getGroundZFor3dCoord(x, y, z)
object = createObject(5777, x, y, z-0.25)
objectt = createObject(2895, x, y, z-0.25)
setObjectScale(object, 0.5)
setObjectHeading(object, math.random(0, 180))
markObjectAsNoLongerNeeded(object)
markObjectAsNoLongerNeeded(objectt)
setObjectCollision(object, false)
textlabel = sampCreate3dText('тут сдох \n'..nickname..' ['..id..']\n помянем', 0xffffffff, x, y, z+0.30, 5.0, true, -1, -1)
end
end