Jump to content

مساعدة في تغير السكن


D7mas

Recommended Posts

1 minute ago, #Himoo said:

الاثنين -ر- ذذ

Server 

addEventHandler("onPlayerLogin", getRootElement(), 
function ()
setElementData(source, "LoginOn", true)
end)

Clinet

addEvent("onLoginSuccess", true)
addEventHandler("onLoginSuccess", root,
function()
		--	addEventHandler("onClientPreRender", root, dxxx)
			guiSetInputEnabled(false)
		    --setBloomShaderEnabled(false)
			setElementData ( localPlayer, "shader", false )
			if isElement(radio1URL) then destroyElement(radio1URL) end
			local radio1URL = "http://files-cdn.nocopyrightsounds.co.uk/Alan%20Walker%20-%20Fade.mp3"
			SelectSong = playSound(radio1URL, true)
			setTimer(
			function  ()
			Panel = nil
			HideLogin()
			isWindowShowed = false
			HideRegister()
			HideReset()
			stopTransitions()
			Render(dxMain, 2)
			fadeCamera(true, 2)
			showChat(true)
			setPlayerHudComponentVisible ('all',false)
			showCursor(false)
			skinCount = 0
			if getElementData(localPlayer,"Language") == "AR" then
			exports["Notice"]:outputNotice("#00ff00 تم تسجيل دخولك بنجاح", "success")
			else
			exports["Notice"]:outputNotice("#00ff00You Have Successed Login To Server", "success")
			end
			sPed = createPed(0, 0, 0, 0)
			addEventHandler("onClientPedDamage",sPed,cancelEvent)
			setCameraInterior(0)
			sRight()
			bindKey("arrow_l", "down", sLeft)
			bindKey("arrow_r", "down", sRight)
			bindKey("arrow_u", "down", sUp)
			bindKey("arrow_d", "down", sDown)
			bindKey("enter", "down", EnterSpawn)
			addEventHandler("onClientPreRender", root, drawTeamName)
			end,1200,1)
			setTimer(
			function  ()
			smoothMoveCamera(6477.8544921875, -2771.9897460938, 1.5261293649673,6475.4565429688 , -2777.8022460937 , 1.518,6474.5610351563, -2774.1862792969, 1.5187499523163,6475.4565429688 , -2777.8022460937 , 1.518,20000)
			end,1200,0)
			setElementDimension( localPlayer, 0 )	
end)

 

Link to comment
21 hours ago, D7mas said:

Server 


addEventHandler("onPlayerLogin", getRootElement(), 
function ()
setElementData(source, "LoginOn", true)
end)

Clinet


addEvent("onLoginSuccess", true)
addEventHandler("onLoginSuccess", root,
function()
		--	addEventHandler("onClientPreRender", root, dxxx)
			guiSetInputEnabled(false)
		    --setBloomShaderEnabled(false)
			setElementData ( localPlayer, "shader", false )
			if isElement(radio1URL) then destroyElement(radio1URL) end
			local radio1URL = "http://files-cdn.nocopyrightsounds.co.uk/Alan%20Walker%20-%20Fade.mp3"
			SelectSong = playSound(radio1URL, true)
			setTimer(
			function  ()
			Panel = nil
			HideLogin()
			isWindowShowed = false
			HideRegister()
			HideReset()
			stopTransitions()
			Render(dxMain, 2)
			fadeCamera(true, 2)
			showChat(true)
			setPlayerHudComponentVisible ('all',false)
			showCursor(false)
			skinCount = 0
			if getElementData(localPlayer,"Language") == "AR" then
			exports["Notice"]:outputNotice("#00ff00 تم تسجيل دخولك بنجاح", "success")
			else
			exports["Notice"]:outputNotice("#00ff00You Have Successed Login To Server", "success")
			end
			sPed = createPed(0, 0, 0, 0)
			addEventHandler("onClientPedDamage",sPed,cancelEvent)
			setCameraInterior(0)
			sRight()
			bindKey("arrow_l", "down", sLeft)
			bindKey("arrow_r", "down", sRight)
			bindKey("arrow_u", "down", sUp)
			bindKey("arrow_d", "down", sDown)
			bindKey("enter", "down", EnterSpawn)
			addEventHandler("onClientPreRender", root, drawTeamName)
			end,1200,1)
			setTimer(
			function  ()
			smoothMoveCamera(6477.8544921875, -2771.9897460938, 1.5261293649673,6475.4565429688 , -2777.8022460937 , 1.518,6474.5610351563, -2774.1862792969, 1.5187499523163,6475.4565429688 , -2777.8022460937 , 1.518,20000)
			end,1200,0)
			setElementDimension( localPlayer, 0 )	
end)

 

الحين وش ايدي السلاح الي يجيه ؟

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...