-
Posts
3,267 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tete omar
-
سيرفر local vehicle = {} -- نسوي جدول السيارات addEvent("spawnVeh",true) -- الترايقر حق السيرفر addEventHandler("spawnVeh",root, -- ... function() if ( isElement( vehicle[ client ] ) then -- اذا السيارة حقت اللاعب موجودة destroyElement( vehicle[ client ] ) -- يخفيها end local x, y, z = getElementPosition( client ) -- ناخذ احداثيات مكانه vehicle[ client ] = createVehicle( 432, x, y, z ) -- نصنع السيارة داخل الجدول عشان يكون سهل الوصول اليها warpPedIntoVehicle( client, vehicle[ client ] ) -- نحط اللاعب الي ضغط على الزر داخل السيارة end )
-
كلنت addEventHandler("onClientGUIClick", guiRoot, function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("spawnVeh",localPlayer) end end ) سيرفر addEvent("spawnVeh",true) addEventHandler("spawnVeh",root, function() local x, y, z = getElementPosition( client ) local vehlcie = createVehicle(411, x, y, z) warpPedIntoVehicle(client, vehlcie) end )
-
على الرحب والسعة
-
كلنت addEventHandler("onClientGUIClick", guiRoot, function() if ( source == GUIEditor_Button[1] ) then triggerServerEvent("createVeh",localPlayer) elseif( source == GUIEditor_Button[2] ) then triggerServerEvent("createVeh",localPlayer) elseif( source == GUIEditor_Button[3] ) then triggerServerEvent("createVeh",localPlayer) end end ) سيرفر local theVehicle = {} addEvent("createVeh",true) addEventHandler("createVeh",root, function() if ( isElement(theVehicle[ client ]) ) then destroyElement(theVehicle[ client ]) end local x, y, z = getElementPosition( client ) theVehicle[ client ] = createVehicle( 411, x, y , z ) warpPedIntoVehicle(client, theVehicle[ client ]) end ) بس كان عندي ملاحظة : انت متآكد ان هالسكربت حق شراء سيارات ؟ ثانياً انا استغربت انك تسوي السيارات في الكلنت :\ السيارات في الكلنت ما تصلح تنركب , فـ كان الافضل تسوي ترايقر للسيرفر
-
العفو ^^
-
GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(438,145,502,430,"",false) GUIEditor_Button[1] = guiCreateButton(322,385,5,5,"",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(10,23,483,398,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("xCar#1",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(24,131,120,34,"350000",false,GUIEditor_Tab[1]) GUIEditor_Button[3] = guiCreateButton(27,304,120,34,"10000",false,GUIEditor_Tab[1]) GUIEditor_Grid[1] = guiCreateGridList(181,17,295,345,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"s",0.2) guiGridListAddColumn(GUIEditor_Grid[1],"معلومات عن السيارتين",0.2) GUIEditor_Memo[1] = guiCreateMemo(190,47,261,312,"========================\n\nNameCar: Camry\n\nManeyCar: 350000 SR\n\n\n===========================\n\nNameCar: ddsn\n\nManeyCar: 10000 SR\n\n\n===========================\n\nBy: x7MoDy",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("xCar#2",GUIEditor_TabPanel[1]) local theVehicle = {} addEventHandler("onClientGUIClick", guiRoot, function() if ( source == GUIEditor_Button[1] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) elseif( source == GUIEditor_Button[2] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) elseif( source == GUIEditor_Button[3] ) then if ( isElement(theVehicle[ localPlayer ]) )then destroyElement(theVehicle[ localPlayer ]) end local x, y, z = getElementPosition( localPlayer ) theVehicle[ localPlayer ] = createVehicle( 411, x, y + 3, z ) end end )
-
لاكن كود تابل هو الابسط من كودي على أية حال .. على الرحب والسعة
-
تقصد تبي تسوي بلب عشوائية على كم بك اب ؟ يعني مثلاً عندك [ pickup 1, pickup 2, pickup 3 ] تبي ال [ blip ] تكون على واحدة فيهم عشوائياً ؟
-
addEventHandler("onClientGUIClick", guiRoot, function() if source == اسم الزر then setPedAnimation(localPlayer, "ped", "WOMAN_walknorm") setTimer(setPedAnimation,5000,1,localPlayer) end end ) جرب ذا
-
math.random( v1, v2 ) v2 لازم تكون اصغر من v1 ولا مايصلح ولها استخدامات كثيرة مهب بس في الارقام العشوائية مع اني استخدمت رقم عشوائي في المثال لكن عطاني نص عشوائي e.g: aText = { 'السلام عليكم'; 'كيف الحال'; 'بخير الحمدلله'; } outputChatBox( aText[ math.random( #aText ) ] ) وانت الحين اقتبست تعليقي على اساس انو فيه خطاء في اللي كاتبه مثلاً ؟
-
تقصد كان الخطاء في ال player والـ source ?
-
function banSerial( player, command, banned, reason ) if ( banned ) then -- اذا كتب اسم اللاعب المراد تبنيده local theBanned = getPlayerFromName( banned ) -- يبحث عن اسم هذا اللاعب if ( theBanned ) then -- اذا ووجد local theBannedSerial = getPlayerSerial( theBanned ) -- يحضر سيرياله addBan( nil, nil, theBannedSerial , player, reason ) -- ثم يضعه هنا end end end addCommandHandler( "ban-serial", banSerial ) -- سوف يحدث كل هذا عند كتابة -- ban-serial function banSerial( source, command, noob, reason ) if ( noob ) then local theNoob = getPlayerFromName( noob ) if ( theNoob ) then local theNoobSerial = getPlayerSerial( theNoob ) addBan( nil, nil, theNoobSerial, source, reason ) end end end addCommandHandler( "ban-serial", banSerial ) ما فيه فرق بين المثال الاجنبي والمثال العربي ...
-
خلاص عرفت الخطاء شكراً للمساعدة + تم التصليح https://wiki.multitheftauto.com/wiki/AR/addBan
-
لا للأسف ما عرفته والمثال مآخوذ من هنا https://wiki.multitheftauto.com/wiki/AddBan .... تبي تضيف اهلاً وسهلاً
-
يا خسآآآرة سوبر هوت خسر
-
حط مثآل آخر وانا احطه بدل المثال 2 اذا تبي تساعد
-
صفحات تم ترجمتها addBan - اضافة باند للسيرفر removeBan - ازالة باند من السيرفر getBanUsername - احضار اسم الباند ( الرجاء التعديل قليلاً )1 reloadBans - تحميل الباندات من ملف xml ( اشكرك يا سوراآ ) صفحات تم تعديلها getBanReason getBanNick getBanIP getBanAdmin ( اشكرك يا مجنون فيك للمساهمة ) صفحات تحتاج للترجمة (لا يوجد) تم بحمد الله ترجمة جميع وظائف الباند شكر خاص لــ مجنون فيك سورا
-
math.random(3,5) هذي تجيب لك ارقام عشوائية ما بين ال 3 وال 5 + ممكن تصير كذا math.random(5) راح يعطيك ارقام عشوائية تصل إلى 5
-
مو لازم يعني ... مشكور على الرد
-
root هو المختصر حق getRootElement() وهو كل شيء باللعبة شوف element source هو شيء معرف من قبل الام تي اي يعني المصدر , كل حدث له مصدر يعني source مثلاً onPlayerJoin ال source هنا هو اللاعب الذي دخل not هو ليس يعني مثلاً if not(isPedInVehicle(ped,vehicle)then -- اذا اللاعب مو في سيارة .. ~= هو لا يساوي == تقارن بين شيء وشيء local viewtopic.php?f=119&t=51228 then هذي تجي بعد if elseif تجي بعد if
-
He meant instead all of that he can simply use killPed()
-
What do you really think , all your posts is barely stupid questions.. edit: if you think i'm a little kid like you , then you better back it off
-
سوسو وين الجدول حق vehicle ؟؟ عشان تسوي vehicle[player]
-
But i still need help