Jump to content

manawydan

Members
  • Posts

    980
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by manawydan

  1. has another function to be activated when a katana hit? I want to change the sound of it
  2. function jedi(weaponID) local muzzleX, muzzleY, muzzleZ = getPedWeaponMuzzlePosition(source) local px, py, pz = getElementPosition ( source ) if weaponID == 8 then local sound = playSound3D("jedi.mp3", muzzleX, muzzleY, muzzleZ, false) setSoundMaxDistance(sound, 40) end end addEventHandler ( "onClientPlayerWeaponFire", getLocalPlayer(), jedi ) what went wrong?
  3. manawydan

    [WIP]MTAM

    good idea. good luck
  4. manawydan

    Counter

    Thank you. My doubt was an counter
  5. vlw cara. preciso aprender o basico
  6. eai pessoal blz? queria saber se tem algum site como o http://luabinaries.sourceforge.net/ só que em portugues. desculpe se estou no "tópico" errado
  7. manawydan

    Counter

    counter. how to use? when a zombie attacks a player, the player receives a counter. when the counters reach three, the player becomes zumbie. onClientPlayerDamage
  8. thank you. function pedNfale() AllPedsS = getElementsByType ( "ped" ) setPedVoice ( AllPedsS, PED_TYPE_DISABLED ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), pedNfale)
  9. Thank you. but how can I disable the speeches of all peds with PED_TYPE_DISABLED. thank you
  10. hurt when a ped he stays quiet. makes no sound.
  11. which function to let everyone use the ped dumb? (no talking)
  12. how can I delete images and script mira.lua? when the player leaves the server! client addEventHandler( "onClientResourceStart", resourceRoot, function ( startedRes ) exports.crosshairreplace:register( 26, "26.png" ) exports.crosshairreplace:register( 29, "29.png" ) exports.crosshairreplace:register( 30, "30.png" ) exports.crosshairreplace:register( 28, "29.png" ) exports.crosshairreplace:register( 32, "29.png" ) end ) function apague() fileDelete(mira.lua) end addEventHandler( "onClientPlayerQuit", getRootElement(), apague )
  13. has a resource in the community. https://community.multitheftauto.com/ind ... ls&id=6210
  14. manve1 worked, but has a bad argument. lua:15: Bad argument 'getElementHealth' [Expected alement at argument 1, got nil]
  15. this setTimer( function() setElementHealth ( nemesi, 200 ) end, 1100, 0)
  16. how to stop the timer, if the health of nemesis = nill? thanks for your time. server-- function Nemesisbymanawydan ( ) baz = createObject ( 360, -1935.5480957031, 665.44055175781, 48, 0, 0, 0 ) nemesi = exports [ "slothBot" ]:spawnBot ( -1935.5480957031, 665.44055175781, 47.0, 90, math.random ( 300, 303 ), 0, 0, Nemesis, 38, "hunting", true ) setElementModel ( nemesi, 107 ) outputChatBox ("#9E0000Nemesis: #0D9905STARS",getRootElement(), 255, 255, 255, true ) local myBlip = (createBlipAttachedTo ( nemesi, 0 )) attachElements ( baz, nemesi, 0.2, 0.1, 0.5, 0, 90, 0 ) triggerClientEvent ( "nsound", root ) triggerClientEvent ( "nemesismissel", root ) setTimer( function() setElementHealth ( nemesi, 200 ) end, 1100, 0) end addEventHandler("onResourceStart", resourceRoot, Nemesisbymanawydan) addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (killer) if (source == nemesi) then givePlayerMoney(killer,math.random(4000,6000)) -- 4000, 6000 money for kill nemesis-- outputChatBox ( getPlayerName ( killer ) .. " #081DBFkilled Nemesis, congratulations",getRootElement(), 255, 255, 255, true ) setTimer(Nemesisbymanawydan, 1000, 1) -- 60000 time for nemesis respawn in milliseconds-- end end) client-- --- Criado por MANAWYDANbr --- function Skinemesis1() txd = engineLoadTXD("data/107.txd", 107 ) engineImportTXD(txd, 107) dff = engineLoadDFF("data/107.dff", 107 ) engineReplaceModel(dff, 107) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), Skinemesis1) addEvent ( "nsound", true ) addEventHandler ( "nsound", root, function ( ) playSound ( "data/nemesis.mp3" ) end ) addEvent ( "nemesismissel", true ) addEventHandler ( "nemesismissel", root, function ( ) x, y, z = getElementPosition("nemesi") createProjectile(getLocalPlayer(), 19, x, y, z) setPedAnimation ( nemesi, "ROCKET", "RocketFire") end )
  17. sorry, but do not think you understand my question. I want to know how to get the country of the players in trying to create a script modifying the language. in short: how to take the country each player? I hope you understand
  18. I have a zombie server. wish I could change the language of the server linguaguem for each player. (English, Portuguese, Spanish ...). so is there any way to know linguaguem or country of each player to change linguaguem the server? Thank you. and Merry Christmas!
  19. how can I cancel the damage of a vehicle, if the "attacker" for a player? onVehicleDamage cancelEvent
  20. manawydan

    help hud

    dx functions. ok. Solidsnake14, TheFunction, Hunterix thank you very much. one last question: is possible to create cutscene in mta?
×
×
  • Create New...