Position = {
[1] = {x,y,z},
[2] = {x,y,z},
[3] = {x,y,z},
}
addEventHandler("onResourceStart", resourceRoot,
function()
for i,player in ipairs(getElementsByType("player")) do
spawn(player)
end
end
)
Skin = {104,103,102}
function spawn(player)
if not isElement(player) then return end
local x,y,z = unpack(Position[math.random(#Position)])
repeat until spawnPlayer ( player, x,y,z)
setCameraTarget(player, player)
setElementModel( player, Skin[math.random(#Skin)] )
end
# لم يتم التجربة