Jump to content

برمجيون خشو


Recommended Posts

Client
GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(247, 202, 299, 272, "Time", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1],false) 
        GUIEditor.button[1] = guiCreateButton(9, 24, 108, 39, "Edit Time", false, GUIEditor.window[1]) 
        GUIEditor.edit[1] = guiCreateEdit(121, 32, 85, 27, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(211, 32, 73, 25, "", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(11, 228, 271, 26, "Created By KilleR | v.1.5", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) 
  
        GUIEditor.button[2] = guiCreateButton(195, 0, 74, 22, "×", false, GUIEditor.label[1]) 
  
        GUIEditor.label[2] = guiCreateLabel(27, 102, 237, 61, "طـــــــــــــــــآرهــــــــــــــــ", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 96, 254, 0)     
    end 
) 
  
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, 
function (    ) 
if ( source == GUIEditor.button[1] ) then 
local hours = guiGetText ( GUIEditor.edit[1] ) 
local mins = guiGetText ( GUIEditor.edit[2] ) 
setTime ( tonumber ( hours ),tonumber ( mins ) ) 
elseif ( source == GUIEditor.button[2] ) then 
guiSetVisible ( GUIEditor.window[1], false ) 
showCursor ( false ) 
end 
end ) 
  
addEvent ( "OpenWindow", true ) 
addEventHandler ( "OpenWindow", root, 
function (    ) 
    guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
end ) 
  

Server

local Groups = { 
"Level 4", 
"Level 5", 
"Level 6", 
"Head.Admin", 
"Console", 
} 
  
addCommandHandler ( "TimeEdit", 
function ( p ) 
    for _,Server in ipairs ( Groups ) do 
                if ( isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(p)),aclGetGroup(  Server ) ) ) then 
            triggerClientEvent ( p, "OpenWindow", p ) 
            break 
        end 
    end 
end ) 

جرب ذا حبيبي انا مجربه وربي

Edited by Guest
Link to comment
كودي شتغل وش تسوي انت الحين ض1 ؟

هو يبي يغير التايم للعنصر الي ضغط

هذا هو كودك

Client
local Groups = { 
"Level 4", 
"Level 5", 
"Level 6", 
"Head.Admin", 
"Console", 
} 
  
addCommandHandler ( "TimeEdit", 
function ( p ) 
    for _,Server in ipairs ( Groups ) do 
                if ( isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(p)),aclGetGroup(  "Server" ) ) ) then 
            triggerClientEvent ( p, "OpenWindow", p ) 
        end 
    end 
end ) 

if ( isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(p)),aclGetGroup(  "Server" ) ) ) then 

Server كودك راح يتحقق أنه بالقروب الي اسمه

وأعتقد أنه قال أنه يبيها بالقروب هاذي

Groups = { 
"Level 4", 
"Level 5", 
"Level 6", 
"Head.Admin", 
"Console" 
} 

والمفروض أنك توقـف اللوب بعدما تحقق التحقق وهو أنه في قروب واحد من هاذي القروبات

بالنسبة لصاحب الموضوع سوي ترايقر

Link to comment

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

بعطل الزر انا وعطلته

---

سويت ذي اللوحة عشان ماحد يخرب

وابيها لكل الموجودين بالسيرفر

مو للي ضغط بس

Link to comment

--Client

GUIEditor = { 
    button = {}, 
    window = {}, 
    label = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(247, 202, 299, 272, "Time", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1],false) 
        GUIEditor.button[1] = guiCreateButton(9, 24, 108, 39, "Edit Time", false, GUIEditor.window[1]) 
        GUIEditor.edit[1] = guiCreateEdit(121, 32, 85, 27, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(211, 32, 73, 25, "", false, GUIEditor.window[1]) 
        GUIEditor.label[1] = guiCreateLabel(11, 228, 271, 26, "Created By KilleR | v.1.5", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) 
  
        GUIEditor.button[2] = guiCreateButton(195, 0, 74, 22, "×", false, GUIEditor.label[1]) 
  
        GUIEditor.label[2] = guiCreateLabel(27, 102, 237, 61, "طـــــــــــــــــآرهــــــــــــــــ", false, GUIEditor.window[1]) 
        guiLabelSetColor(GUIEditor.label[2], 96, 254, 0)     
    end 
) 
  
  
  
addEventHandler ( "onClientGUIClick", resourceRoot, 
function (    ) 
if ( source == GUIEditor.button[1] ) then 
local hours = guiGetText ( GUIEditor.edit[1] ) 
local mins = guiGetText ( GUIEditor.edit[2] ) 
triggerServerEvent("Time",localPlayer,hours,mins) 
elseif ( source == GUIEditor.button[2] ) then 
guiSetVisible ( GUIEditor.window[1], false ) 
showCursor ( false ) 
end 
end ) 
  
addEvent ( "OpenWindow", true ) 
addEventHandler ( "OpenWindow", root, 
function (    ) 
    guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ) 
    showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) 
end ) 
  
  

--Server

local Groups = { 
"Level 4", 
"Level 5", 
"Level 6", 
"Head.Admin", 
"Console", 
} 
  
addCommandHandler ( "TimeEdit", function ( p ) 
if not getPlayerAccount ( p ) or isGuestAccount(getPlayerAccount ( p )) then return end 
    for _,v in ipairs ( Groups ) do 
        if isObjectInACLGroup( "user."..getAccountName( getPlayerAccount ( p ) ), aclGetGroup ( v )) then 
            triggerClientEvent ( p, "OpenWindow", p ) 
            break 
        end 
    end 
end) 
  
addEvent("Time",true) 
addEventHandler("Time",root, 
function(hours,mins) 
setTime(tonumber(hours),tonumber(mins)) 
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...