Ahmed Abo-elezz Posted November 11, 2014 Share Posted November 11, 2014 شباب اريد عندما اللاعب يدخل المركر لاظهر له شئ الا ان كان الاسكن الخاص به 133 car1 = createMarker ( -1717.96106, -124.25090, 2.5, "cylinder", 1.5, 255, 255, 0, 170 ) if ( Model == 133 ) then addEventHandler ( "onClientMarkerHit", car1, function () GUIEditor = { memo = {}, button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(0, .2, 0.33, 0.57, "", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 20, 283, 407, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[1] = guiCreateButton(297, 23, 147, 34, "سائق 1", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(297, 61, 147, 34, "سائق 2", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(297, 100, 147, 34, "سائق 3", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(408, 391, 37, 36, "X", false, GUIEditor.window[1]) showCursor ( true ) end ) end Link to comment
EH10 Posted November 11, 2014 Share Posted November 11, 2014 جـرب الـكود * . GUIEditor = { memo = {}, button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(0, .2, 0.33, 0.57, "", true) guiSetVisible( GUIEditor.window[1], false ) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 20, 283, 407, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[1] = guiCreateButton(297, 23, 147, 34, "سائق 1", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(297, 61, 147, 34, "سائق 2", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(297, 100, 147, 34, "سائق 3", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(408, 391, 37, 36, "X", false, GUIEditor.window[1]) marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 160 ) addEventHandler("onClientMarkerHit",root, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then if ( source == marker ) then if ( getElementModel ( localPlayer ) == 133 ) then guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end end end end ) Link to comment
Ahmed Abo-elezz Posted November 11, 2014 Author Share Posted November 11, 2014 جـرب الـكود * . GUIEditor = { memo = {}, button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(0, .2, 0.33, 0.57, "", true) guiSetVisible( GUIEditor.window[1], false ) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.memo[1] = guiCreateMemo(9, 20, 283, 407, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.button[1] = guiCreateButton(297, 23, 147, 34, "سائق 1", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(297, 61, 147, 34, "سائق 2", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(297, 100, 147, 34, "سائق 3", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(408, 391, 37, 36, "X", false, GUIEditor.window[1]) marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 255, 0, 160 ) addEventHandler("onClientMarkerHit",root, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then if ( source == marker ) then if ( getElementModel ( localPlayer ) == 133 ) then guiSetVisible( GUIEditor.window[1], true ) showCursor(true) end end end end ) انت ما فهمتنى انا عملت الزراير لكن اريد كود المودل فقط Link to comment
EH10 Posted November 11, 2014 Share Posted November 11, 2014 if ( getElementModel ( localPlayer ) == 133 ) then Link to comment
Ahmed Abo-elezz Posted November 11, 2014 Author Share Posted November 11, 2014 if ( getElementModel ( localPlayer ) == 133 ) 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