Sign in to follow this  
Mohamed_king

طلب فنشنكات

Recommended Posts

السلام عليكم انا عامل لوحة VIP

بدي فنشنكات اخليها ماتفتح الا للقروب Vip

Share this post


Link to post

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

Share this post


Link to post
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)
 ---هكي صح؟

 

Share this post


Link to post
-- 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

Share this post


Link to post
14 minutes ago, DmAr511 said:

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

استخدم 

code 

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

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

 

Share this post


Link to post
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
) ;

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

كودك شغال مشكور

Share this post


Link to post
53 minutes ago, Mohamed_king said:

 

كودك شغال مشكور

حياك الله

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.