Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 15/01/24 in Posts

  1. 1 point
  2. Sorry, I usually don't accept Discord friend req out of the blue. Send me a forum PM
    1 point
  3. Hi, try this local lastDeathTime = {} function onPlayerWasted(totalAmmo, killer) local playerName = getPlayerName(source) local currentTime = getTickCount() -- Check if the player has already been processed recently if lastDeathTime[playerName] and currentTime - lastDeathTime[playerName] < 1000 then return end lastDeathTime[playerName] = currentTime if isElement(killer) and getElementType(killer) == "player" then local killerName = getPlayerName(killer) local victimName = getPlayerName(source) if killer == source then -- suicide outputChatBox(playerName .. " died") else outputChatBox(killerName .. " killed " .. victimName) end else outputChatBox(playerName .. " died") end end addEventHandler("onPlayerWasted", root, onPlayerWasted)
    1 point
  4. Hello, could it be that the car explosion count as a player killing himself (suicide)? so then it print the suicide message and then the other one? maybe change the suicide message so they are not identical.
    1 point
×
×
  • Create New...