Jump to content

طلب فنشنكات


Recommended Posts

6 minutes ago, DmAr511 said:

    if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Vip")) then   -- عطني الوحة اذا ماتعرف

addEventHandler("onResourceStart",resourceRoot,function()
  accountname = getAccountName(getPlayerAccount(thePlayer))
if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("SuperModretor")) then
addCommandHandler("vip",function(player)
triggerClientEvent(player,"show",player)

end
end
end
end)
 ---هكي صح؟

 

Link to comment
-- Server Side
addCommandHandler ( "VIP",
    function (player)
        local account = getPlayerAccount ( player )
        if account and not isGuestAccount(account) then
            local accName = getAccountName(account)
                if isObjectInACLGroup("user."..accName, aclGetGroup("SuperModretor")) then
                    triggerClientEvent ( player, "Open", player ) 
            end
        end
    end
);



--# Client Side

addEvent ( "Open", true )
addEventHandler ( "Open", root,
    function ( )
        if guiGetVisible ( اسم لوحتك ) then 
            	guiSetVisible ( اسم لوحتك, false ) 
                showCursor ( false ) 
        else 
                guiSetVisible ( اسم لوحتك, true ) 
                showCursor ( true ) 
        end
    end
) ;

بدل بس اسم لوحتك
 

Edited by Deativated
Link to comment
14 minutes ago, DmAr511 said:

    if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Vip")) then   -- عطني الوحة اذا ماتعرف

استخدم 

code 

عند طرح اكوادك

فقط لانها مسالة تنظيمية

 

Link to comment
6 hours ago, DmAr511 said:

    if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Vip")) then   -- عطني الوحة اذا ماتعرف

 

6 hours ago, Deativated said:

-- Server Side
addCommandHandler ( "VIP",
    function (player)
        local account = getPlayerAccount ( player )
        if account and not isGuestAccount(account) then
            local accName = getAccountName(account)
                if isObjectInACLGroup("user."..accName, aclGetGroup("SuperModretor")) then
                    triggerClientEvent ( player, "Open", player ) 
            end
        end
    end
);



--# Client Side

addEvent ( "Open", true )
addEventHandler ( "Open", root,
    function ( )
        if guiGetVisible ( اسم لوحتك ) then 
            	guiSetVisible ( اسم لوحتك, false ) 
                showCursor ( false ) 
        else 
                guiSetVisible ( اسم لوحتك, true ) 
                showCursor ( 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...