HassoN Posted May 18, 2014 Share Posted May 18, 2014 السلام عليكم ورحمة الله وبركاته كيفكم شباب؟ ان شاء الله بخير الزبدهة يا عيال انا مسوي مود فيب لما تكتب /vip تفتح لوحة الفيب بسس لما اكتبها تجي الوحة لكل الي بالسيرفر -------- Client Side function guiToggleVisible () triggerServerEvent("trying",localPlayer) end addCommandHandler("vip",guiToggleVisible) addCommandHandler("Vip",guiToggleVisible) addCommandHandler("VIP",guiToggleVisible) addEvent("showW",true) addEventHandler("showW",root, function () if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) guiSetVisible(wnd,false) showCursor(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end ) ---------- Server Side addEvent("trying",true) addEventHandler("trying",root, function () local accName = getAccountName(getPlayerAccount(client)) if getElementType(client) == "player" and isObjectInACLGroup("user." .. accName, aclGetGroup("VIP")) then triggerClientEvent("showW",client) end end ) Link to comment
</Mr.Tn6eL> Posted May 19, 2014 Share Posted May 19, 2014 كود السيرفر addCommandHandler("vip", function(plr) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(plr)), aclGetGroup("VIP")) then triggerClientEvent(plr, "showW", plr) end end) كود الكلنت addEvent("showW",true) addEventHandler("showW",root, function () if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) guiSetVisible(wnd,false) showCursor(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end ) Link to comment
HassoN Posted May 19, 2014 Author Share Posted May 19, 2014 كود السيرفر addCommandHandler("vip", function(plr) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(plr)), aclGetGroup("VIP")) then triggerClientEvent(plr, "showW", plr) end end) كود الكلنت addEvent("showW",true) addEventHandler("showW",root, function () if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) guiSetVisible(wnd,false) showCursor(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) end end ) مشككور أخوي ماقصرت 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