yasin0 Posted May 30, 2017 Share Posted May 30, 2017 شباب وش مشكلة الترايقر -- server addEventHandler("onPlayerChat",root,function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then playSound("twiiter.mp3") end end ); addEvent("aSound", true) addEventHandler("aSound", resourceRoot, aTrigger) -- client function aTrigger () triggerServerEvent( "aSound",localPlayer) end يقولي الارقمنت الثالث ما عندها قيمة Link to comment
iMr.WiFi..! Posted May 30, 2017 Share Posted May 30, 2017 3 minutes ago, yasin0 said: شباب وش مشكلة الترايقر -- server addEventHandler("onPlayerChat",root,function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then playSound("twiiter.mp3") end end ); addEvent("aSound", true) addEventHandler("aSound", resourceRoot, aTrigger) -- client function aTrigger () triggerServerEvent( "aSound",localPlayer) end يقولي الارقمنت الثالث ما عندها قيمة اوبا يالعيد .. -- server function Trigger() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then triggerClientEvent(source,"aAccept",source); end end addEvent("aSound", true) addEventHandler("aSound", resourceRoot, Trigger) -- client function aTrigger () triggerServerEvent( "aSound",localPlayer) end function ac() playSound("twiiter.mp3") end addEvent("aAccept", true) addEventHandler("aAccept", resourceRoot, ac) Link to comment
yasin0 Posted May 30, 2017 Author Share Posted May 30, 2017 (edited) مايطلع الصوت Edited May 30, 2017 by yasin0 لا Link to comment
iMr.WiFi..! Posted May 30, 2017 Share Posted May 30, 2017 10 minutes ago, yasin0 said: اشرحه لي مايطلع الصوت وش السبب حطيته بالادمن ؟ + المفروض تستعمل الفنكشن aTrigger بيصير بهالشكل , -- server function Trigger() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then triggerClientEvent(source,"aAccept",source); end end addEvent("aSound", true) addEventHandler("aSound", resourceRoot, Trigger) -- client function aTrigger () triggerServerEvent( "aSound",localPlayer) end aTrigger () function ac() playSound("twiiter.mp3") end addEvent("aAccept", true) addEventHandler("aAccept", resourceRoot, ac) Link to comment
yasin0 Posted May 30, 2017 Author Share Posted May 30, 2017 ماشتغل الكلينت --client function aTrigger () triggerServerEvent( "aSound",localPlayer) end aTrigger () function ac() playSound("twiiter.mp3") end addEvent("aAccept", true) addEventHandler("aAccept", resourceRoot, ac) --server function Trigger() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then triggerClientEvent(source,"aAccept",source); end end addEvent("aSound", true) addEventHandler("aSound", resourceRoot, Trigger) --meta <meta> <script src= "s.lua" type="server" /> <script src= "c.lua" type="client" /> <file src="tr.mp3" /> </meta> الخطاء بالدي بق لا شيء Link to comment
iMr.WiFi..! Posted May 30, 2017 Share Posted May 30, 2017 function aTrigger () triggerServerEvent( "aSound",localPlayer) end aTrigger () function ac() playSound("tr.mp3") end addEvent("aAccept", true) addEventHandler("aAccept", resourceRoot, ac) --server function Trigger() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then triggerClientEvent(source,"aAccept",source); end end addEvent("aSound", true) addEventHandler("aSound", resourceRoot, Trigger) Link to comment
yasin0 Posted May 30, 2017 Author Share Posted May 30, 2017 ماشتغل ومافي شيء بالدي بق ومضيوف للادمن مساعدة @Bross @iMr.WiFi..! Link to comment
#BrosS Posted May 30, 2017 Share Posted May 30, 2017 تبي الصوت يجي اول ماتشغل المود ولا شنو Link to comment
#BrosS Posted May 30, 2017 Share Posted May 30, 2017 1 minute ago, yasin0 said: اول ماحط رسالة استعمل كود واي فاي وحط ذا لما تطلع رسالة aTrigger () مدري ايش رسالة بالظبط Link to comment
#BrosS Posted May 30, 2017 Share Posted May 30, 2017 addEventHandler("onPlayerChat",root, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then triggerClientEvent(source,"aAccept",source); end end) حط ذا مكان الحدث aSound اللي بالسيرفر Link to comment
yasin0 Posted May 30, 2017 Author Share Posted May 30, 2017 (edited) ماشتغل الخطاء الدي بق مايستقبل الترايقر الكلينت Edited May 30, 2017 by yasin0 Link to comment
#BrosS Posted May 31, 2017 Share Posted May 31, 2017 7 hours ago, yasin0 said: ماشتغل الخطاء الدي بق مايستقبل الترايقر الكلينت وريني وين حطيت الأكواد Link to comment
yasin0 Posted May 31, 2017 Author Share Posted May 31, 2017 كلينت 23 minutes ago, #BrosS said: وريني وين حطيت الأكواد --aClient function aTrigger () triggerServerEvent( "aAccept",localPlayer) end aTrigger () function ac() playSound("tr.mp3") end addEvent("aAccept", true) addEventHandler("aAccept", resourceRoot, ac) aServer addEventHandler("onPlayerChat",root, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then triggerClientEvent(source,"aAccept",source); end end) Link to comment
#STZ Posted May 31, 2017 Share Posted May 31, 2017 (edited) aTrigger () سويه لما يكتب في الشات addEventHandler("onPlayerChat",root, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then triggerClientEvent(source,"aAccept",source); end end) هذيه في ملف سيرفر لحالها حطها Edited May 31, 2017 by #STZ Link to comment
yasin0 Posted May 31, 2017 Author Share Posted May 31, 2017 ماشتغل addEventHandler("onPlayerChat",root, function() local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then aTrigger() triggerClientEvent(source,"aAccept",source); end end) Link to comment
#STZ Posted May 31, 2017 Share Posted May 31, 2017 -- Server Side addEventHandler("onPlayerChat",root, function() local accName = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..accName,aclGetGroup("Console") ) then triggerClientEvent(source,"aAccept",source) end end) -- جهة الكلاينت function Sound() playSound("tr.mp3") end addEvent("aAccept", true) addEventHandler("aAccept", resourceRoot, Sound) والصوت راح يسمعه اللاعب الي كتب بس مب مجرب ^ Link to comment
#STZ Posted May 31, 2017 Share Posted May 31, 2017 (edited) @yasin0 دي بق ؟ والكود صحيح اعتقد مافيه اخطاء Edited May 31, 2017 by #STZ Link to comment
yasin0 Posted May 31, 2017 Author Share Posted May 31, 2017 خلاص انا حليتها بنفسي وماكانت تحتاج ذي الشغلة كلها ذذ 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