-
Posts
4,805 -
Joined
-
Last visited
-
Days Won
10
Everything posted by فاّرس
-
مع الخيل يا شقرا مايقصد قروب ACL (يعني مثل قروباآت حرب العصابات)
-
getAccountName getPlayerAccount isObjectInACLGroup moveObject
-
bindKey getPlayerAccount getAccountName isObjectInACLGroup
-
ما اشوف اي صعوبه ؟ وبعدين انت تبي تنشهر على حسآب النآس؟
-
فوق يقول سريالات محدده وبعدين يقول لسريال محدد, اذا تبيه لاكثر من سريال سوي جدول, Serials = { [1] = {"Serial"}, [2] = {"Serial2"} }
-
اي بس متى تبيها تظهر ؟
-
-- Client Side : GUIEditor = { checkbox = {}, window = {}, edit = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(157, 54, 466, 470, "~[ Made A Car | صناعة سيارة ]~", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) local font = guiCreateFont("3NAD.ttf") local font0 = guiCreateFont("AUTHOR.ttf", 12) GUIEditor.label[1] = guiCreateLabel(21, 25, 421, 82, "1- يجب أن تضع سريال اللاعب\n2- يجب وضع أسم اللاعب لأجل الشات والأملاك\n3- يجب أختيار نوع السيارة عن طريق وضع الأي دي الخاص بها\n4- إن لم يرد اللاعب دخان السيارة فأضغط خطأ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], font) guiLabelSetColor(GUIEditor.label[1], 255, 255, 0) GUIEditor.edit[1] = guiCreateEdit(186, 154, 256, 30, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(77, 154, 84, 40, "Serial", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], font0) GUIEditor.label[3] = guiCreateLabel(73, 224, 88, 38, "Name", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], font0) GUIEditor.edit[2] = guiCreateEdit(186, 232, 256, 30, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(83, 288, 72, 48, "ID", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], font0) GUIEditor.edit[3] = guiCreateEdit(186, 298, 118, 31, "", false, GUIEditor.window[1]) GUIEditor.checkbox[1] = guiCreateCheckBox(186, 355, 118, 22, "Yes", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[1], font0) GUIEditor.label[5] = guiCreateLabel(73, 355, 100, 40, "Car \"D5AN\"", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], font0) GUIEditor.checkbox[2] = guiCreateCheckBox(186, 377, 118, 22, "No", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[2], font0) GUIEditor.label[6] = guiCreateLabel(83, 420, 100, 40, "Arrow", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], font0) guiLabelSetHorizontalAlign(GUIEditor.label[6], "center", false) GUIEditor.checkbox[3] = guiCreateCheckBox(186, 438, 118, 22, "No", true, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[3], font0) GUIEditor.checkbox[4] = guiCreateCheckBox(186, 416, 118, 22, "Yes", false, false, GUIEditor.window[1]) guiSetFont(GUIEditor.checkbox[4], font0) GUIEditor.button[1] = guiCreateButton(317, 374, 139, 86, "Finish", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") guiSetFont(GUIEditor.button[1], font0) bindKey("[","down", function ( ) guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])); showCursor(guiGetVisible(GUIEditor.window[1])); end ); addEventHandler("onClientGUIClick",root, function () if ( source == GUIEditor.button[1] ) then local serial = guiGetText(GUIEditor.edit[1]); local name = guiGetText(GUIEditor.edit[2]) local ID = guiGetText(GUIEditor.edit[3]) triggerServerEvent("onVehicleStartEnter",localPlayer,serial,ID) end end ) -- Server Side : addEvent( "onVehicleStartEnter", true ) addEventHandler( "onVehicleStartEnter", getRootElement(), function(serial,ID) if tonumber(ID) then if (getPlayerSerial(source) == tostring(serial)) then local C = createVehicle(tonumber(ID), 1797.2901611328, 841.5078125, 10.643834114075 ) end end end) باقي عليك الاسم لاني ما فهمت وش تبي بالاسم اصلا , ضيف الاسم بالترايقر ,
-
يعني انت تبيه يطلع السيارة وتكون محفوظه على السريال ؟ يعني لو جا واحد ثاني يركبها ما يقدر بس الي طلعها ؟
-
بالتوفيق, + اذا هذا الاختصار اجل وش اسم السيرفر إن شاء الله تلقى الي يسآعدك
-
لازم تسوي النافذه والازرار, واذا ضغط زر SPAWN يطلع له سياره واذا ضغط مثلا زر ثاني يسحبها الاكواد الي تحتاجها, Event : onClientGUIClick. Functions : triggerServerEvent -- ترسل الترايقر للسيرفر getPlayerMoney -- تحدد الفلوس الي مع اللاعب takePlayerMoney -- تسحب الفلوس من اللاعب اذا اشترى سيارة getElementPosition -- تجيب احداثيات اللاعب عشان تعطيه السيارة في مكانه createVehicle -- تعطيه السيارة warpPedIntoVehicle -- تخليه ينتقل في السيارة اول ما يضغط الزر اذا تبي destroyElement -- عشان تسحب السيارة + اسم الموضوع مخالف ! + القسم خطأ ,
-
يقولون له خطأ قال صح ؟ الله يشفيك
-
سطر 60 player = ?
-
3NAD.ttf = lol + تبيه من اف8 ؟ وعلى سريال لاعب معين؟
-
ممكن تطلع على المنبر وتشرح لنا ليه حاط button, state, absoluteX, absoluteYe ؟ + ليه حاط بالحدث اسم الزر ومسوي شرط للزر؟
-
هذا من اف8, يعني تكتب في اف8 setStyle id id = رقم الستايل,
-
مع إني كنت متأكد اني ضفتها بالفنكشن ,
-
مثآل, addCommandHandler("Style", function() local style = setPedFightingStyle (player, 16 ) end)
-
اقصد هو يبي اذا كان اللاعب في تيم الادمن ما يقدر يقتل التيم الثاني والعكس, واذا كان اللاعب في تيم الادمن يقدر يقتل خويه والعكس, + وين الاغلاط نستفيد ذذ, اتوقع تقصد بالتحقق ؟ if getPlayerTeam... ?
-
كذا الي في تيم الادمن ما يقدر يقتل خويه ولي في تيم اللاعبين ما يقدرون يقتلون بعض, هو يبي الكود يقدر يقتل الي معه بالتيم بس الي مو معه ما يقدر
-
admins = createTeam( 'Admins', 255, 0, 0 ); players = createTeam( 'Players', 255, 0, 0 ); addEventHandler( 'onPlayerDamage',root, function( ) local team = getPlayerTeam( source ); if team then if not getTeamName( team ) == 'admins' then cancelEvent(); if not getTeamName( team ) == 'players' then cancelEvent(); end end end end );
-
Event : onPlayerDamage. Functions : getPlayerTeam getTeamFromName cancelEvent سوي اذا تدمج اللاعب يتحقق من التيم اذا ما كان من تيم الادمن مثلا ما يتدمج يعني بستختدم if not ... + سوي فرندلي اذا سويت التيم, createTeam setTeamFriendlyFire الطريقه هذي اسهل لك, + pain @ هو يبي اذا كان من تيم اللاعبين ما يقدر يقتل تيم الادمنيه والعكس, ويبي اذا لاعبين من نفس التيم يقدرون يقتلون بعض
-
جرب , admins = createTeam ( "Admins", 255, 0, 0 ) players = createTeam ( "Players", 255, 0, 0 ) addEventHandler ( "onResourceStart", resourceRoot, function() if ( getTeamFriendlyFire ( admins ) == true ) then setTeamFriendlyFire(players,false) if (getTeamFriendlyFire ( players ) == true ) then setTeamFriendlyFire(admins,false) end end end)
-
اذا تبي تربطه بالسيف, لازم يكون داتا بالاكاونت , يعني اكيد اللاعب بيدخل ولازم يسجل دخوله, يعني لو دخل ما بينتقل لازم يسجل دخوله وبعدين ينتقل,