Jump to content

manawydan

Members
  • Posts

    980
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by manawydan

  1. manawydan

    help hud

    how to import new hud for gta for mta? hud.txd
  2. nemesi health does not regenerate
  3. error setElementHealth ( nemesi, 100 ). 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 ) 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, 60000, 1) -- 60000 time for nemesis respawn in milliseconds-- end end) function nemesisvida() setElementHealth ( nemesi, 100 ) setTimer(nemesisvida, 1000, 1) end addEventHandler ( "onResourceStart", getRootElement(), nemesisvida ) 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 )
×
×
  • Create New...