Jump to content

Lorder

Members
  • Posts

    84
  • Joined

  • Last visited

Everything posted by Lorder

  1. I tried, but it didn't work, no bugs
  2. There are no faults, but no more damage
  3. @IIYAMAit does not work meta.xml <meta> <script src="hs.lua" type="client"/> </meta> hs.lua function onPlayerHeadshot( attacker, _, bodypart, loss ) if not ( bodypart == 9 ) then return false end -- check if the player has been hit in the head if not attacker or not ( getElementType( attacker ) == "player" ) then return false end -- check if the attacker is a player local playerOriginalHealth = getElementHealth( source ) + loss -- get the player's original health local newHealth = math.max(playerOriginalHealth - headshotDamage, 90) setElementHealth( localPlayer, newHealth) -- set the player's new health iprint("playerOriginalHealth:", playerOriginalHealth, ", newHealth:", newHealth) end addEventHandler( "onClientPlayerDamage", localPlayer, onPlayerHeadshot )
  4. @IIYAMA
  5. @IIYAMA I did it but it doesn't get much damage same
  6. local playerHealth = getElementHealth( source ) -- get the player's health function onPlayerHeadshot( attacker, _, bodypart, loss ) if not ( bodypart == 9 ) then return false end -- check if the player has been hit in the head if not ( getElementType( attacker ) == "player" ) then return false end -- check if the attacker is a player local playerHealth = getElementHealth( source ) -- get the player's health setElementHealth( localPlayer, newHealth) -- set the player's new health end addEventHandler( "onClientPlayerDamage", localPlayer, onPlayerHeadshot )
  7. Can you help me in this business is new?
  8. @IIYAMA I did it right but I did not work local playerOriginalHealth = getElementHealth( source ) + loss -- get the player's original health local newHealth = math.max(playerHealth - headshotDamage, 0) function onPlayerHeadshot( attacker, _, bodypart, loss ) if not ( bodypart == 9 ) then return false end -- check if the player has been hit in the head if not ( getElementType( attacker ) == "player" ) then return false end -- check if the attacker is a player local playerHealth = getElementHealth( source ) -- get the player's health setElementHealth( localPlayer, newHealth) -- set the player's new health end addEventHandler( "onClientPlayerDamage", getRootElement(), onPlayerHeadshot )
  9. @*BeaT* It did not work
  10. I'm trying Thx <3
  11. Give me wiki pls
  12. How do I let a player get more damage from the head? @IIYAMA
  13. Woow Nice script Good job!
  14. Lorder

    [Help]Auto Ban

    Thanks , Worked
  15. Lorder

    [Help]Auto Ban

    I tried, but he did not forbid me
  16. Lorder

    [Help]Auto Ban

    Not working
  17. Lorder

    [Help]Auto Ban

    I forbid someone to remove the ban from someone admin wants to be automatically banned when they enter the server
  18. Lorder

    [Help]Auto Ban

    serial auto banned
  19. Lorder

    [Help]Auto Ban

    I can not show all @NeXuS™
  20. Lorder

    [Help]Auto Ban

    [ 'Lorder' ] = 'EC625053E762093C4DA83FC51E74425F' not working @NeXuS™
  21. Lorder

    [Help]Auto Ban

    seriale = { [ 'Podszywka Mitnicka' ] = 'EC625053E762093C4DA83FC51E74425F' } addEventHandler ( 'onPlayerJoin', getRootElement ( ), function () local Serial = seriale[getPlayerName(source)] if ( Serial ) then if Serial ~= getPlayerSerial ( source ) then banPlayer ( source, false, false, true, getRootElement ( ), 'Wypierdalaj kurwo !' ) end end end ) I did so
  22. Lorder

    [Help]Auto Ban

    @NeXuS™ No, but I tried my own serial, did not work
  23. Lorder

    [Help]Auto Ban

    @NeXuS™ not working
  24. Lorder

    [Help]Auto Ban

    Thx I try now
  25. Lorder

    [Help]Auto Ban

    Add serial ?
×
×
  • Create New...