Jump to content

طلب كود [تم الافادة] 1


SycroX

Recommended Posts

  • Replies 73
  • Created
  • Last Reply

Top Posters In This Topic

انا فاهم

  
function checkboxBleepWhenClicked() 
    if ( getElementType(source) == "gui-checkbox" ) then -- Is the element clicked a checkbox? 
        if ( guiCheckBoxGetSelected(source) ) then 
            playSoundFrontEnd(1) -- If the checkbox is selected play sound 1. 
        else 
            playSoundFrontEnd(2) -- If the checkbox isn't selected play sound 2. 
        end 
    end 
end 
addEventHandler("onClientGUIClick", root, checkboxBleepWhenClicked, false) 
  

فاهم دي وش معناها بس دي للأصوات يعني لو الجاي شك بوكس منداس عليه تسوي صوت 1 و لو انشال تسوي صوت 2

الحين انا ابي اغير صوت 1 و 2 لي انها لما ادوس علها تخفي الشات

و لما اشلها ترجعه

Link to comment
طيب فهمت بس الحين كيف اوقف الشات بوكس له ايفنت او فانكشن ؟

**

يعدل على كود السبورت شات ويسوي تحقق قبل أظهار الشات يسوي تحقق أن الشيك بوكس أختاره ولا لا ذذذذ

guiCheckBoxGetSelected 

**

واسمه فنكشن مو فانكشن

أعتقد عندي فكرة أحسن لكن ما ادري إذا تنجح أو لا

الفكرة هي :

تخليه من يختار الشيء من الشيك بوكس

يسوي حذف للقريد ليست الي هو الشات

يعني تسوي تايمر كل شوي يحذف القريد ليست

كل ثانية

بس تسوي لاق اعتقد

Link to comment
انا فاهم
  
function checkboxBleepWhenClicked() 
    if ( getElementType(source) == "gui-checkbox" ) then -- Is the element clicked a checkbox? 
        if ( guiCheckBoxGetSelected(source) ) then 
            playSoundFrontEnd(1) -- If the checkbox is selected play sound 1. 
        else 
            playSoundFrontEnd(2) -- If the checkbox isn't selected play sound 2. 
        end 
    end 
end 
addEventHandler("onClientGUIClick", root, checkboxBleepWhenClicked, false) 
  

فاهم دي وش معناها بس دي للأصوات يعني لو الجاي شك بوكس منداس عليه تسوي صوت 1 و لو انشال تسوي صوت 2

الحين انا ابي اغير صوت 1 و 2 لي انها لما ادوس علها تخفي الشات

و لما اشلها ترجعه

أنت سويه زي ما تبي

Link to comment

لا اخي الي مسويه حبي + لو طرحته يضيع تعب ايام هطرح الجريد لست

  
        gridlist = guiCreateGridList(9, 23, 641, 401, false, wnd) 
        guiGridListAddColumn(gridlist, "Messages", 1) 
  
