Mohamed_king Posted October 24, 2016 Share Posted October 24, 2016 السلام عليكم ممكن مساعدة هادا مود نبي انحي امتع تيم وانخلي قروب بس ومشكورين local window = guiCreateWindow(353, 146, 323, 358, "Cars Group", false) guiWindowSetSizable(window, false) guiSetVisible (window,false) guiSetAlpha(window, 1.00) local gridlist = guiCreateGridList(33, 46, 256, 253, false, window) guiGridListAddColumn(gridlist, "Car", 0.9) local button2 = guiCreateButton(29, 311, 68, 35, "Use", false, window) guiSetProperty(button2, "NormalTextColour", "ffff0000") local button = guiCreateButton(288, 25, 26, 22, "X", false, window) guiSetProperty(button, "NormalTextColour", "FFFF0000") local car = { 487,488,555,484,487,355,489,500,465.436,239,635,,} for _,vehicle in ipairs (car) do local row = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) end addEventHandler("onClientGUIClick",button2, function () local carxx = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) if carxx == "" then return outputChatBox("Plese Use Car",255, 0, 0,false) end triggerServerEvent("carx",localPlayer,carxx) guiSetVisible(window,false) showCursor(false) end,false ) ------------ local car = createMarker (2481.1818847656,-1700.1997070313,13.527667999268, "cylinder", 2.5, 244 , 255, 255, 255 ) addEventHandler('onClientMarkerHit', car, function ( hitPlayer ) if ( hitPlayer == localPlayer ) and getPlayerTeam( hitPlayer ) and getTeamName( getPlayerTeam( hitPlayer ) ) == 'No Team' and getElementData( hitPlayer, 'Group' ) == 'SIS' then guiSetVisible ( window ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) addEventHandler( "onClientGUIClick", button , function () guiSetVisible(window,false) showCursor(false,false) end ) Link to comment
Abdul KariM Posted October 24, 2016 Share Posted October 24, 2016 عليكم السلام مافهمت شي صراحة من الي تقوله تكلم عربية فصحى Link to comment
Mohamed_king Posted October 24, 2016 Author Share Posted October 24, 2016 Just now, Abdul KariM said: عليكم السلام مافهمت شي صراحة من الي تقوله تكلم عربية فصحى اخوي عرفت تيم اريد ازالته من كود انا حاولتت ازالته بس مايصدف معاي فهمتني ؟ Link to comment
Abdul KariM Posted October 24, 2016 Share Posted October 24, 2016 يعني لادخل الماركر مايتحقق من التيم حقه يتحقق من القروب فقط ؟ Link to comment
Mohamed_king Posted October 24, 2016 Author Share Posted October 24, 2016 Just now, Abdul KariM said: يعني لادخل الماركر مايتحقق من التيم حقه يتحقق من القروب فقط ؟ نعم هكي قصدي Link to comment
Abdul KariM Posted October 24, 2016 Share Posted October 24, 2016 استبدل السطر 36 بهذا if ( hitPlayer == localPlayer ) getElementData( hitPlayer, 'Group' ) == 'SIS' then Link to comment
Mohamed_king Posted October 24, 2016 Author Share Posted October 24, 2016 3 minutes ago, Abdul KariM said: استبدل السطر 36 بهذا if ( hitPlayer == localPlayer ) getElementData( hitPlayer, 'Group' ) == 'SIS' then تمام الحين بجرب 18 minutes ago, Abdul KariM said: استبدل السطر 36 بهذا if ( hitPlayer == localPlayer ) getElementData( hitPlayer, 'Group' ) == 'SIS' then استبدلته اخي بس ماركر مابده يطهر Link to comment
Abdul KariM Posted October 24, 2016 Share Posted October 24, 2016 وريني كودك بعد ماعدلت عليه Link to comment
Mohamed_king Posted October 24, 2016 Author Share Posted October 24, 2016 15 minutes ago, Abdul KariM said: وريني كودك بعد ماعدلت عليه local window = guiCreateWindow(353, 146, 323, 358, "Cars Group", false) guiWindowSetSizable(window, false) guiSetVisible (window,false) guiSetAlpha(window, 1.00) local gridlist = guiCreateGridList(33, 46, 256, 253, false, window) guiGridListAddColumn(gridlist, "Car", 0.9) local button2 = guiCreateButton(29, 311, 68, 35, "Use", false, window) guiSetProperty(button2, "NormalTextColour", "ffff0000") local button = guiCreateButton(288, 25, 26, 22, "X", false, window) guiSetProperty(button, "NormalTextColour", "FFFF0000") local car = { 487, } for _,vehicle in ipairs (car) do local row = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, row, 1,getVehicleNameFromModel (tonumber( vehicle )), false, false ) end addEventHandler("onClientGUIClick",button2, function () local carxx = guiGridListGetItemText ( gridlist, guiGridListGetSelectedItem ( gridlist ), 1 ) if carxx == "" then return outputChatBox("Plese Use Car",255, 0, 0,false) end triggerServerEvent("carx",localPlayer,carxx) guiSetVisible(window,false) showCursor(false) end,false ) ------------ local car = createMarker (1435.68225,2856.49048,9.82031, "cylinder", 2, 0 , 255, 0, 255 ) addEventHandler('onClientMarkerHit', car, function ( hitPlayer ) if ( hitPlayer == localPlayer ) getElementData( hitPlayer, 'Group' ) == 'SIS' then guiSetVisible ( window ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) addEventHandler( "onClientGUIClick", button , function () guiSetVisible(window,false) showCursor(false,false) end ) Link to comment
Abdul KariM Posted October 24, 2016 Share Posted October 24, 2016 استبدل سطر 36 بهذا نسيت احط الاند if ( hitPlayer == localPlayer ) and getElementData( hitPlayer, 'Group' ) == 'SIS' then 1 Link to comment
Mohamed_king Posted October 24, 2016 Author Share Posted October 24, 2016 1 minute ago, Abdul KariM said: استبدل سطر 36 بهذا نسيت احط الاند if ( hitPlayer == localPlayer ) and getElementData( hitPlayer, 'Group' ) == 'SIS' then تواني وارد عليك 8 minutes ago, Abdul KariM said: استبدل سطر 36 بهذا نسيت احط الاند if ( hitPlayer == localPlayer ) and getElementData( hitPlayer, 'Group' ) == 'SIS' then اشتغل مشكور اخي 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