Jump to content

وش الخطأ؟


w7sH

Recommended Posts

Posted
function login() 
  if hasObjectPermissionTo(player,"command.mute",true) then
    outputChatBox("[AdminSystem]: * The administration has logged in. " .. getPlayerName(source) .. "|  لقد قام الأدمن بستجيل دخوله.", getRootElement(), 255,255,0, true) 
            playSoundFrontEnd (root, 45 )

  end -- The End of " if " 
   
end -- The End of " function login " 
addEventHandler("onPlayerLogin", getRootElement(), login) 

السلام عليكم ..

وش المشكلة في هالكود

 

  • Like 1
Posted (edited)
function login() 
  if hasObjectPermissionTo(source,"command.mute") then
    outputChatBox("[AdminSystem]: * The administration has logged in. " .. getPlayerName(source) .. "|  لقد قام الأدمن بستجيل دخوله.",root, 255,255,0, true) 
            playSoundFrontEnd (root, 45 )

  end -- The End of " if " 
   
end -- The End of " function login " 
addEventHandler("onPlayerLogin",root, login) 

 

Edited by Ahmed Ly

76561198264399996.png

 

 

 

 

Posted

انت أصلا مستعمل 
outputChatBox 
يعني راح ينزل في الشات ..
ورينا كودك الي استعملته عشان تخليه يطلع في توب بار شات

Signature removed by administrator due to large images

Posted
function login() 
  if hasObjectPermissionTo(source,"command.mute") then
exports.xrkillmessages:outputMessage("[AdminSystem]: * The administration has logged in. " .. getPlayerName(source) .. "|  لقد قام الأدمن بستجيل دخوله.",root, 255,255,0, true) 
            playSoundFrontEnd (root, 45 )

  end -- The End of " if " 
   
end -- The End of " function login " 
addEventHandler("onPlayerLogin",root, login) 

 

Posted
function login() 
  if hasObjectPermissionTo(source,"command.mute") then
 exports.topbarchat:sendClientMessage("[AdminSystem]: * The administration has logged in. " .. getPlayerName(source) .. "|  لقد قام الأدمن بستجيل دخوله.",root, 255,255,0) 
            playSoundFrontEnd (root, 45 )

  end -- The End of " if " 
   
end -- The End of " function login " 
addEventHandler("onPlayerLogin",root, login) 

 

76561198264399996.png

 

 

 

 

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