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 I did it but it doesn't get much damage same
  5. 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 )
  6. Can you help me in this business is new?
  7. @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 )
  8. @*BeaT* It did not work
  9. How do I let a player get more damage from the head? @IIYAMA
  10. Lorder

    [Help]Auto Ban

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

    [Help]Auto Ban

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

    [Help]Auto Ban

    serial auto banned
  13. Lorder

    [Help]Auto Ban

    I can not show all @NeXuS™
  14. Lorder

    [Help]Auto Ban

    [ 'Lorder' ] = 'EC625053E762093C4DA83FC51E74425F' not working @NeXuS™
  15. 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
  16. Lorder

    [Help]Auto Ban

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

    [Help]Auto Ban

    @NeXuS™ not working
×
×
  • Create New...