Jump to content

تعديل كود


Recommended Posts

server

addEvent("onPlayerOpenChat",true) 
addEvent("onPlayerCloseChat",true) 
  
function playerchat() 
    if eventName == "onPlayerOpenChat" then 
        addEventHandler("onPlayerChat",root,chatbox) 
    elseif eventName == "onPlayerCloseChat" then 
        removeEventHandler("onPlayerChat",root,chatbox) 
    end 
end 
addEventHandler("onPlayerCloseChat",root,playerchat) 
addEventHandler("onPlayerOpenChat",root,playerchat) 
  
  
addEventHandler("onPlayerChat",root, 
function( text, type) 
  
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL3")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL4")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL5")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head-Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin-Ex")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
end 
end 
 ) 
 outputChatBox("[C.Console]: Chat has been open by " ..getPlayerName(player).. "  ",root,0,255,0,true) 
  
addEvent("onPlayerCloseChat",true) 
function chatbox( text, type ) 
  
  
     if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
  
  
  
                end 
  
end 
  
function createTeamsOnStart () 
    
    outputChatBox ("[#Chat Loked By Console] ", getRootElement(), 255, 255, 255, true) 
    roobB = createObject (2634, 308.10000610352, 2516.3999023438, 17.5, 0, 0, 186)  
    
    end 
  
  
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) 
  
 outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,255,255,true) 
  

clint

function Strong ( )     
guiSetVisible ( NameWindow,true ) 
showCursor ( true ) 
end 
addCommandHandler ( "c.c",Strong ) 
  
  
  
addEventHandler("onClientGUIClick",guiRoot, 
function() 
if  source == GUIEditor.button[1]  then 
triggerServerEvent("onPlayerOpenChat",localPlayer) 
elseif  source == GUIEditor.button[2]  then 
triggerServerEvent("onPlayerCloseChat",localPlayer) 
end 
end) 

في السيرفر لما بضغط بطن 1

المفروض يطلع كلام بالشات

و مش عاوزو يتكرر الكلام

و لما بضغط بطن 2

بردو يطلع كلام بلشات

و الكونسول بس هو الي يقضر يتكلم

اما الكلنت

ابيه يفتح من ف8 ب كلمة

c.c

Link to comment
server
addEvent("onPlayerOpenChat",true) 
addEvent("onPlayerCloseChat",true) 
  
function playerchat() 
    if eventName == "onPlayerOpenChat" then 
        addEventHandler("onPlayerChat",root,chatbox) 
    elseif eventName == "onPlayerCloseChat" then 
        removeEventHandler("onPlayerChat",root,chatbox) 
    end 
end 
addEventHandler("onPlayerCloseChat",root,playerchat) 
addEventHandler("onPlayerOpenChat",root,playerchat) 
  
  
addEventHandler("onPlayerChat",root, 
function( text, type) 
  
    if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL2")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL3")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL4")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL5")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head-Admin")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin-Ex")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
   elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FFFFFF* " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
end 
end 
 ) 
 outputChatBox("[C.Console]: Chat has been open by " ..getPlayerName(player).. "  ",root,0,255,0,true) 
  
addEvent("onPlayerCloseChat",true) 
function chatbox( text, type ) 
  
  
     if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
 cancelEvent() 
        local r, g, b = getPlayerNametagColor(source) 
        outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
  
  
  
  
  
                end 
  
end 
  
function createTeamsOnStart () 
    
    outputChatBox ("[#Chat Loked By Console] ", getRootElement(), 255, 255, 255, true) 
    roobB = createObject (2634, 308.10000610352, 2516.3999023438, 17.5, 0, 0, 186)  
    
    end 
  
  
addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) 
  
 outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,255,255,true) 
  

clint

function Strong ( )     
guiSetVisible ( NameWindow,true ) 
showCursor ( true ) 
end 
addCommandHandler ( "c.c",Strong ) 
  
  
  
addEventHandler("onClientGUIClick",guiRoot, 
function() 
if  source == GUIEditor.button[1]  then 
triggerServerEvent("onPlayerOpenChat",localPlayer) 
elseif  source == GUIEditor.button[2]  then 
triggerServerEvent("onPlayerCloseChat",localPlayer) 
end 
end) 

في السيرفر لما بضغط بطن 1

المفروض يطلع كلام بالشات

و مش عاوزو يتكرر الكلام

و لما بضغط بطن 2

بردو يطلع كلام بلشات

و الكونسول بس هو الي يقضر يتكلم

اما الكلنت

ابيه يفتح من ف8 ب كلمة

c.c

:arrowup::arrowup:

Link to comment

جرب ورد خبر

addEvent("onPlayeropenChat",true) 
addEventHandler("onPlayeropenChat",root,function () 
removeElementData(resourceRoot,"chat") 
end) 
addEvent("onPlayerCloseChat",true) 
addEventHandler("onPlayerCloseChat",root,function () 
setElementData (resourceRoot, "chat",true) 
end) 
------ 
addEventHandler("onPlayerChat",root, 
function( text, type) 
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
cancelEvent() 
local r, g, b = getPlayerNametagColor(source) 
return outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
else 
end 
if getElementData ( resourceRoot, "chat" ) == true then cancelEvent() return outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,255,255,true) end 
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL1")) then 
cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL2")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL3")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL4")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL5")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head-Admin")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin-Ex")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#FFFFFF* " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
    end 
    end 
     ) 
      

  
    addEventHandler("onClientGUIClick",resourceRoot, 
    function() 
    if  source == GUIEditor.button[1]  then 
    triggerServerEvent("onPlayeropenChat",localPlayer) 
    elseif  source == GUIEditor.button[2]  then 
    triggerServerEvent("onPlayerCloseChat",localPlayer) 
    end 
    end) 
