Jump to content

kamyrdol32

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by kamyrdol32

  1. https://wiki.multitheftauto.com/wiki/Slothman/Slothbot "guarding"
  2. function Nightmare() local hour,minutes = getTime() if hour == 06 and minutes == 0 then local sound = playSound("day.mp3") elseif hour == 12 and minutes == 0 then local sound = playSound("day.mp3") elseif hour == 15 and minutes == 0 then local sound = playSound("night.mp3") elseif hour == 20 and minutes == 0 then local sound = playSound("night.mp3") --setSoundVolume(sound,50.0) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),Nightmare) setTimer(sound, 12000,0)
  3. Yes, i can script. Now i have: function Stworz() if Uzyte then return end if isCursorShowing( ) then return end local Bron = getPedWeapon ( localPlayer ) if getPedAmmoInClip( localPlayer ) < 1 then return end if (Bron == 25) then if isPedAiming(localPlayer) then Uzyte = true local xm, ym, zm = getPedWeaponMuzzlePosition ( localPlayer ) local infx,infy,infz = getPositionInfrontOfLP () local x, y, z, lx, ly, lz, roll, dof = getCameraMatrix () local velx, vely = (infx-x)*0.2, (infy-y)*0.2 Granat = createProjectile(getLocalPlayer(),16,xm,ym,zm-0.05,0,nil,0,0,0,velx, vely,lz-z+0.1) local uSound = playSound3D( 'Files/wpn_grenadelauncher_fire_3d_01.wav', x, y, z ) setElementDimension( uSound, getElementDimension( localPlayer ) ) setElementInterior( uSound, getElementInterior( localPlayer ) ) setTimer ( function () Uzyte = false end, 60/throwInMinute*1000, 1) triggerServerEvent( "ZabierzAmmo", resourceRoot, localPlayer, 25, 1 ) end end end bindKey ( "mouse1", "down", Stworz ) And i want to create Explosion when granate hit other object.
  4. Hello, whos can help me? I want to create explosion when granate hit other object. Whos know how can i do that?
  5. Okej, that work but why when i have 1 ammo in clip and i shoot resource set 1 ammo in clip? When i have 2-maxinclip is good. function TakeAmmo( plr, ID, ILOSC ) local TotalAmmo = getPedTotalAmmo( plr ) local Ammo = getPedAmmoInClip( plr ) setWeaponAmmo(plr, ID, TotalAmmo - 1, Ammo - 1) end
  6. kamyrdol32

    Take ammo

    Hello, i have problem with my script. I want take player ammo in clip but i dont know how. I can get ammo "getPedAmmoInClip" but i can't set that. Whos can help me with that?
  7. Yea, but how can i change CameraRotation?
  8. Hello. I have question. How can i rotate player camera? When i use teleport camera is target on wall, i want rotate is aout 180*. (Sorry, my English is bad...)
  9. Witam, mam pytanie, istnieje jakis program do nagrywania "Trailera" z serwera? Nie chce aby na nagraniu widniała moja postać itp.
  10. Witam, mam pytanie, na pewnym serwerze sa tekstury obiektów które bym chciał nabyć, wie ktos jak je można pobrać z serwera? Wiem ze jest taka możliwość.
×
×
  • Create New...