Jump to content

x[ تعديل ]x Support | سبورت


Recommended Posts

سلام عليكم يوم عامل سبورت سيسم شغاله تمام في المحلي

لاكن حطيتها في العالمي

محد يقدر يبعت رساله

كلنت

addEventHandler("onClientGUIClick",GUIEditor.button[2], 
function () 
    if guiGetText( GUIEditor.edit[1] ) ~= '' then 
        triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) 
        guiSetText ( GUIEditor.edit[1] , "" ) 
        guiSetEnabled( GUIEditor.button[2] , false) 
        setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[2], true) 
    end 
end) 
  
addEvent("sendmessage2",true) 
addEventHandler("sendmessage2",root, 
function(text,name) 
    local hour = getRealTime().hour 
    local minute = getRealTime().minute 
    local second = getRealTime().second+1 
    local gg = guiGridListAddRow(GUIEditor.gridlist[2]) 
        if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then 
            guiGridListSetItemText(GUIEditor.gridlist[2],gg, 1,   "["..tonumber(hour)..":"..tonumber(minute)..":" ..tonumber(second).."] [support] "..name:gsub("#%x%x%x%x%x%x", "")  ..": " .. text , false, false) 
            guiGridListSetItemColor(GUIEditor.gridlist[2],gg, 1, 0, 255, 0, 255) 
        elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then 
            guiGridListSetItemText(GUIEditor.gridlist[2],gg, 1,   "["..tonumber(hour)..":"..tonumber(minute)..":" ..tonumber(second).."] [Player] "..name:gsub("#%x%x%x%x%x%x", "")  ..": " .. text , false, false) 
            guiGridListSetItemColor(GUIEditor.gridlist[2],gg, 1, 255, 136, 0) 
        end 
end) 

سرفر

addEvent("support",true) 
addEventHandler("support",root, 
function ( text ) 
    if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source ) ),aclGetGroup ( "Support") ) ) then 
        triggerClientEvent ( root,"sendmessage2",root,getPlayerName ( source), text ) 
    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...