Jump to content

ابي مساعده في تاني سيكريبت


developer

Recommended Posts

  
Event : "onPlayerChat" 
  
# function 
isObjectInACLGroup 
string.gsub 
outputChatBox 
getRootElement 
cancelEvent 
  

Edit ;

جرب ، كود سيرفر

هذا مثال بس عشان تعرف كيف تضبط كودك ومثال ع الاكواد الي فوق

  
 function setMsg( message, type ) 
     if type == 1 and message then 
          local Acc = getAccountName(getPlayerAccount(source)) 
          if isObjectInACLGroup ( "user."..Acc, aclGetGroup(GroupName) ) then 
                cancelEvent(       ); 
                outputChatBox( "#fff000"..string.gsub(getPlayerName(source),"#%x%x%x%x%x%x", "").." #ffffff: "..message, root, 255,255,255, true) 
          else return end; 
      else 
      return cancelEvent( false ) 
end 
addEventHandler("onPlayerChat", root, setMsg) 
  

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