Jump to content

طلب فكشنات ,#


Adham

Recommended Posts

شو المشكله هنا؟

انا عاوز لما يغير اسمه يجي في القريد لست

addEventHandler('onClientPlayerChangeNick', root, 
function(oldNick, newNick) 
rw = guiGridListAddRow (GUIEditor.gridlist[1]) 
guiGridListSetItemText (GUIEditor.gridlist[1],rw,1,"  ".. oldNick .." is now known as " .. newNick",false,false) 
end 
end 
) 
  
 
Link to comment
addEventHandler('onClientPlayerChangeNick', root, 
function(oldNick, newNick) 
rw = guiGridListAddRow (GUIEditor.gridlist[1]) 
guiGridListSetItemText (GUIEditor.gridlist[1],rw,1,"  "..oldNick.." is now known as "..newNick..,false,false) 
end 
end 
) 
  
  
  
  
  

في شي اسمه دي بق !

Link to comment

طيب انا عامل سبورت سيستم وعاوز يضعط انتر يبعت رساله

يعني انا عامل لما يضعط علي Send

يبعت الرساله انا عاوزها يضعط انتر يبعت الرساله

وش استخدم ؟ فكشن

Link to comment

طيب الكود ذا لبيبعت رسالة في القريد لست

كيف احطو الحدث وفيه حدث الضعط؟

  
addEventHandler("onClientGUIClick",GUIEditor.button[1],function () 
    if guiGetText(GUIEditor.edit[1]) ~= '' then 
    triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) 
    guiSetText (GUIEditor.edit[1], "" ) 
    else 
    guiSetEnabled(GUIEditor.button[1], false) 
     setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
    end, false) 
    addEvent("sendmessage2",true) 
    addEventHandler("sendmessage2",root, function(Name,Text) 
    local gg = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, Name:gsub("#%x%x%x%x%x%x", "") .. " : " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) 
    if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then 
     outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) 
    end 
    end) 
Link to comment

الحين تسمي الفنكشن وتحط اسم الفنكشن في الارقمنت الثالث

اذذا ما فهمتني

امسسك ,

  
function Rg3AsmkL3bh( button ) 
if button == "enter" then 
if source == GUIEditor.button[1] then 
    if guiGetText(GUIEditor.edit[1]) ~= '' then 
    triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) 
    guiSetText (GUIEditor.edit[1], "" ) 
    else 
    guiSetEnabled(GUIEditor.button[1], false) 
     setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[1], true) 
    end 
    end 
    end 
addEventHandler("onClientGUIClick",root,Rg3AsmkL3bh) 
addEventHandler("onClientKey",root,Rg3AsmkL3bh) 
  
    addEvent("sendmessage2",true) 
    addEventHandler("sendmessage2",root, function(Name,Text) 
    local gg = guiGridListAddRow(GUIEditor.gridlist[1]) 
    guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1, Name:gsub("#%x%x%x%x%x%x", "") .. " : " .. Text , false, false) 
    guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 0, 255, 0, 255) 
    if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then 
     outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) 
    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...