1REDBULL Posted April 6, 2014 Share Posted April 6, 2014 بسم الله GUIEditor = { tab = {}, window = {}, tabpanel = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(371, 203, 356, 282, "V.I.P |BY REDBULL", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 18, 336, 254, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("الاسلحه", GUIEditor.tabpanel[1]) GUIEditor.button[1] = guiCreateButton(12, 26, 99, 41, "MINIGUN", false, GUIEditor.tab[1]) GUIEditor.button[2] = guiCreateButton(227, 26, 99, 41, "RPG", false, GUIEditor.tab[1]) GUIEditor.button[3] = guiCreateButton(227, 175, 99, 41, "MP4", false, GUIEditor.tab[1]) GUIEditor.button[4] = guiCreateButton(12, 175, 99, 41, "SHUTGUN", false, GUIEditor.tab[1]) GUIEditor.tab[2] = guiCreateTab("المركبات", GUIEditor.tabpanel[1]) GUIEditor.button[5] = guiCreateButton(13, 24, 106, 49, "RAINDANCE", false, GUIEditor.tab[2]) GUIEditor.button[6] = guiCreateButton(10, 164, 114, 48, "CARGOBOB", false, GUIEditor.tab[2]) GUIEditor.button[7] = guiCreateButton(219, 28, 107, 43, "RC BRAON", false, GUIEditor.tab[2]) GUIEditor.button[8] = guiCreateButton(218, 162, 108, 38, "RC RAIDER", false, GUIEditor.tab[2]) GUIEditor.tab[3] = guiCreateTab("الشخصيات", GUIEditor.tabpanel[1]) GUIEditor.button[9] = guiCreateButton(23, 25, 96, 43, "SKIN 1", false, GUIEditor.tab[3]) GUIEditor.button[10] = guiCreateButton(240, 171, 81, 41, "SKIN 2", false, GUIEditor.tab[3]) end ) زي ما تشوفون انا سويت لوحة خاصة لل VIP بس الي اطلبه منكم اني ابي الكود الي يخليه يظغط على GUIEditor.button[1] = guiCreateButton(12, 26, 99, 41, "MINIGUN", false, GUIEditor.tab[1]) يعطيه السلاح ونفس الشي حق السيارات و انا الحين ابي اخلي المود خاص لل VIP هل استخدم ذا الكود؟ local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then triggerClientEvent ( thePlayer, "GUIVIP", thePlayer) felse اذا الشي متعبكم خلوه بس اتمنا تفيدوني لأني مبتدء في البرمجه Link to comment
shwaeki Posted April 6, 2014 Share Posted April 6, 2014 giveWeapon createVehicle + القسم غلط Link to comment
The Killer Posted April 10, 2014 Share Posted April 10, 2014 GUIEditor = { tab = {}, window = {}, tabpanel = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(371, 203, 356, 282, "V.I.P |BY REDBULL", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 18, 336, 254, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("الاسلحه", GUIEditor.tabpanel[1]) GUIEditor.button[1] = guiCreateButton(12, 26, 99, 41, "MINIGUN", false, GUIEditor.tab[1]) GUIEditor.button[2] = guiCreateButton(227, 26, 99, 41, "RPG", false, GUIEditor.tab[1]) GUIEditor.button[3] = guiCreateButton(227, 175, 99, 41, "MP4", false, GUIEditor.tab[1]) GUIEditor.button[4] = guiCreateButton(12, 175, 99, 41, "SHUTGUN", false, GUIEditor.tab[1]) GUIEditor.tab[2] = guiCreateTab("المركبات", GUIEditor.tabpanel[1]) GUIEditor.button[5] = guiCreateButton(13, 24, 106, 49, "RAINDANCE", false, GUIEditor.tab[2]) GUIEditor.button[6] = guiCreateButton(10, 164, 114, 48, "CARGOBOB", false, GUIEditor.tab[2]) GUIEditor.button[7] = guiCreateButton(219, 28, 107, 43, "RC BRAON", false, GUIEditor.tab[2]) GUIEditor.button[8] = guiCreateButton(218, 162, 108, 38, "RC RAIDER", false, GUIEditor.tab[2]) GUIEditor.tab[3] = guiCreateTab("الشخصيات", GUIEditor.tabpanel[1]) GUIEditor.button[9] = guiCreateButton(23, 25, 96, 43, "SKIN 1", false, GUIEditor.tab[3]) GUIEditor.button[10] = guiCreateButton(240, 171, 81, 41, "SKIN 2", false, GUIEditor.tab[3]) end ) addEventHandler( "onClientGUIClick", root, function () if source == GUIEditor.button[1] then triggerServerEvent ("giveMINIGUN", localPlayer) elseif source == GUIEditor.button[2] then triggerServerEvent ("giveRPG", localPlayer) elseif source == GUIEditor.button[3] then triggerServerEvent ("giveM4", localPlayer) elseif source == GUIEditor.button[4] then triggerServerEvent ("giveSHUTGUN", localPlayer) end end) server side: addEvent ("giveMINIGUN", true) addEvent ("giveRPG", true) addEvent ("giveM4", true) addEvent ("giveSHUTGUN", true) addEventHandler ("giveMINIGUN", root, function () local accName = getAccountName ( getPlayerAccount (client) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then giveWeapon (client, 38, 100, true) else outputChatBox ("Only vip can take that gun.", client, 255, 0, 0) end end) addEventHandler ("giveRPG", root, function () local accName = getAccountName ( getPlayerAccount (client) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then giveWeapon (client, , 35, 100, true) else outputChatBox ("Only vip can take that gun.", client, 255, 0, 0) end end) addEventHandler ("giveM4", root, function () local accName = getAccountName ( getPlayerAccount (client) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then giveWeapon (client, 31, 100, true) else outputChatBox ("Only vip can take that gun.", client, 255, 0, 0) end end) addEventHandler ("giveSHUTGUN", root, fucntion () local accName = getAccountName ( getPlayerAccount (client) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "VIP" ) ) then giveWeapon (client, 26, 100, true) else outputChatBox ("Only vip can take that gun.", client, 255, 0, 0) 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