-
Posts
84 -
Joined
-
Last visited
Everything posted by Lorder
-
I tried, but it didn't work, no bugs
-
There are no faults, but no more damage
-
@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 )
-
@IIYAMA I did it but it doesn't get much damage same
-
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 )
-
Can you help me in this business is new?
-
@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 )
-
How do I let a player get more damage from the head? @IIYAMA
-
I tried, but he did not forbid me
-
I forbid someone to remove the ban from someone admin wants to be automatically banned when they enter the server
-
[ 'Lorder' ] = 'EC625053E762093C4DA83FC51E74425F' not working @NeXuS™
-
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
-
@NeXuS™ No, but I tried my own serial, did not work