Jump to content

# تمت الافادة # طلب فنكشات


Recommended Posts

مشكووورر يازاحف

كذا الكود يحط اسم اللاعب اذا كتب

؟؟

  
addCommandHandler("PlayerName", 
  function() 
   local localPlayerName = getPlayerName(getLocalPlayer()) 
   outputChatBox(localPlayerName) 
  end 
) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (    ) 
   if ( source == button1 ) then 
        table.insert(edit_, guiGetText(edit)) 
        if #guiGetText(memo) == 1 then 
            guiSetText(..localPlayerName,memo,table.concat(edit_,' ')) 
     else 
            guiSetText(..localPlayerName,memo,table.concat(edit_,'\n')) 
       end 
   end 
end ) 

Link to comment

addEventHandler ( "onClientGUIClick", resourceRoot, function (    ) 
   if ( source == button1 ) then 
        table.insert(edit_, getPlayerName ( localPlayer )..": "..guiGetText(edit).."") 
        if #guiGetText(memo) == 1 then 
            guiSetText(memo,table.concat(edit_,' ')) 
     else 
            guiSetText(memo,table.concat(edit_,'\n')) 
       end 
   end 
end ) 
Link to comment

addEventHandler ( "onClientGUIClick", resourceRoot, function (    ) 
   if ( source == button1 ) then 
        table.insert(edit_, getPlayerName ( localPlayer )..": "..guiGetText(edit).."") 
        if #guiGetText(memo) == 1 then 
            guiSetText(memo,table.concat(edit_,' ')) 
            guiSetText( edit, "" ) 
     else 
            guiSetText(memo,table.concat(edit_,'\n')) 
            guiSetText( edit, "" ) 
       end 
   end 
end ) 
Link to comment

اخررر طلب

صح الكود ذا

اذا كان في القروب ذا مايكتب اسمه يكتب الكلمة ذي

Support Manger

addEventHandler ( "onClientGUIClick", resourceRoot, function (    ) 
   if ( source == button1 ) then 
        table.insert(edit_, getPlayerName ( localPlayer )..": "..guiGetText(edit).."") 
        if isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "xSupp" ) ) then 
        (": Support Manger"..guiGetText(edit).."") 
        if #guiGetText(memo) == 1 then 
            guiSetText(memo,table.concat(edit_,' ')) 
            guiSetText( edit, "" ) 
     else 
            guiSetText(memo,table.concat(edit_,'\n')) 
            guiSetText( edit, "" ) 
       end 
   end 
end ) 

Link to comment

addEventHandler ( "onClientGUIClick", resourceRoot, function (    ) 
   if ( source == button1 ) then 
        if ( getElementData ( localPlayer, "GroupData" ) ) then 
        table.insert(edit_, "[ Support ] : "..guiGetText(edit).."") 
        else 
        table.insert(edit_, getPlayerName ( localPlayer )..": "..guiGetText(edit).."") 
        end 
        if #guiGetText(memo) == 1 then 
            guiSetText(memo,table.concat(edit_,' ')) 
            guiSetText( edit, "" ) 
     else 
            guiSetText(memo,table.concat(edit_,'\n')) 
            guiSetText( edit, "" ) 
       end 
   end 
end ) 

addEventHandler ( "onResourceStart", resourceRoot, function (  ) 
      for _,players in ipairs ( getElementsByType ( "player" ) ) do 
        if  ( getPlayerAccount( players ) and not isGuestAccount( getPlayerAccount( players ) ) ) then 
         if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( players ) ), aclGetGroup ( "xSupp" ) ) ) then 
                 setElementData ( players, "GroupData", true ) 
         end 
     end 
   end 
end )   
  
addEventHandler ( "onPlayerLogin", root, function ( _,acc ) 
      if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "xSupp" ) ) ) then 
           setElementData ( source, "GroupData", true ) 
    end 
end ) 
  
addEventHandler ( "onPlayerLogout", root, function (  ) 
      if ( getElementData ( source, "GroupData" ) ) then 
           removeElementData ( source, "GroupData" ) 
    end 
end ) 
Link to comment
حياك الله .

هلا زاحف شوف انا افكر في شي

هل في فنكشن او ايفنت

يسوي ريستارت للميمو

يعني اذا اغلق اللوحة يسوي ريستارت للميمو

اان مالقيت في الويكي الا ذاا

guiCreateMemo  
guiMemoSetReadOnly  
guiMemoSetCaretIndex  
guiMemoGetCaretIndex 

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