Jump to content

DarkByte

Members
  • Posts

    207
  • Joined

  • Last visited

Everything posted by DarkByte

  1. DarkByte

    .

    Well, i did this and everything works. Only grows and then then everything it's normal it doesn't decrease. local healthStat = interpolateBetween(0,0,0,healthStat,0,0, (now - start) / ((start + 5000) - start), "OutQuad") Halp?
  2. DarkByte

    .

    No, you don't understand me, the script it's fine but it doesn't decrease.
  3. DarkByte

    .

    Yes that's it but when I'm restarting resource the bar grows, but it doesn't decrease, it's like dxDrawRectangle after loading.
  4. DarkByte

    .

    Hello i wonder if it's possible to draw an animated bar, like decreasing slowly to the value and stop at the needed point and increasing slowly to the needed point, if so please show an example i have no idea how to do it..
  5. DarkByte

    .

    Thanks to all who helped me.
  6. DarkByte

    .

    Nope it's not what i want when it's 0 it's green and when it's 75 it's white. @Tails - Thanks it's working now.
  7. DarkByte

    .

    Nope it's not what i want when it's 0 it's green and when it's 75 it's white.
  8. DarkByte

    .

    For every acl group there's a limit. Player - 75 Moderator - 150 Super moderator - 300 Admin - 500
  9. You forgot one comma, here try this. gLPlayer = getLocalPlayer() addEvent("onClientPlayerFireRocket", false) function fireRocketByRotation(startX, startY, startZ, rotX, rotZ, velocity) local nrotX = -rotX local nrotZ = -(rotZ + 180) local velZ = velocity * math.sin(math.rad(rotX)) local a = velocity * math.cos(math.rad(rotX)) local velX = a * math.sin(math.rad(-rotZ)) local velY = a * math.cos(math.rad(-rotZ)) createProjectile(gLPlayer, 19, startX, startY, startZ, 1.0, nil, nrotX, 0, nrotZ, velX / 50, velY / 50, velZ / 50) triggerEvent("onClientPlayerFireRocket", gLPlayer) end function fireRocketByTargetPosition(startX, startY, startZ, targetX, targetY, targetZ, velocity) local rotZ = getRotationZ(startX, startY, targetX, targetY) local rotX = getRotationX(startX, startY, startZ, targetX, targetY, targetZ) fireRocketByRotation(startX, startY, startZ, rotX, rotZ, velocity) end function getRotationZ(startX, startY, endX, endY) -- Dommed-Space-Marine local height = endX - startX local line = endY - startY local t = -math.deg(math.atan2(height, line)) if t < 0 then t = t + 360 end return t end function getRotationX(startX, startY, startZ, endX, endY, endZ) -- Dommed-Space-Marine local line = ((endX - startX) ^ 2 + (endY - startY) ^ 2) ^ 0.5 local height = endZ - startZ local t = math.deg(math.atan2(height, line)) --[[ if t < 0 then t = t + 360 end --]] return t end function rocket() local x,y,z = getElementPosition(gLPlayer) local rx,ry, rz = getPedCameraRotation(gLPlayer) fireRocketByRotation(x,y,z,rx,ry,rz, 50) end end bindKey("mouse1", "down", rocket)
  10. DarkByte

    .

    I want to make over 5 different values negative and positive colors, i have to write a lot of these...I know there is a simple way but i can't figure it out.
  11. Hey can someone explain me how to use getTimerDetails i made this but cant understand whats wrong. timer = {} --------------------------- -- Repair vehicle --------------------------- function repairVehicle() local vehicle = getPedOccupiedVehicle(g_Me) if vehicle then if not isTimer(timer[g_Me]) then timer[g_Me] = setTimer(function() timer[g_Me] = nil end,30000,1) server.fixVehicle(vehicle) outputChatBox("#006400• Vehicle successfully repaired", 0, 100, 0,true) else errMsg("• Please wait at least "..getTimerDetails(timer).." seconds before repairing again.") end end end addCommandHandler('repair', repairVehicle) addCommandHandler('rp', repairVehicle
  12. So when this guy its asking for help its not rude ha?
  13. I didnt said that. I'm not rude im just asking for help
  14. Please insert it in my script
  15. Can some one tell me what to use Or What To Edit i can do any thing please help ? it should Draw Hunter Image and Hydra image if i killed by hunter or hydra but it draw punch or victim killed himself , and i have the hunter and hydra images Hunter.png , 520.png (HYDRA)
  16. And when i will kill with punch it will show hunter thats logic.
  17. Insert it in my codes please.
×
×
  • Create New...