Jump to content

x[مشكلة]x مايطلع صوت عند الكتابة


Recommended Posts

شباب وش الخطاء مايطلع صوت

function aChattedConsole (aPlayer)
 local accName = getAccountName ( getPlayerAccount ( aPlayer ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
    playSoundFrontEnd (source, 11)
	end
	end
	addEventHandler("onPlayerChat",root,aChattedConsole)

 

Edited by yasin0
Link to comment
function aChattedConsole ()
 local accName = getAccountName ( getPlayerAccount ( source ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
    playSoundFrontEnd (source, 11)
	end
	end
	addEventHandler("onPlayerChat",root,aChattedConsole)

 

Link to comment
4 minutes ago, yasin0 said:

مشكور بس ممكن تعلمني الخطاء 

لأن ببساطة المفروض تحول aPlayer 

الى سورس

+

وال aPlayer 

ببارتمرات الحدث هي الرسالة , 

يعني انت تحققت من الرسالة وليس اللاعب ..

Link to comment
1 minute ago, yasin0 said:

ليش كذا مو ضابط ؟


addEventHandler("onPlayerChat",root,function()
 local accName = getAccountName ( getPlayerAccount ( source ) ) 
if isObjectInACLGroup("user."..accName,aclGetGroup("Console") then
playSoundFrontEnd(root,12)
end
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...