Jump to content

iMr.3a[Z]eF

Members
  • Posts

    862
  • Joined

  • Last visited

Everything posted by iMr.3a[Z]eF

  1. أهاااا عرفت عرفت وش قصدكم ذذ
  2. أدري أدري قصدي وش هو التيبل اللي تتكلم عنه؟
  3. ERROR: attempt to index field 'button' (a nill value)
  4. ما زبطت ^^^^^^^ اللوحة ما تتقفل تقعد شغالة ع طول ذذ
  5. SQL أنا أبد ما أعرف للـ سسويت كذا ذذ executeSQLQuery("CREATE TABLE IF NOT EXISTS players (serial)")
  6. addEventHandler ( "onResourceStart", resourceRoot, function ( ) executeSQLQuery ( "CREATE TABLE IF NOT EXISTS SQL_Amlak_System (serial,name,ID)" ); outputDebugString("SQL Data Base Started!",0,0,255,0,0); for i, player in ipairs( getElementsByType( 'player' ) ) do if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "Console" ) ) then setElementData( player, 'isAdmin', true); else setElementData( player, 'isAdmin', nil); end end end ); كذا ؟؟؟
  7. ^^^^^ exactly !! + مدري وش به لو أضغط ج ما تنفتح اللوحة ولآ تتقفل
  8. لو يركبها الشخص صاحب السريال
  9. لآلآ أفهمني مثلا أنا كونسل أي أحد يبي سيارة أملاك أحط سرياله وأسمه وآي دي السيارة باللوحة لو ضغطت الزر تسوي السيارة الأحداثيات أنا احطيتها خلآص
  10. PAin أنا سويت لوحة للكونسل يكتب سريال اللاعب ويكتب أسم اللاعب عشان يطلع بالشات ويكتب أي دي السيارة createVehicle لو يضغط فينيش | تسوي الحدث الـ
  11. لول هذا من زمان أصمم مودات عشان عناد ولا أنا أبي المود نفسه يسوي سيارة ويب السيريال ينكتب من اللوحة نفسها
  12. السلآم عليكم ورحمة الله وبركاته, صممت أليوم مود صنع سيارة بالسريال, بس طلع خطأ مدري وش الحل, الكودات : --C 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",player,serial,name,ID); end end ); -- S addEvent( "onVehicleStartEnter", true ) addEventHandler( "onVehicleStartEnter", getRootElement(), function(player,serial,name,ID) local C = createVehicle ( ID, 1797.2901611328, 841.5078125, 10.643834114075 ) if(source==C)then if (getPlayerSerial(player)~=serial)then cancelEvent() r,b,g = math.random(0, 255), math.random(0, 255), math.random(0, 255) outputChatBox( ".:[ "..name.." آملاك خاصة لـفخامةِ ]:.", player,r,b,g, true ) else r,b,g = math.random(0, 255), math.random(0, 255), math.random(0, 255) outputChatBox( ".:[ آررحب نورت ابو الموتر ]:.", player, r,b,g, true ) end end end ) أرجو الحل
  13. طيب أبي الألمنت مخفي يعني الدخان مخفي حاولت كذا ما زبط function getElementSpeed(element,unit) if (unit == nil) then unit = 0 end if (isElement(element)) then local x,y,z = getElementVelocity(element) if (unit=="mph" or unit==1 or unit =='1') then return (x^2 + y^2 + z^2) ^ 0.5 * 100 else return (x^2 + y^2 + z^2) ^ 0.5 * 1.61 * 100 end else outputDebugString("Not an element. Can't get speed") return false end end function D5(vehicle, player) local Speed = getElementSpeed(vehicle,"kmh") if Speed >= 10 then local x,y,z = getElementPosition(vehicle) if isElement(objects[player]) then return end objects[player] = createObject(2780, x, y, z-2, 0, 0, 0) setElementAlpha ( objects[player], 0 ) attachElements(objects[player], vehicle, 0, -2, -1) else if isElement(objects[player]) then destroyElement(objects[player]) objects[player] = nil end end end addEventHandler("onVehicleEnter", C, function(thePlayer, seat) if seat == 0 then timers[thePlayer] = setTimer(D5, 1000, 0, source, thePlayer) end end ) addEventHandler("onVehicleExit", C, function(thePlayer, seat) if seat == 0 then if isTimer(timers[source]) then killTimer(timers[source]) timers[source] = nil if isElement(objects[source]) then destroyElement(objects[source]) objects[source] = nil end end end end ) addEventHandler("onPlayerQuit", root, function() if isTimer(timers[source]) then killTimer(timers[source]) timers[source] = nil if isElement(objects[source]) then destroyElement(objects[source]) objects[source] = nil end end end )
  14. يا سلآم عليك يا تيتي ضبط جداً تسلم ذذ
  15. Private Please الكود خاص عشان ذذ
  16. بس ما أشتغل عندي أنا سويت createVehicle *
×
×
  • Create New...