Ez lenne a script. Néztem a debugscript-et és semmilyen hibát nem írt.
(Szerver oldal)
function halal()
local csapat = getPlayerTeam (source)
if csapat == red then
spawnPlayer (source, 2353.54858, -3269.84814, 2.52993, 0, math.random(0,288))
fadeCamera (source, true)
setCameraTarget (source, source)
giveWeapon ( source, 24, 200 )
elseif csapat == blue then
spawnPlayer (source, 2256.89355, -3254.71826, 2.44801, 0, math.random(0,288))
fadeCamera (source, true)
setCameraTarget (source, source)
giveWeapon ( source, 24, 200 )
else
spawnPlayer (source, 2304.20557, -3204.65576, 58.92500, 0, math.random(0,288))
fadeCamera (source, true)
setCameraTarget (source, source)
end
end
addEventHandler(\"onPlayerWasted\", getRootElement(), halal)