Mohamed_king Posted May 13, 2017 Share Posted May 13, 2017 السلام عليكم انا عامل لوحة VIP بدي فنشنكات اخليها ماتفتح الا للقروب Vip Link to comment
Jw8. Posted May 13, 2017 Share Posted May 13, 2017 if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Vip")) then -- عطني الوحة اذا ماتعرف Link to comment
Mohamed_king Posted May 13, 2017 Author Share Posted May 13, 2017 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
Adham Posted May 13, 2017 Share Posted May 13, 2017 (edited) -- 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 May 13, 2017 by Deativated Link to comment
Dr.Marco Posted May 13, 2017 Share Posted May 13, 2017 14 minutes ago, DmAr511 said: if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Vip")) then -- عطني الوحة اذا ماتعرف استخدم code عند طرح اكوادك فقط لانها مسالة تنظيمية Link to comment
Mohamed_king Posted May 13, 2017 Author Share Posted May 13, 2017 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
Adham Posted May 13, 2017 Share Posted May 13, 2017 53 minutes ago, Mohamed_king said: كودك شغال مشكور حياك الله Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now