Jump to content

تعديل علي الرسباون


momar5600

Recommended Posts

اه هو الخطا

addEvent("onSpawnPlayer",true)
addEventHandler("onSpawnPlayer",root,
function ()
local skin = getElementData(source,"skin")
fadeCamera(source,false)
setTimer(fadeCamera,1400,1,source,true,3) 
setTimer(spawnPlayer,2000,1,source,1565.5054931641,3326.3386230469,223.38436889648,90,skin,0,1)             
setCameraTarget(source,source)
showChat(source,true)
end)

---------------------------------------------
addEventHandler( 'onPlayerWasted', root,
function()
setElementData(source, 'Wasted?', true)
local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION'))
local PlayerSkin = getElementData(source, 'SKIN')
local randomX = math.random(1, 10) - math.random(1, 10)
local randomY = math.random(1, 10) - math.random(1, 10)
spawnPlayer(source, xSpawn + randomX, ySpawn + randomY, zSpawn)
setElementModel(source, PlayerSkin)
setElementData(source, 'Wasted?', false)
else
local skin = getElementData(source,"skin")
fadeCamera(source,false)
setTimer(fadeCamera,2000,1,source,true)
setTimer(spawnPlayer,2000,1,source,1565.5054931641,3326.3386230469,223.38436889648,90,skin,0,1)
end
)

 

Edited by momar5600
Link to comment

طيب بردو خطا

addEventHandler( 'onPlayerWasted', root,
function()
setElementData(source, 'Wasted?', true)
local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION'))
local PlayerSkin = getElementData(source, 'SKIN')
local randomX = math.random(1, 10) - math.random(1, 10)
local randomY = math.random(1, 10) - math.random(1, 10)
spawnPlayer(source, xSpawn + randomX, ySpawn + randomY, zSpawn)
setElementModel(source, PlayerSkin)
setElementData(source, 'Wasted?', false)
local skin = getElementData(source,"skin")
fadeCamera(source,false)
setTimer(fadeCamera,2000,1,source,true)
setTimer(spawnPlayer,2000,1,source,1565.5054931641,3326.3386230469,223.38436889648,90,skin,0,1)     
end
)

 

Link to comment

شباب الحين بدي اخلي رسباون حرب عصابات بعالم وهمي 3 كيف

خلاص عرفت الحل

 

اتمنا تساعدوني

addEvent( 'SpawnPlayerInSelectedSettinges', true )
addEventHandler( 'SpawnPlayerInSelectedSettinges', root,
function()
local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION'))
local PlayerSkin = getElementData(source, 'SKIN')
local randomX = math.random(1, 10) - math.random(1, 10)
local randomY = math.random(1, 10) - math.random(1, 10)
spawnPlayer(source, xSpawn + randomX, ySpawn + randomY, zSpawn)
setElementModel(source, PlayerSkin)
fadeCamera(source, true)
showChat(source,true)
end
)

addEventHandler( 'onPlayerWasted', root,
function()
setElementData(source, 'Wasted?', true)
local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION'))
local PlayerSkin = getElementData(source, 'SKIN')
local randomX = math.random(1, 10) - math.random(1, 10)
local randomY = math.random(1, 10) - math.random(1, 10)
spawnPlayer(source, xSpawn + randomX, ySpawn + randomY, zSpawn)
setElementModel(source, PlayerSkin)
setElementData(source, 'Wasted?', false)
end
)

addEvent( 'setPositionData', true )
addEventHandler( 'setPositionData', root,
function(PlaceName, xSpawn, ySpawn, zSpawn)
setElementData(source, 'POSITION', false)
setElementData(source, 'POSITION', {xSpawn, ySpawn, zSpawn})
local PlaceName = string.gsub(PlaceName, '[A-Z-a-z]', '')
outputChatBox( '* Server : #FFFFFF ' .. PlaceName .. ' : المكان الذي قمت بأختياره هو .! ', source, 0, 255, 0, true )
end
)

