Tematy otagowane jako: pkt
1. Maxymalna ilość pkt (elementData)
Witam ot??, mam problem z pkt'ami za?adunku. Np. mamy 92 pkt i doda nam 9, i chce ?e by po tym dodaniu tych 9 te pkt by?y r?wne 100. Stawiam
2. Dodawanie pkt z paczek na TAB
siemka mam skrypt na paczki do rozwozenia ale jest problem poniewaz zrobilem na tabelce "Kasa" i mi dodaje kase ale jak zrobic to zeby dodawalo score po przewiezieniu ladunku??? Na tab mam wyswietlone Score ale niestety nie dodaje mi on Punktow moze ktos pomoc?
oto moje lua.
Cytat: exports [ "scoreboard" ]:addScoreboardColumn ( "Score", 3 ) -- Add the "Score" column to the scoreboard.
function updatePlayersScore ( ) -- Create "updatePlayersScore" function.
for index, player in ipairs ( getElementsByType "player" ) do -- Loop through all online players.
setElementData ( player, "Score", getPlayerscore ( player ) ) -- Set "Score" element data to the player score.
end -- End our loop.
end -- End our function.
setTimer ( updatePlayersScore, 2500, 0 ) -- Set a infinite 2.5 seconds timer to execute "updatePlayersScore" function.
Za pomoc daje piwkaaa