Jump to content

شباب مساعده بسيطه


Recommended Posts

  
function isPlayerAdmin(source) 
    local user = "user."..getAccountName ( getPlayerAccount ( source ) ) 
    for id, object in ipairs ( aclGroupListObjects ( aclGetGroup ( "سم القروب هنآ" ) ) ) do 
        if object == user then 
            triggerClientEvent("ClientGui",getRootElement(),source) 
        end 
    end 
end 
  

Me KaBoS

Link to comment

-- Client Side --

function open() 
    triggerServerEvent("onOpen",getLocalPlayer()) 
end 
bindKey("F4","down",open) 
  
function vip() 
    if guiGetVisible(GUIEditor_Window[1]) then 
        guiSetVisible(GUIEditor_Window[1],false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
    else 
        guiSetVisible(GUIEditor_Window[1],true) 
        showCursor(true) 
        guiSetInputEnabled(true) 
    end 
end 
addEvent("openVIP",true) 
addEventHandler("openVIP",getRootElement(),vip) 

-- Server Side --

function open() 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
        triggerClientEvent("openVIP",getRootElement()) 
    end 
end 
addEvent("onOpen",true) 
addEventHandler("onOpen",getRootElement(),open) 

مجربة

Link to comment
  • Other Languages Moderators
-- Client Side --
function open() 
    triggerServerEvent("onOpen",getLocalPlayer()) 
end 
bindKey("F4","down",open) 
  
function vip() 
    if guiGetVisible(GUIEditor_Window[1]) then 
        guiSetVisible(GUIEditor_Window[1],false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
    else 
        guiSetVisible(GUIEditor_Window[1],true) 
        showCursor(true) 
        guiSetInputEnabled(true) 
    end 
end 
addEvent("openVIP",true) 
addEventHandler("openVIP",getRootElement(),vip) 

-- Server Side --

function open() 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
        triggerClientEvent("openVIP",getRootElement()) 
    end 
end 
addEvent("onOpen",true) 
addEventHandler("onOpen",getRootElement(),open) 

مجربة

function open() 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then 
        triggerClientEvent(source,"openVIP",source) 
    end 
end 
addEvent("onOpen",true) 
addEventHandler("onOpen",getRootElement(),open) 

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