PaiN^
Members-
Posts
2,258 -
Joined
-
Last visited
Everything posted by PaiN^
-
السيارة راح تطلع في الإحداثيات اللي انت حاطها مو جنبك + متأكد من السيريال + الآيدي ؟
-
هذا مو تيبل ؟؟
-
لا حبيبي يقولك انه ما ينصحك تستخدمها كلنت, لأن الفلوس راح تكون وهمية ذذ
-
بالتوفيق لكم ,,
-
setPlayerMoney > يحدد فلوس اللاعب givePlayerMoney > يعطي فلوس للاعب لو استخدمت سيت وكان مع اللعب 100000 راح تصير فلوسه القيمة إللي انت حددتها اما الجيف فراح تخلي فلوسه 100000 + القيمة الل حددتها + متاكد إنك فاهم وش يعني : Using this function client side (not recommended) will not change a players money server side. ؟
-
@ AL-PRNS : 'onPlayerWasted' givePlayerMoney
-
GUIEditor = { button = {}, checkbox = {}, window = {}, edit = {}, label = {} }
-
أنا كان قصدي الوحيد إن كثرة الملفات ممكن تاخذ مساحة اكبر من الرام, وكانت مجرد نصيحة لكن هو حر بموده ذذ
-
وانا ما انصحك تبدأ تتعلم بمودات صعبة, لأنك لو ما عرفت تسويه راح تكره البرمجة وثقتك بنفسك بتطيح إبدأ حبة حبة و إن شاء الله ما نقصر معاك
-
بالتوفيق ,,
-
أعيد و أكرر عطنا وجه يا صاحب الموضوع edit : كي يعني زي بسول ؟ ! إذا تبي مود جاهز ترى مافي
-
pairs استخدم + القيمة مولازم تكون جدول, دامها شي واحد بس
-
و الشرطي او المجرم تيم ولا قروب ولا داتا ولا ايش ؟
-
مو اي واحد خربت عليه اللعبة لازم يمسحها و يثبتها ثاني ممكن في ملف واحد ناقص بس, يقوم يعيد التثبيت كله من جديد ؟؟
-
كيف يعني ؟؟ سيرفرات الأر بي جي شلون شغالة أجل ؟ بعدين كل اللي طلبوه اثبات انه هو مسوي المودات هذي, وكونه ما جاب الاثبات يخليك تشك و بعدين ليه واثق كذا انه سواها ؟ ساعدته فيها يعني ؟
-
لأن البرامتر حقت الكوماند كذا player, cmd, args player > اللاعب اللي سوى الكوماند cmd > الكوماند args > أي شي بعد الكوماند زي الآيدي أو أي شي
-
---- CLeint : 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) guiSetVisible(GUIEditor.window[1], false) 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", GUIEditor.button[1], function( ) local serial = guiGetText(GUIEditor.edit[1]); local name = guiGetText(GUIEditor.edit[2]) local ID = guiGetText(GUIEditor.edit[3]) if string.len( serial ) >= 15 and string.len( ID ) == 3 then triggerServerEvent( "onVehicleCreate",localPlayer,serial,ID) return end outputChatBox( 'يجب أن تدخل آيدي + سيريال صحيحين' ); end ); ------- Server : addEvent( "onVehicleCreate", true ) addEventHandler( "onVehicleCreate", getRootElement(), function( serial, ID ) ID = tonumber( ID ); if ID then for k,v in ipairs( getElementsByType( 'player' ) ) do if getPlayerSerial( v ) == serial then local C = createVehicle( ID, 1797.2901611328, 841.5078125, 10.643834114075 ); setElementData( C, 'owned', true ); setElementData( C, 'owner', serial ); end end end end ); addEventHandler( "onVehicleStartEnter", getRootElement(), function( player ) if getElementData( source, 'owned' ) then if getElementData( source, 'owner' ) ~= getPlayerSerial ( player ) then cancelEvent( ); outputChatBox( 'هذه أملاك خاصة', player ); return end outputChatBox( 'مرحبا في سيارتك', player ); end end ); + شوف الديبج وش يقول
-
جرب : mySerial = 'سيريالك هنا' gateeKoO = createObject( 980, x, y, z, 0, 0, 90 ); checkGateekooMarker = createMarker( x, y, z, "corona", 20.0, 0, 0, 255, 0 ); open = false; function move( source ) if not open then playSoundFrontEnd( source, 16 ); moveObject( gateeKoO, 2000, x, y, z, 0, 270, 0 ); else playSoundFrontEnd( source, 16 ); moveObject( gateeKoO, 2000, x, y, z, 0, 0, 90 ); end open = not open end addEventHandler( 'onResourceStart', getRootElement( ), function( ) for k,v in ipairs( getElementsByType( 'player' ) ) do if getPlayerSerial( v ) == mySerial then bindKey( v, key, 'down', move, v ); end end end ); addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) if getPlayerSerial( source ) == mySerial then bindKey( source, key, 'down', move, source ); end end );
-
---- CLeint : 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", GUIEditor.button[1], function( ) local serial = guiGetText(GUIEditor.edit[1]); local name = guiGetText(GUIEditor.edit[2]) local ID = guiGetText(GUIEditor.edit[3]) if string.len( serial ) >= 15 and string.len( ID ) == 3 then triggerServerEvent( "onVehicleCreate",localPlayer,serial,ID) return end outputChatBox( 'يجب أن تدخل آيدي + سيريال صحيحين' ); end ); ------- Server : addEvent( "onVehicleCreate", true ) addEventHandler( "onVehicleCreate", getRootElement(), function( serial, ID ) ID = tonumber( ID ); if ID then for k,v in ipairs( getElementsByType( 'player' ) ) do if getPlayerSerial( v ) == serial then local C = createVehicle( ID, 1797.2901611328, 841.5078125, 10.643834114075 ); setElementData( C, 'owned', true ); setElementData( C, 'owner', serial ); end end end end ); addEventHandler( "onVehicleStartEnter", getRootElement(), function( player ) if getElementData( source, 'owned' ) then if getElementData( source, 'owner' ) ~= getPlayerSerial ( player ) then cancelEvent( ); outputChatBox( 'هذه أملاك خاصة', player ); return end outputChatBox( 'مرحبا في سيارتك', player ); end end ); هذا يسويلك السيارة, بس على قولت برستيج لازم تحفظ في قاعدة بيانات
-
كودك فيه أخطاء كثييير إنت ايش تبغى تسوي ؟
-
يعني تبي اذا كان السيريال + الآيدي صح يسوي سيارة بس صاحب السيريال يقدر يركبها ؟
-
مو كلاينت بس getPlayerSerial سيرفر + كلاينت + كودك ما أظن راح يشتغل
