Anakonta
Senior User
- Joined
- Oct 5, 2010
- Messages
- 536
- Reaction score
- 10
Witam, usi?uj? zrobi? skrypt kt?ry b?dzie zabiera? ka?demu graczowi online i soul co 1 sekund? je?eli nie ma pz, napisa?em co? takiego ale serwer traktuje trzeci? linijk? jak by jej nie by?o. Soul jest zabierany nawet jak bije moba. Skrypt robiony w globalevents
Code:
function onThink(interval, lastExecution)
for _, pid in ipairs(getPlayersOnline()) do
if (isPlayerPzLocked(pid) == false) then
doPlayerAddSoul(pid, -1)
end
end
return 1
end