addEvent( 'setSkinData', true )
addEventHandler( 'setSkinData', root,
function(SkinID)
setElementData(source, 'SKIN', false)
setElementData(source, 'SKIN', SkinID)
outputChatBox( '* Server : #FFFFFF ' .. SkinID .. ' : الشخصية الخاصة بك هي .! ', source, 0, 255, 0, true )
end
)

addEvent("onSpawnPlayer",true)
addEventHandler("onSpawnPlayer",root,
function ()
local skin = getElementData(source,"skin")
fadeCamera(source,false)
setTimer(fadeCamera,1400,1,source,true,3) 
setTimer(spawnPlayer,2000,1,source,1565.5054931641,3326.3386230469,223.38436889648,90,skin,0,1)             
setCameraTarget(source,source)
showChat(source,true)
end)

addEventHandler("onPlayerWasted",root,function()
if ( getElementData(source,"DownloadFinish") ) then
local skin = getElementData(source,"skin")
fadeCamera(source,false)
setTimer(fadeCamera,2000,1,source,true)
setTimer(spawnPlayer,2000,1,source,1565.5054931641,3326.3386230469,223.38436889648,90,skin,0,1)   
end
end)

addEventHandler("onPlayerJoin",root,
    function ()
	fadeCamera(source,true,5)
	spawnPlayer(source,1278.7707519531,1362.7667236328,10.8203125,270,46,0,2,TeamDownload)
	setCameraTarget(source,source)
	setElementData(source,"DownloadFinish",false)
	end
)

addEvent("NoDownload",true)
addEventHandler("NoDownload",root,function()
setElementDimension(source,0)
fadeCamera(source,false)
end)

addEventHandler("onResourceStart",resourceRoot,
 function ()
  for i,player in ipairs(getElementsByType("player")) do
   local r,g,b = getPlayerNametagColor(player)
   blip[player] = createBlipAttachedTo(player,0,2,r,g,b)
  end
 end
)

addEventHandler("onPlayerJoin",root,
 function ()
  local r,g,b = getPlayerNametagColor(source)
  blip[source] = createBlipAttachedTo(source,0,2,r,g,b)
 end
)

addEventHandler("onPlayerSpawn",root,
 function ()
  local r,g,b = getPlayerNametagColor(source)
  setBlipColor(blip[source],r,g,b,255)
 end
)

addEventHandler("onPlayerQuit",root,
 function ()
  if blip[source] and isElement(blip[source]) then
   destroyElement(blip[source])
   blip[source] = nil
  end
 end
)

بدي مساعدة كل ما اموت تفضل شاشة تلف اه هو الحل 

ده قيم مود زومبي 

addEvent("onSpawnPlayer",true)
addEventHandler("onSpawnPlayer",root,
function ()
local skin = getElementData(source,"skin")
fadeCamera(source,false)
setTimer(fadeCamera,1400,1,source,true,3) 
setTimer(spawnPlayer,2000,1,source,1565.5054931641,3326.3386230469,223.38436889648,90,skin,0,1)             
setCameraTarget(source,source)
showChat(source,true)
end)

addEventHandler("onPlayerWasted",root,function()
if ( getElementData(source,"DownloadFinish") ) then
local skin = getElementData(source,"skin")
fadeCamera(source,false)
setTimer(fadeCamera,2000,1,source,true)
setTimer(spawnPlayer,2000,1,source,1565.5054931641,3326.3386230469,223.38436889648,90,skin,0,1)   
end
end)

مشكلة بقيم مود زومبي لما اموت مايرجعني للمكان تفضل شاشة تلف 

ويقول لي مشكله في ده

دي بق بيقو مشكلة هنا

addEventHandler( 'onPlayerWasted', root,
function()
setElementData(source, 'Wasted?', true)
local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION'))
local PlayerSkin = getElementData(source, 'SKIN')
local randomX = math.random(1, 10) - math.random(1, 10)
local randomY = math.random(1, 10) - math.random(1, 10)
spawnPlayer(source, xSpawn + randomX, ySpawn + randomY, zSpawn)
setElementModel(source, PlayerSkin)
setElementData(source, 'Wasted?', false)
end
)

 

Edited by momar5600
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...