جرب هذا ,
local pX, pY, pZ = 0, 0, 0 -- مكان انتقالك
local rotation = 0 -- دوران اللاعب
local table = {}
local teamTable = {}
addEventHandler( "onPlayerWasted", root,
function()
local x,y,z = getElementPosition(source)
local gSkin = getElementModel(source)
local gTeam = getPlayerTeam(source)
table[source] = gSkin
teamTable[source] = gTeam or nil
setTimer( spawnPlayer, 1000, 1, source, pX, pY, pZ, rotation, table[source], teamTable[source])
end
)