K1NG Posted January 20, 2014 Share Posted January 20, 2014 ما بدلت الكودات بـ كودات جعفر اقولك بدلت كوادت جعفر بس مازبط GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(167,84,540,480,"لوحه الانشاء",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(31,48,195,83,"سيارة",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(158,167,5,5,"",false,GUIEditor_Button[1]) GUIEditor_Button[3] = guiCreateButton(292,48,195,83,"طياره",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(292,203,195,83,"دراجه صغيره",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(31,198,195,83,"قارب 1",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(31,337,195,83,"قارب 2",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(292,335,195,83,"دراجه كبيرة",false,GUIEditor_Window[1]) ----- guiSetVisible(GUIEditor_Window[1],false) bindKey ( "F7" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) -- addEventHandler ("onClientGUIClick", root, function () local x,y,z = getElementPosition(localPlayer) if ( source == GUIEditor_Button[1] ) then createVehicle ( 429, x,y,z ) outputChatBox("سياره") elseif ( source == GUIEditor_Button[3] ) then createVehicle ( 487, x,y,z ) outputChatBox("طائرة") elseif ( source == GUIEditor_Button[4] ) then createVehicle ( 481, x,y,z ) outputChatBox("دراجة") elseif ( source == GUIEditor_Button[5] ) then createVehicle ( 595, x,y,z ) outputChatBox("لقارب") elseif ( source == GUIEditor_Button[6] ) then createVehicle ( 473, x,y,z ) outputChatBox("لقارب") elseif ( source == GUIEditor_Button[7] ) then createVehicle ( 510, x,y,z ) outputChatBox("دراجه كبيرة") end end) هنااااا يعطيني سياره بس ما اقدر اركبها لانها كلنت وهميه يعني لازم اسوي ترايقر انا عادي ابغا بس اضغط على الزر تجيني السياره بدون ما يركبها تلقائي يعني لاااا تحط وااارب -- Client addEventHandler ( "onClientGUIClick", root, function ( ) local x, y, z = getElementPosition ( localPlayer ); if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( "giveCar", 429, x, y, z ); elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( "giveCar", 487, x, y, z ); elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( "giveCar", 481, x, y, z ); elseif ( source == GUIEditor_Button[5] ) then triggerServerEvent ( "giveCar", 595, x, y, z ); elseif ( source == GUIEditor_Button[6] ) then triggerServerEvent ( "giveCar", 473, x, y, z ); elseif ( source == GUIEditor_Button[7] ) then triggerServerEvent ( "giveCar", 510, x, y, z ); end end ); -- Server cTable = { }; addEvent ( "giveCar", true ); addEventHandler ( "giveCar", function ( ID, x, y, z ) if isElement ( cTable [ client ] ) then destroyElement ( cTable [ client ] ) cTable [ client ] = nil end cTable [ client ] = createVehicle ( ID, x, y + 2, z ); warpPedIntoVehicle ( client, cTable [ client ] ); end ); addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( cTable [ source ] ) then destroyElement ( cTable [ source ] ); end cTable [ source ] = nil end ); addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) destroyElement ( source ); end ); . فقط إحذف سطر رقم 9 من الكود الي بجانب سيرفر اتوقع كذا شفت الرد ؟؟؟ Link to comment
Simba Posted January 20, 2014 Author Share Posted January 20, 2014 والله يا كينق حذفت سطر رقم ٩ واخذت الاكواد الي حاطها انت بالرد كود جعفر بس ما اشتغلت والله Link to comment
K1NG Posted January 20, 2014 Share Posted January 20, 2014 والله يا كينق حذفت سطر رقم ٩ واخذت الاكواد الي حاطها انت بالرد كود جعفر بس ما اشتغلت والله .. ورني أكوادكـ الي ركبتها مع الميتا Link to comment
Simba Posted January 20, 2014 Author Share Posted January 20, 2014 هذا هي الاكوااد client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(167,84,540,480,"لوحه الانشاء",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(31,48,195,83,"سيارة",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(158,167,5,5,"",false,GUIEditor_Button[1]) GUIEditor_Button[3] = guiCreateButton(292,48,195,83,"طياره",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(292,203,195,83,"دراجه صغيره",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(31,198,195,83,"قارب 1",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(31,337,195,83,"قارب 2",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(292,335,195,83,"دراجه كبيرة",false,GUIEditor_Window[1]) ----- guiSetVisible(GUIEditor_Window[1],false) bindKey ( "F7" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) local x, y, z = getElementPosition ( localPlayer ); if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( "giveCar", 429, x, y, z ); elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( "giveCar", 487, x, y, z ); elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( "giveCar", 481, x, y, z ); elseif ( source == GUIEditor_Button[5] ) then triggerServerEvent ( "giveCar", 595, x, y, z ); elseif ( source == GUIEditor_Button[6] ) then triggerServerEvent ( "giveCar", 473, x, y, z ); elseif ( source == GUIEditor_Button[7] ) then triggerServerEvent ( "giveCar", 510, x, y, z ); end end ); server >>! cTable = { }; addEvent ( "giveCar", true ); addEventHandler ( "giveCar", function ( ID, x, y, z ) if isElement ( cTable [ client ] ) then destroyElement ( cTable [ client ] ) cTable [ client ] = nil end cTable [ client ] = createVehicle ( ID, x, y + 2, z ); end ); addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( cTable [ source ] ) then destroyElement ( cTable [ source ] ); end cTable [ source ] = nil end ); addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) destroyElement ( source ); end ); meta .. هذا رابط للمود عشان اذا تبي تحمله http://www.gulfup.com/?1gHZ5L Link to comment
AboShanab Posted January 21, 2014 Share Posted January 21, 2014 * Client Side ! GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(167,84,540,480,"لوحه الانشاء",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(31,48,195,83,"سيارة",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(158,167,5,5,"",false,GUIEditor_Button[1]) GUIEditor_Button[3] = guiCreateButton(292,48,195,83,"طياره",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(292,203,195,83,"دراجه صغيره",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(31,198,195,83,"قارب 1",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(31,337,195,83,"قارب 2",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(292,335,195,83,"دراجه كبيرة",false,GUIEditor_Window[1]) ----- guiSetVisible(GUIEditor_Window[1],false) bindKey ( "F7" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) local x, y, z = getElementPosition ( localPlayer ); if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( "giveCar", localPlayer, 429, x, y, z ); elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( "giveCar", localPlayer, 487, x, y, z ); elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( "giveCar", localPlayer, 481, x, y, z ); elseif ( source == GUIEditor_Button[5] ) then triggerServerEvent ( "giveCar", localPlayer, 595, x, y, z ); elseif ( source == GUIEditor_Button[6] ) then triggerServerEvent ( "giveCar", localPlayer, 473, x, y, z ); elseif ( source == GUIEditor_Button[7] ) then triggerServerEvent ( "giveCar", localPlayer, 510, x, y, z ); end end ); * Server Side ! cTable = { }; addEvent ( "giveCar", true ); addEventHandler ( "giveCar",root, function ( ID, x, y, z ) if isElement ( cTable [ client ] ) then destroyElement ( cTable [ client ] ) cTable [ client ] = nil end cTable [ client ] = createVehicle ( ID, x, y + 2, z ); end ); addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( cTable [ source ] ) then destroyElement ( cTable [ source ] ); end cTable [ source ] = nil end ); addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) destroyElement ( source ); end ); Link to comment
Simba Posted January 21, 2014 Author Share Posted January 21, 2014 * Client Side ! GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(167,84,540,480,"لوحه الانشاء",false) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Button[1] = guiCreateButton(31,48,195,83,"سيارة",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(158,167,5,5,"",false,GUIEditor_Button[1]) GUIEditor_Button[3] = guiCreateButton(292,48,195,83,"طياره",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(292,203,195,83,"دراجه صغيره",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(31,198,195,83,"قارب 1",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(31,337,195,83,"قارب 2",false,GUIEditor_Window[1]) GUIEditor_Button[7] = guiCreateButton(292,335,195,83,"دراجه كبيرة",false,GUIEditor_Window[1]) ----- guiSetVisible(GUIEditor_Window[1],false) bindKey ( "F7" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) local x, y, z = getElementPosition ( localPlayer ); if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( "giveCar", localPlayer, 429, x, y, z ); elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( "giveCar", localPlayer, 487, x, y, z ); elseif ( source == GUIEditor_Button[4] ) then triggerServerEvent ( "giveCar", localPlayer, 481, x, y, z ); elseif ( source == GUIEditor_Button[5] ) then triggerServerEvent ( "giveCar", localPlayer, 595, x, y, z ); elseif ( source == GUIEditor_Button[6] ) then triggerServerEvent ( "giveCar", localPlayer, 473, x, y, z ); elseif ( source == GUIEditor_Button[7] ) then triggerServerEvent ( "giveCar", localPlayer, 510, x, y, z ); end end ); * Server Side ! cTable = { }; addEvent ( "giveCar", true ); addEventHandler ( "giveCar",root, function ( ID, x, y, z ) if isElement ( cTable [ client ] ) then destroyElement ( cTable [ client ] ) cTable [ client ] = nil end cTable [ client ] = createVehicle ( ID, x, y + 2, z ); end ); addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( cTable [ source ] ) then destroyElement ( cTable [ source ] ); end cTable [ source ] = nil end ); addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) destroyElement ( source ); 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