#-Mr.FaNaN Posted July 21, 2016 Share Posted July 21, 2016 السلام عليكم ورحمة الله وبركاته .. انا مسوي لوحة بقريد ليست مثلا لما اضغط على ال row ينقلني لمكان معين ! مثلا اي بوتون احط ماني فاهم ولا شيئ به Link to comment
Adham Posted July 21, 2016 Share Posted July 21, 2016 "onClientGUIClick" -- button or grid setElementPosition -- warp to xyz Link to comment
#-Mr.FaNaN Posted July 21, 2016 Author Share Posted July 21, 2016 طيب شو احط ؟ زي الكود ذا مثلا ؟ guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "# BiDaYa || البداآية", false, false) guiGridListSetItemColor(GUIEditor.gridlist[2], 0, 1, 4, 107, 18, 255) يعني احط GUIEditor.gridlist[2], 0, 1 ?? Link to comment
Adham Posted July 21, 2016 Share Posted July 21, 2016 الفهمته منك لما يحدد البدايه ينتقل علي ممكان ونت التحدد المكان عن طريق xyz -- جرب addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if source == gridlist then local sel = guiGridListGetSelectedItem( grid ) local text = guiGridListGetItemText( grid, sel,1 ) if text == "# BiDaYa || البداآية" then setElementPosition ( localPlayer, x, y, z ) end end end ) Link to comment
' A F . Posted July 21, 2016 Share Posted July 21, 2016 ^ يستخدم الجدأول احسن + guiGridListAddRow guiGridListSetItemText guiGridListSetItemData onClientGUIClick guiGridListGetSelectedItem guiGridListGetItemData + unpack setElementPosition Link to comment
Kara Posted July 21, 2016 Share Posted July 21, 2016 استخدم الجداول احسن فكرة لعبه متعبه local amaken ={ {"السي جي",x,y,z,}, {"الملاهي",x,y,z,}, } TheButton = guiCreateButton(....) Thegridlist = guiCreateGridList(....) for i,row in ipairs(amaken) do local rw = guiGridListAddRow(Thegridlist) guiGridListSetItemText(Thegridlist,rw,1,i.."-"..row[1],false,true) guiGridListSetItemData(Thegridlist,rw,1,{row[2],row[3],row[4]}) end function onwarp () if source == TheButton then local grid = guiGridListGetSelectedItem(Thegridlist) if grid and grid ~= nil then fadeCamera(false) setTimer(fadeCamera,2000,1,true) local x,y,z = unpack(guiGridListGetItemData(Thegridlist,grid,1)) setTimer(setElementPosition,1900,1,localPlayer,x,y,z) end end end addEventHandler("onClientGUIClick",root,onwarp) Link to comment
Abdul KariM Posted July 21, 2016 Share Posted July 21, 2016 (= لو خليتوه يحاول كان افضل , نعرف انكم فاهمين Link to comment
Kara Posted July 21, 2016 Share Posted July 21, 2016 سوال ليه الكامبيرا شئ من التأثيرات وكذا (شي زايد) 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