Mr.Mostafa Posted June 2, 2018 Share Posted June 2, 2018 (edited) سلام عليكم ابي اسوي لو الشخص كتب صوت باف 8 يحطله داتا معينة ويطلعله رسالة ولو كتبها تاني يطلع رسالة جديدة ويشيل الداتا حقت setElementData Edited June 2, 2018 by Mr.Mostafa Link to comment
Doffy Posted June 2, 2018 Share Posted June 2, 2018 (edited) addCommandHandler("صوت", function(plr) if ( getElementData(plr,"اسم_الداتا") == false ) then setElementData(plr, "اسم_الداتا",true) outputChatBox("Done successfuly tarned data to true",plr,0,255,0,true) triggerClientEvent(plr, "mySound", plr) else outputChatBox("Done successfuly tarned data to false",plr,0,255,0,true) setElementData(plr, "اسم_الداتا",false) end end ) ----------Client addEvent("mySound",true) addEventHandler("mySound",root, function( ) playSound("اسم_الصوت.mp3") end ) Edited June 2, 2018 by #DesTroeyR Link to comment
Mr.Mostafa Posted June 2, 2018 Author Share Posted June 2, 2018 On 02/06/2018 at 01:15, #DesTroeyR said: addCommandHandler("صوت", function(plr) if ( getElementData(plr,"اسم_الداتا") == false ) then setElementData(plr, "اسم_الداتا",true) triggerClientEvent(plr, "mySound", plr) else setElementData(plr, "اسم_الداتا",false) end end ) ----------Client addEvent("mySound",true) addEventHandler("mySound",root, function( ) playSound("اسم_الصوت.mp3") end ) Expand اشتغل اخيرا - تسلم ما قصرت *( شوف الخاص )* 1 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