Jump to content

x[مشكلة]x الترايقر ليش مايضبط


Recommended Posts

شباب وش مشكلة الترايقر

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

ماشتغل

الكلينت

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

كلينت

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

ماشتغل

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

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