SmoKing Posted November 15, 2012 Share Posted November 15, 2012 السلام عليكم شباب كيف اخلي الازرار في الجنب يعني لو سويت شوب مابي الازرار فوق ابي على اليسار لو ممكن تفيدوني Link to comment
Tete omar Posted November 15, 2012 Share Posted November 15, 2012 انت تسوي شوبك لحالك , ولا تحسب ان الشوب ذا له برمجة لحاله , لا , الشوب ذا تبرمجه انت بنفسك , على كيف كيفك Link to comment
SmoKing Posted November 15, 2012 Author Share Posted November 15, 2012 ادري بس كيف اخلي الازرار على اليساار Link to comment
Tete omar Posted November 15, 2012 Share Posted November 15, 2012 سؤالك ما له معنى , اذا قصدك تعدل على شوبات الناس , ماراح اساعدك اذا تبي تصمم نافذة وازرار واشياء زي كذا حمل هالمود https://community.multitheftauto.com/ind ... includes=1 Link to comment
SmoKing Posted November 15, 2012 Author Share Posted November 15, 2012 انت مافهمت انا سويت ششوب ريس والازرار طلعت لي فوق ولا عرفت اعدله والي ابيه كيف احط الازرار على اليسار Link to comment
Tete omar Posted November 15, 2012 Share Posted November 15, 2012 هذي مشكلة تصميمك مو مشكلة برمجة سوي واحد جديد .. او حط كودك وانا اجربه Link to comment
SmoKing Posted November 15, 2012 Author Share Posted November 15, 2012 Client root = getRootElement() localPlayer = getLocalPlayer() outputChatBox("#ffffffRacePanel By #ff0000SmoKing",0,255,0,true) tabPanel = guiCreateTabPanel(650,0,150,600,false,shopWindow) ------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------- info = guiCreateTab("info",tabPanel) playerPing = guiCreateLabel(6,120,300,70,'Your ping:',false,info) guiLabelSetColor(playerPing,0,255,0) guiSetText ( playerPing, getPlayerPing(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerPing,"Your ping :"..getPlayerPing(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerMoney = guiCreateLabel(6,150,300,70,'Your Money:',false,info) guiLabelSetColor(playerMoney,0,255,0) guiSetText ( playerMoney, getPlayerMoney(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerMoney,"Your Money :"..getPlayerMoney(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerTeam = guiCreateLabel(6,180,300,70,'Your Team:',false,info) guiLabelSetColor(playerTeam,0,255,0) guiSetText ( playerTeam, getPlayerTeam(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerTeam,"Your Team :"..getPlayerTeam(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerArmor = guiCreateLabel(6,210,300,70,'Your Armor:',false,info) guiLabelSetColor(playerArmor,0,255,0) guiSetText ( playerArmor, getPedArmor(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerArmor,"Your Armor :"..getPedArmor(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerSkin = guiCreateLabel(6,240,300,70,'Your Skin:',false,info) guiLabelSetColor(playerSkin,0,255,0) guiSetText ( playerSkin, getPedSkin(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerSkin,"Your Skin :"..getPedSkin(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) playerWeapon = guiCreateLabel(6,270,300,70,'Your Weapon:',false,info) guiLabelSetColor(playerWeapon,0,255,0) guiSetText ( playerWeapon, getPedWeapon(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(playerWeapon,"Your Weapon :"..getPedWeapon(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) id = guiCreateLabel(6,300,300,70,'Your id:',false,info) guiLabelSetColor(id,0,255,0) guiSetText ( id, getElementRadius(localPlayer)) function refreshStats() if guiGetVisible(info,true) then else guiSetText(id,"Your id :"..getElementRadius(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) Label = guiCreateLabel(0,100,600,20,"_______________________________________________",false,info) tap1 = guiCreateTab("Register",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap1) pass = guiCreateEdit(97,94,171,33,"",false,tap1) lname = guiCreateLabel(10,46,85,33,"User",false,tap1) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"Password",false,tap1) guiLabelSetColor(lpass,255,0,0) onregister = guiCreateButton(46,151,113,34,"Register",false,tap1) info = guiCreateLabel(191,152,113,34,"__",false,tap1) guiLabelSetColor(info,0,255,0) --------------------------------------------------------------------------------------------------------- tap2 = guiCreateTab("Login",tabPanel) --------------------------------------------------------------------------------------------------------- user = guiCreateEdit(92,37,181,36,"",false,tap2) pass = guiCreateEdit(97,94,171,33,"",false,tap2) lname = guiCreateLabel(10,46,85,33,"User",false,tap2) guiLabelSetColor(lname,255,0,0) lpass = guiCreateLabel(12,98,85,33,"Password",false,tap2) guiLabelSetColor(lpass,255,0,0) onlogin = guiCreateButton(46,151,113,34,"Login",false,tap2) info = guiCreateLabel(191,152,113,34,"__",false,tap2) guiLabelSetColor(info,0,255,0) --------------------------------------------------------------------------------------------------------- tap3 = guiCreateTab("Thanks",tabPanel) --------------------------------------------------------------------------------------------------------- info = guiCreateButton(10,80,90,30,"Thanks to",false,tap3) info = guiCreateButton(110,190,90,30,"DeAtH",false,tap3) info = guiCreateButton(110,220,90,30,"PuNshEerHD",false,tap3) info = guiCreateButton(110,250,90,30,"DioR",false,tap3) info = guiCreateButton(110,280,90,30,"Mr.Khaled",false,tap3) tab4 = guiCreateTab("Send Money",tabPanel) setTimer( function() playerList = guiCreateGridList(6, 6, 144, 400, false, tab4) guiGridListSetSelectionMode(playerList, 2) local cl = guiGridListAddColumn(playerList, "Players List ...", 0.85) if ( cl and guiGetVisible(shopWindow) == true ) then for _,name in ipairs(getElementsByType("player")) do local rw = guiGridListAddRow(playerList) guiGridListSetItemText(playerList, rw, cl, getPlayerName(name), false, false) end addEventHandler("onClientGUIClick", playerList, onClickPlayerName) end end ,4000,0) nameEdit = guiCreateEdit(160,150,200,30,"",false,tab4) amountEdit = guiCreateEdit(160,200,100,30,"",false,tab4) sendBTN = guiCreateButton(150,280,130,36, "send", false,tab4) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == sendBTN ) then playerNick = guiGetText(nameEdit) amount = guiGetText(amountEdit) triggerServerEvent("onSendMoney", getLocalPlayer(), playerNick, amount) end end) ----------------------------------------------------------------------------------------------------------- bindKey ( "F2" , "down" , function() if ( guiGetVisible ( tabPanel ) == true ) then guiSetVisible ( tabPanel ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( tabPanel ) == false ) then guiSetVisible ( tabPanel ,true ) showCursor (false ) guiSetInputEnabled(true) playSound("1.wav") end end ) ------------------------------------------------------------------------------------------------------ -------------------------------------------------------------------بدايه ربط الازرار بالسيرفر server---------- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == onlogin ) then triggerServerEvent("onlogin",getLocalPlayer(), guiGetText(user), guiGetText(pass)) elseif ( source == onregister ) then triggerServerEvent("onregister",getLocalPlayer(), guiGetText(user), guiGetText(pass)) end end ) function onClickPlayerName () local name = guiGridListGetItemText(playerList, guiGridListGetSelectedItem(playerList), 1) guiSetText(nameEdit, name) end Link to comment
Tete omar Posted November 15, 2012 Share Posted November 15, 2012 صراحة كودك معقد وما له معنى وانا ما قلت لك عطني ملف الكلنت كلله انا اقولك عطني اكواد النوافذ يا آنسان عيد عمل الكود مرة ثانية بال guieditor Link to comment
SmoKing Posted November 15, 2012 Author Share Posted November 15, 2012 info = guiCreateTab("info",tabPanel) tap1 = guiCreateTab("Register",tabPanel) tap2 = guiCreateTab("Login",tabPanel) tap3 = guiCreateTab("Thanks",tabPanel) tab4 = guiCreateTab("Send Money",tabPanel) انا مابيها guieditor ابيها تصير على الجنب وخلاص :] Link to comment
punisher-AE Posted November 15, 2012 Share Posted November 15, 2012 هو قصده يكون التاب يمن النافذذه مو فوق النافذه Link to comment
nony Posted November 15, 2012 Share Posted November 15, 2012 اذا تقصد زي شوب تابل ذيك صور تضغط عليها ويتغير التاب Link to comment
Booo Posted November 15, 2012 Share Posted November 15, 2012 وعليكم السلام ورحمة الله وبركاته إستخدم الازرار الي على يسار guiCreateButton () وتستخدم معها guiCreateGridList guiSetVisible() ---------------------------------- function isPlayerInACLGroup(player, groupName) local account = getPlayerAccount(player) if not account then return false end local accountName = getAccountName(account) for _,name in ipairs( split(groupName,string.byte(',')) ) do local group = aclGetGroup(name) if group then for i,obj in ipairs(aclGroupListObjects(group)) do if obj == 'user.' .. accountName or obj == 'user.*' then return true end end end end return false end ---------------------------------- function getPlayerSpeed( thePlayer, mode ) if (isPedInVehicle( thePlayer ) == true) then vehicle = getPedOccupiedVehicle( thePlayer ) if (mode == "MPH" or mode == 1) then return math.floor(getDistanceBetweenPoints3D(0,0,0,getElementVelocity(vehicle)) * 100) end if (mode == "KMH" or mode == 2) then return math.floor(getDistanceBetweenPoints3D(0,0,0,getElementVelocity(vehicle)) * 100 * 1.61) end else return false 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