momar5600 Posted September 19, 2016 Share Posted September 19, 2016 سلام عليكم ورحمة الله وبركاتة بدي حل للمشكلة لما بموت تفضل شاشة تلف مايرجعني للمكان function greetPlayer ( ) triggerClientEvent(source,"onCl3",source) end addEventHandler ( "onPlayerJoin", getRootElement(), greetPlayer ) function loggedOut() triggerClientEvent(source,"onCl4",source) end addEventHandler("onPlayerLogout",getRootElement(),loggedOut) addEventHandler("onPlayerLogin", root, function() triggerClientEvent(source,"onCl5",source) end ) 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) Link to comment
momar5600 Posted September 19, 2016 Author Share Posted September 19, 2016 يقول لي خطا هنا local xSpawn, ySpawn, zSpawn = unpack(getElementData(source, 'POSITION')) اصلا انا مسوي قيم مود 2 في واحد مسوي زومبي وقيم مود هجولة الخطا يجي بالزومبي Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now