Hallo habe ein problem bei diesem werden keine Deaths hinzugefügt verstehe aber nicht wieso nicht. Hoffe mir kann wer helfen.
Lua
function playerWasted()
if #activePlayers >= minPlayers then
if not #activePlayers == 1 then
local account = getPlayerAccount(source)
if not (isGuestAccount(account)) then
addStat(account,"deaths",1)
outputDebugString("added death")
end
end
end
end
addEventHandler("onPlayerWasted",getRootElement(),playerWasted)
Alles anzeigen