αвυ-wαleed Posted July 13, 2015 Posted July 13, 2015 اتمنى مساعدة فيه حاجتين ماضبطت 1- guiGetText جبت الرابط ام بي ثري من Edit موجود عندي في اللوحة 2- ترايقر من كلينت لسيرفر وارسلت احداثيات اللاعب وابغى الاوبجكت يجي مكان اللاعب ماضبط Client addEventHandler("onClientGUIClick",getRootElement(), function () if (source == aa) then for index, v in ipairs(getElementsByType("player"))do local x,y,z = getElementPosition( v ) local sound = playSound3D("guiGetText ( url )", x, y, z, true) setSoundMaxDistance( sound, guiGetText ( Max ) ) triggerServerEvent ( "fahad",v,x,y,z) end end end ) Server addEvent( "fahad", true ) addEventHandler( "fahad",root, function(player,x,y,z) createObject ( 2229, x, y, z, 90, 0, 0 ) end)
MoDeR2014 Posted July 13, 2015 Posted July 13, 2015 guiGetText < يرجع لك سلسله نصيه استخدم tonumber Skype : mohammed.almoudeer1 Github : MoDeR2014 Community : MoDeR2014 Youtube : MoDeR2014
Simple. Posted July 13, 2015 Posted July 13, 2015 ليه مسوي لوب ؟ انت يعني تبيها لكل اللاعبين تصير عندهم اوبجكتات وكذا ؟ h3x#2020
αвυ-wαleed Posted July 14, 2015 Author Posted July 14, 2015 ابغى الاوبجكت يظهر لكل اللاعبين لاني لو سويته كلينت بيظهر ؟؟ لكل اللاعبين ولا للاعب نفسة ؟
!#NssoR_) Posted July 14, 2015 Posted July 14, 2015 اخوي انا مافهمت وش تقصد ولكن سويته لك بحيث انه لما تضغط علي الزر يقوم بإنشاء اوبجكت والاوبجكت الكل يشوفه ويحط صوت والصوت الكل يسمعه Client: addEventHandler("onClientGUIClick",getRootElement(), function () if (source == aa) then local x,y,z = getElementPosition( localPlayer ) triggerServerEvent ( "createObjects",localPlayer,x,y,z) end end ) Server: addEvent( "createObjects", true ) addEventHandler( "createObjects",root, function(x,y,z) for i,v in ipairs(getElementsByType("player")) do triggerClientEvent(v,'makeSound',v,x,y,z) end createObject ( 2229, x, y, z, 90, 0, 0 ) end) Client: addEvent( "makeSound", true ) addEventHandler( "makeSound",root, function( x,y,z ) if isElement(sound) then stopSound(sound) end local urls = guiGetText ( url ) local sound = playSound3D(urls, x, y, z, true) setSoundMaxDistance( sound, guiGetText ( Max ) ) end) جربه وردلي خبر ..
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