Link to comment
جرب ورد خبر

addEvent("onPlayeropenChat",true) 
addEventHandler("onPlayeropenChat",root,function () 
removeElementData(resourceRoot,"chat") 
end) 
addEvent("onPlayerCloseChat",true) 
addEventHandler("onPlayerCloseChat",root,function () 
setElementData (resourceRoot, "chat",true) 
end) 
------ 
addEventHandler("onPlayerChat",root, 
function( text, type) 
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
cancelEvent() 
local r, g, b = getPlayerNametagColor(source) 
return outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
else 
end 
if getElementData ( resourceRoot, "chat" ) == true then cancelEvent() return outputChatBox ("[C.Console]: Chat has been locked by Console ", root,255,255,255,true) end 
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL1")) then 
cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL2")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL3")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL4")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("LVL5")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin1")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head-Admin")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin-Ex")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
      
       elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then 
     cancelEvent() 
            local r, g, b = getPlayerNametagColor(source) 
            outputChatBox("#FFFFFF* " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) 
      
    end 
    end 
     ) 
      

  
    addEventHandler("onClientGUIClick",resourceRoot, 
    function() 
    if  source == GUIEditor.button[1]  then 
    triggerServerEvent("onPlayeropenChat",localPlayer) 
    elseif  source == GUIEditor.button[2]  then 
    triggerServerEvent("onPlayerCloseChat",localPlayer) 
    end 
    end) 

شكرا علي تعبك

بس لو عاوز نفس الاكواد

لبوتن 3 و 4

بس الكلمة الي لما اضغط علي الزر

تطلع في الشات تتغير

-------------

Link to comment

شكرا علي تعبك

بس لو عاوز نفس الاكواد

لبوتن 3 و 4

بس الكلمة الي لما اضغط علي الزر

تطلع في الشات تتغير

-------------

مافهمت ممكن توضح اكثر

بطن 3 عاوزه يعمل زي بطن 1

بس الي هيتغير هيتكتب في الشات

[C.Console]: Chat has been enabled by ِAdan

و بطن 4 نفس الكلام يعمل زي بطن 2

بس الي هيتغير هيتكتب في الشات

[C.Console]: Chat has been locked by ِAdan

Link to comment

شكرا علي تعبك

بس لو عاوز نفس الاكواد

لبوتن 3 و 4

بس الكلمة الي لما اضغط علي الزر

تطلع في الشات تتغير

-------------

مافهمت ممكن توضح اكثر

بطن 3 عاوزه يعمل زي بطن 1

بس الي هيتغير هيتكتب في الشات

[C.Console]: Chat has been enabled by ِAdan

و بطن 4 نفس الكلام يعمل زي بطن 2

بس الي هيتغير هيتكتب في الشات

[C.Console]: Chat has been locked by ِAdan

يعني عايز اللى يقفل الشات او يفتحه يظهر اسمه صح ؟

Link to comment

اه اخي

+

احنا خلصنا بطن 1 و 2

فاضل 3 و 4

عاوزهم يعملو زي بطن 1 و 2

بس كده

يعني 1 بيفتح الشات

عاوز 3 كمان تفتح الشات

و مفس الكلام

2 تقفل الشات

و 4 تقفل الشات

Link to comment
اه اخي

+

احنا خلصنا بطن 1 و 2

فاضل 3 و 4

عاوزهم يعملو زي بطن 1 و 2

بس كده

يعني 1 بيفتح الشات

عاوز 3 كمان تفتح الشات

و مفس الكلام

2 تقفل الشات

و 4 تقفل الشات

طيب انسخ الترايقر وحطه فى بوتون 3 و4

Link to comment
اه اخي

+

احنا خلصنا بطن 1 و 2

فاضل 3 و 4

عاوزهم يعملو زي بطن 1 و 2

بس كده

يعني 1 بيفتح الشات

عاوز 3 كمان تفتح الشات

و مفس الكلام

2 تقفل الشات

و 4 تقفل الشات

طيب انسخ الترايقر وحطه فى بوتون 3 و4

تم شكرا

اخر شئ

كود اول ما اضغط علي بطن

مثلا

اول ما اضغط علي بطن 1

يفتح مود

و لما اضغط علي بطن 2

يقفل المود

Link to comment

ده مود عباره عن شات لوكال من هرف ه

طيب وضح وش تبي تسوي ؟

عاوز لما اضغط علي بطن 1

يفتح مود من لوحة الادمن اسمه

localchat-SaedAmer

و لما اضغط علي بطن 2 يقفلو

Link to comment

ده مود عباره عن شات لوكال من هرف ه

طيب وضح وش تبي تسوي ؟

عاوز لما اضغط علي بطن 1

يفتح مود من لوحة الادمن اسمه

localchat-SaedAmer

و لما اضغط علي بطن 2 يقفلو

لازم تطرح اكواد المود عشان اقدر اساعدك

اطرح ملف كلنت فقط

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