Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. مشكور عنادبس الصراحة ما فهمت عليكـ
  2. +1
  3. Fantastic !
  4. PaiN^

    The Harlem Shake

    :lol: :lol: :lol: WTF is wrong with every one, Even i start to love't
  5. Great ! I really loved it Keep it up ..!
  6. مشكور أخوي برستيج ماقصرت
  7. السلآمـ عليكمـ لأني من جد مني قادر أفهمها ,table أخواني إذا ما قصرتوا أبغى شرح مفصل عن الـ أتمنى من أصحاب الخبرة إنهمـ يفيدوني ^^ ومشكور مقدما
  8. تسلمـ اشتغل !! الكود صحيح لكنه ما يطفي السيارة بس يشغلها
  9. Max+ تعديل على كود Server --> addEvent('fix', true) addEventHandler('fix', root, function() if (isPedInVehicle( source ) ) then local veh = getPedOccupiedVehicle(source) local fix = fixVehicle (veh) if ( fix ) then outputChatBox (" Vehicle fixed ! ", source, 255, 255,0 ) end else outputChatBox (" You Must Be in Vehicle ! ", source, 255, 255,0 ) end end ) addEvent('OnOff1' ,true) addEventHandler('OnOff1', root, function() local veh = getPedOccupiedVehicle(source) local state = getVehicleEngineState(veh) if ( state ) then setVehicleEngineState(veh , false) outputChatBox (" Engine Off ! ", source, 255, 255,0 ) else setVehicleEngineState(veh , true) outputChatBox (" Engine On ! ", source, 255, 255,0 ) end end ) addEvent('qlb', true) addEventHandler('qlb' , root, function() if isPedInVehicle(source) then local veh = getPedOccupiedVehicle(source) rx, ry, rz = getElementRotation(veh) setElementRotation(veh, rx +180, ry, rz +180) outputChatBox(" Car Successfully fliped !", source, 255, 255, 0 ) end end ) addEvent('ksr', true) addEventHandler('ksr', root, function() if isPedInVehicle(source) then local veh = getPedOccupiedVehicle(source) destroyElement(veh) outputChatBox(" Car Successfully Destroyed ! ", source, 255, 255 ,0 ) else outputChatBox (" You Must Be in Vehicle ! ", source, 255, 255,0 ) end end ) Client --> GUIEditor = { button = {}, label = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(520, 86, 298, 263, "Car System By Alhajarii", false) guiWindowSetSizable(GUIEditor.window[1], false) Repair = guiCreateButton(18, 45, 109, 50, "Repair",false,GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "clear-normal") OnOff = guiCreateButton(169, 45, 109, 50,"On-Off",false,GUIEditor.window[1]) Flip = guiCreateButton(23, 148, 109, 50,"Flip",false,GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "clear-normal") Destroy = guiCreateButton(173, 148, 105, 50, "Destroy", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(7, 206, 226, 42, "By Alhajarii", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-header") guiSetVisible (GUIEditor.window[1], false) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) addEventHandler('onClientGUIClick', root, function() if ( source == Repair ) then triggerServerEvent('fix', localPlayer) elseif ( source == OnOff ) then triggerServerEvent('OnOff1', localPlayer) elseif ( source == 'Flip' ) then triggerServerEvent('qlb', localPlayer) elseif ( source == Destroy ) then triggerServerEvent('ksr', localPlayer) end end ) !.. مجرب و شغال
  10. PaiN^

    Problem

    HERE Download the file above, Replace it with your play.rar file, Then you'll find a .lua file called broph.lua open it and modify the X Y Z positions, ( Replace the letters X, Y and Z with the coordinates ) Tell me results or if you didn't know what to do
  11. كل الأكواد المطرحة خطأ
  12. السطور 25 و 29 و 30 مالهمـ داعي + إسمي آلم + ما فهمت عليك والله
  13. This will create a blip in the position of the car damage, But blip is not attached !! Try this .. addEvent("burnBlip", true) addEventHandler("burnBlip", root, function (car) if getElementType(car) == "vehicle" then local check = getElementHealth(car) if check < 250 then local x,y,z = getElementPosition(source) local blip = createBlip(x,y,z, 43) attachElements(blip, car) else destroyElement(blip) end end end )
  14. إستبدل getPedOccupiedVehicle : بـ getPlayerOccupiedVehicle
  15. السطر 20 ماله داعي تعرف وش حقة عشان تقول مالة داعي؟ أللي أعرفه إنه يخليكـ تكتب بدون ما البندات تنحسب تكتب في الميمو أو الإيدت البندات زي حرف التي إليي يخليك تكتب بالشات يصير لو ضغطته وانت تكتب ما يطلعلك الكتابة بالشات + وأنا قلت ماله داعي لأن مافي لا ميمو ولا إديت في اللوحة
  16. In what ? As i say in the "setTimer" ! I know , I mean what's wrong about it
  17. In what ?
  18. Why ??
  19. time1 = setTimer( function ( ) for _, vehicle in ipairs ( getElementsByType ( "vehicle" ) ) do if getElementHealth(vehicle) < 260 then setVehicleDamageProof( vehicle, true) time2 = setTimer( blowVehicle ( vehicle ), 500000, 1) else setVehicleDamageProof( vehicle, false) killTimer ( time2 ) end end end,1000, 0 )
  20. addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), setTimer( function(player) if getElementType(player) == "player" then local ID = math.random(165, 166) setElementModel(player, ID) end end, 5000, 0) ) This will change your model every 5 seconds( between 165, 166 only !!) Tell me if you don't want it with timer
  21. PaiN^

    giveammo

    Not only copy past
  22. addEventHandler("onClientGUIClick", root, function () if (source == إسمـ الزر) then local vehicle = getPedOccupiedVehicle(localPlayer) destroyElement(vehicle) end end )
×
×
  • Create New...