Skrypty & Kody Pomoc ; globalevents text nad graczem od uzytego storage xx

kinlodan

Advanced User
Zarejestrowany
Dołączył
Kwiecień 9, 2012
Posty
249
Liczba reakcji
2
function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
if getPlayerStorageValue(cid, 113247) >= 10 then
doSendMagicEffect(getPlayerPosition(cid), 29)
doSendAnimatedText(getPlayerPosition(cid), "*EPIC*", 186)
end
end
return true
end
Wiec tak potrzebuje tego skryptu lecz, jesli ktos ma storage uzyte if getPlayerStorageValue(cid, 113247) >= 10 then >> pisze epic
jesli bedzie mial te same storage uzyte tylko ze nie 10 a 100 : if getPlayerStorageValue(cid, 113247) >= 100 then >>> to pisze legend
jesli dalej 150 if getPlayerStorageValue(cid, 113247) >= 150 then >> cos tam
i jeszcze 1 warunek na 200 : if getPlayerStorageValue(cid, 113247) >= 200 then >> napis ;p
Ktos cos?

[MENTION=124997]Refresh[/MENTION]
 
Odp: Pomoc ; globalevents text nad graczem od uzytego storage xx

[lua]function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
if getPlayerStorageValue(cid, 113247) >= 10 then
doSendMagicEffect(getPlayerPosition(cid), 29)
doSendAnimatedText(getPlayerPosition(cid), "*EPIC*", 186)
elseif getPlayerStorageValue(cid, 113247) >= 100 and getPlayerStorageValue(cid, 113247) <= 150 then
doSendMagicEffect(getPlayerPosition(cid), 29)
doSendAnimatedText(getPlayerPosition(cid), "*DUPA*", 186)
end
end
return true
end[/lua]
 
Odp: Pomoc ; globalevents text nad graczem od uzytego storage xx

[MENTION=356768]Kahras[/MENTION] - Nie dzia?a ;/ Wciaz wyskakuje tykko 1 napis.

---------- Tre?? dodana o 19:40 ----------

Temat do zamkniecia poprawione przez rafaeru prywatnie ;p
 
Back
Do góry