addEvent("Send_Support_Msg", true) 
addEventHandler("Send_Support_Msg", root, 
function (Msg, hour, minute, second) 
    local rooow = guiGridListAddRow(gridlist) 
    local player = getPlayerName(localPlayer) 
    local playerName = getPlayerName(source)                         
    guiGridListSetItemText (gridlist, rooow, 1, "["..hour..":"..minute..":"..second.."]", false, false) 
    guiGridListSetItemText (gridlist, rooow, 2, playerName..":", false, false) 
    guiGridListSetItemText (gridlist, rooow, 3, Msg, false, false) 
    guiGridListSetItemColor(gridlist, rooow, 1, 255, 200, 0) 
    guiGridListSetItemColor(gridlist, rooow, 2, 255, 200, 0) 
    guiGridListSetItemColor(gridlist, rooow, 3, 255, 200, 0) 
    if guiCheckBoxGetSelected(showinchat) == true then 
        outputChatBox("*[support System] [support] "..playerName..": "..Msg, 255, 200, 0) 
    end 
    if guiCheckBoxGetSelected(play_sound) == true then 
        playSoundFrontEnd(16) 
    end 
end 
  
addEvent("Send_Player_Msg", true) 
addEventHandler("Send_Player_Msg",root, 
function (Msg, hour, minute, second) 
    local rooow = guiGridListAddRow(gridlist) 
    local selectedPlayer = guiGridListGetItemText(online,guiGridListGetSelectedItem(online),1) 
    local player = getPlayerName(localPlayer) 
    local playerName = getPlayerName(source)                         
    guiGridListSetItemText(gridlist, rooow, 1, "["..hour..":"..minute..":"..second.."]", false, false) 
    guiGridListSetItemText(gridlist, rooow, 2, playerName..":", false, false) 
    guiGridListSetItemText(gridlist, rooow, 3, Msg, false, false) 
    guiGridListSetItemColor(gridlist, rooow, 1, 255, 0, 0) 
    guiGridListSetItemColor(gridlist, rooow, 2, 255, 0, 0) 
    guiGridListSetItemColor(gridlist, rooow, 3, 255, 0, 0) 
    if guiCheckBoxGetSelected(showinchat) == true then 
        outputChatBox("*[support System] [Player] "..playerName..": "..Msg, 255, 0, 0) 
    end 
    if guiCheckBoxGetSelected(play_sound) == true then 
        playSoundFrontEnd(16) 
    end 
end 
  
  
  
  
  
  

Link to comment
طيب وش كود اخفاء جريد لست ؟
guiGridListClear  

:lol::lol: ^

@ V#AhMeD,-09

الكود الي حآطه ناقص أقواس وناقص اندات مستحيل يشتغل

أطرح لي كود أنشاء الشيك بوكس الي يظهر الشات وكود أظهار الشات الرسالة يعني

Edited by Guest
Link to comment
لا اخي الي مسويه حبي + لو طرحته يضيع تعب ايام هطرح الجريد لست
  
        gridlist = guiCreateGridList(9, 23, 641, 401, false, wnd) 
        guiGridListAddColumn(gridlist, "Messages", 1) 
  
addEvent("Send_Support_Msg", true) 
addEventHandler("Send_Support_Msg", root, 
function (Msg, hour, minute, second) 
    local rooow = guiGridListAddRow(gridlist) 
    local player = getPlayerName(localPlayer) 
    local playerName = getPlayerName(source)                         
    guiGridListSetItemText (gridlist, rooow, 1, "["..hour..":"..minute..":"..second.."]", false, false) 
    guiGridListSetItemText (gridlist, rooow, 2, playerName..":", false, false) 
    guiGridListSetItemText (gridlist, rooow, 3, Msg, false, false) 
    guiGridListSetItemColor(gridlist, rooow, 1, 255, 200, 0) 
    guiGridListSetItemColor(gridlist, rooow, 2, 255, 200, 0) 
    guiGridListSetItemColor(gridlist, rooow, 3, 255, 200, 0) 
    if guiCheckBoxGetSelected(showinchat) == true then 
        outputChatBox("*[support System] [support] "..playerName..": "..Msg, 255, 200, 0) 
    end 
    if guiCheckBoxGetSelected(play_sound) == true then 
        playSoundFrontEnd(16) 
    end 
end 
  
addEvent("Send_Player_Msg", true) 
addEventHandler("Send_Player_Msg",root, 
function (Msg, hour, minute, second) 
    local rooow = guiGridListAddRow(gridlist) 
    local selectedPlayer = guiGridListGetItemText(online,guiGridListGetSelectedItem(online),1) 
    local player = getPlayerName(localPlayer) 
    local playerName = getPlayerName(source)                         
    guiGridListSetItemText(gridlist, rooow, 1, "["..hour..":"..minute..":"..second.."]", false, false) 
    guiGridListSetItemText(gridlist, rooow, 2, playerName..":", false, false) 
    guiGridListSetItemText(gridlist, rooow, 3, Msg, false, false) 
    guiGridListSetItemColor(gridlist, rooow, 1, 255, 0, 0) 
    guiGridListSetItemColor(gridlist, rooow, 2, 255, 0, 0) 
    guiGridListSetItemColor(gridlist, rooow, 3, 255, 0, 0) 
    if guiCheckBoxGetSelected(showinchat) == true then 
        outputChatBox("*[support System] [Player] "..playerName..": "..Msg, 255, 0, 0) 
    end 
    if guiCheckBoxGetSelected(play_sound) == true then 
        playSoundFrontEnd(16) 
    end 
end 
  
  
  
  
  
  

ههههههههههههههه

اخوك ما يعرف يسوي كود فتح اللوحة بزر

ومسوي سبورت سستم

بالله ؟؟؟

قول الحقيقة توك مسوي اللوحة وتبي أكواد جاهزة

Edited by Guest
Link to comment
طيب وش كود اخفاء جريد لست ؟
guiGridListClear  

:lol::lol: ^

@ V#AhMeD,-09

الكود الي حآطه ناقص أقواس وناقص اندات مستحيل يشتغل

أطرح لي كود أنشاء الشيك بوكس الي يظهر الشات وكود أظهار الشات الرسالة يعني

? :?

Link to comment
  
Server 
-------------------- 
addEvent("Request_Message", true) 
addEventHandler("Request_Message", root, 
function (Msg) 
    acc = getAccountName(getPlayerAccount(source)) 
    local time = getRealTime () 
    local hour = time.hour 
    local minute = time.minute 
    local second = time.second 
    if isObjectInACLGroup ( "user.1"..acc, aclGetGroup("Console")) or isObjectInACLGroup ( "user.1"..acc, aclGetGroup("Admin")) or 
    isObjectInACLGroup ( "user.1"..acc, aclGetGroup("Support")) or isObjectInACLGroup ( "user.1"..acc, aclGetGroup("LVL1")) or  
    isObjectInACLGroup ( "user."..acc, aclGetGroup("LVL2")) or isObjectInACLGroup ( "user."..acc, aclGetGroup("LVL3")) or  
    isObjectInACLGroup ( "user."..acc, aclGetGroup("LVL4")) or isObjectInACLGroup ( "user."..acc, aclGetGroup("LVL5")) or  
    isObjectInACLGroup ( "user."..acc, aclGetGroup("Leader")) or  
    isObjectInACLGroup ( "user."..acc, aclGetGroup("Manager")) then 
        triggerClientEvent(root, "Send_Support_Msg", source, Msg, hour, minute, second) 
    else 
        triggerClientEvent(root, "Send_Player_Msg", source, Msg, hour, minute, second) 
    end 
end 
) 
  
  
  

الي فوق سيرفر

الي تحت كلنت

  
  
        gridlist = guiCreateGridList(9, 23, 641, 401, false, wnd) 
        guiGridListAddColumn(gridlist, "Messages", 1) 
  
  
bindKey("F5", "down", 
function () 
    if guiGetVisible(wnd1) == true then 
        guiSetVisible(wnd1, false) 
        guiSetVisible(Rules_Window, false) 
        guiSetVisible(Mute_Window, false) 
        guiSetInputEnabled(false) 
    elseif not isCursorShowing () then 
        guiSetVisible(wnd1, true) 
        guiSetInputEnabled(true) 
    end 
end 
) 
  
  
addEvent("Send_Support_Msg", true) 
addEventHandler("Send_Support_Msg", root, 
function (Msg, hour, minute, second) 
    local rooow = guiGridListAddRow(gridlist) 
    local player = getPlayerName(localPlayer) 
    local playerName = getPlayerName(source)                         
    guiGridListSetItemText (gridlist, rooow, 1, "["..hour..":"..minute..":"..second.."]", false, false) 
    guiGridListSetItemText (gridlist, rooow, 2, playerName..":", false, false) 
    guiGridListSetItemText (gridlist, rooow, 3, Msg, false, false) 
    guiGridListSetItemColor(gridlist, rooow, 1, 255, 200, 0) 
    guiGridListSetItemColor(gridlist, rooow, 2, 255, 200, 0) 
    guiGridListSetItemColor(gridlist, rooow, 3, 255, 200, 0) 
    if guiCheckBoxGetSelected(showinchat) == true then 
        outputChatBox("*[support System] [support] "..playerName..": "..Msg, 255, 200, 0) 
    end 
    if guiCheckBoxGetSelected(play_sound) == true then 
        playSoundFrontEnd(16) 
    end 
end 
) 
  
  
addEvent("Send_Player_Msg", true) 
addEventHandler("Send_Player_Msg",root, 
function (Msg, hour, minute, second) 
    local rooow = guiGridListAddRow(gridlist) 
    local selectedPlayer = guiGridListGetItemText(online,guiGridListGetSelectedItem(online),1) 
    local player = getPlayerName(localPlayer) 
    local playerName = getPlayerName(source)                         
    guiGridListSetItemText(gridlist, rooow, 1, "["..hour..":"..minute..":"..second.."]", false, false) 
    guiGridListSetItemText(gridlist, rooow, 2, playerName..":", false, false) 
    guiGridListSetItemText(gridlist, rooow, 3, Msg, false, false) 
    guiGridListSetItemColor(gridlist, rooow, 1, 255, 0, 0) 
    guiGridListSetItemColor(gridlist, rooow, 2, 255, 0, 0) 
    guiGridListSetItemColor(gridlist, rooow, 3, 255, 0, 0) 
    if guiCheckBoxGetSelected(showinchat) == true then 
        outputChatBox("*[support System] [Player] "..playerName..": "..Msg, 255, 0, 0) 
    end 
    if guiCheckBoxGetSelected(play_sound) == true then 
        playSoundFrontEnd(16) 
    end 
end 
) 
  
  
  
  

تفضل كامل

Link to comment

بدل الكلنت سآيد

-- # Client Side : 
  
 gridlist = guiCreateGridList(9, 23, 641, 401, false, wnd) 
 guiGridListAddColumn(gridlist, "Messages", 1) 
  
bindKey("F5", "down", 
function () 
    if guiGetVisible(wnd1) == true then 
        guiSetVisible(wnd1, false) 
        guiSetVisible(Rules_Window, false) 
        guiSetVisible(Mute_Window, false) 
        guiSetInputEnabled(false) 
    elseif not isCursorShowing () then 
        guiSetVisible(wnd1, true) 
        guiSetInputEnabled(true) 
    end 
end 
) 
  
  
addEvent("Send_Support_Msg", true) 
addEventHandler("Send_Support_Msg", root, 
function (Msg, hour, minute, second) 
    local rooow = guiGridListAddRow(gridlist) 
    local player = getPlayerName(localPlayer) 
    local playerName = getPlayerName(source)   
    if guiCheckBoxGetSelected(lolCheck) == false then    
    guiGridListSetItemText (gridlist, rooow, 1, "["..hour..":"..minute..":"..second.."]", false, false) 
    guiGridListSetItemText (gridlist, rooow, 2, playerName..":", false, false) 
    guiGridListSetItemText (gridlist, rooow, 3, Msg, false, false) 
    guiGridListSetItemColor(gridlist, rooow, 1, 255, 200, 0) 
    guiGridListSetItemColor(gridlist, rooow, 2, 255, 200, 0) 
    guiGridListSetItemColor(gridlist, rooow, 3, 255, 200, 0) 
    if guiCheckBoxGetSelected(showinchat) == true then 
        outputChatBox("*[support System] [support] "..playerName..": "..Msg, 255, 200, 0) 
    end 
    if guiCheckBoxGetSelected(play_sound) == true then 
        playSoundFrontEnd(16) 
             end 
           end 
        end 
  ) 
  
  
addEvent("Send_Player_Msg", true) 
addEventHandler("Send_Player_Msg",root, 
function (Msg, hour, minute, second) 
    local rooow = guiGridListAddRow(gridlist) 
    local selectedPlayer = guiGridListGetItemText(online,guiGridListGetSelectedItem(online),1) 
    local player = getPlayerName(localPlayer) 
    local playerName = getPlayerName(source)                         
    guiGridListSetItemText(gridlist, rooow, 1, "["..hour..":"..minute..":"..second.."]", false, false) 
    guiGridListSetItemText(gridlist, rooow, 2, playerName..":", false, false) 
    guiGridListSetItemText(gridlist, rooow, 3, Msg, false, false) 
    guiGridListSetItemColor(gridlist, rooow, 1, 255, 0, 0) 
    guiGridListSetItemColor(gridlist, rooow, 2, 255, 0, 0) 
    guiGridListSetItemColor(gridlist, rooow, 3, 255, 0, 0) 
    if guiCheckBoxGetSelected(showinchat) == true then 
        outputChatBox("*[support System] [Player] "..playerName..": "..Msg, 255, 0, 0) 
    end 
    if guiCheckBoxGetSelected(play_sound) == true then 
        playSoundFrontEnd(16) 
    end 
end 
) 

بإسم التشيك بوكس حق أظهار وأخفاء الشات lolCheck سطر 28 بدل كلمة

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...