Zarabustor
Human Being
Hi im using tfs 3.6 pl1, and i have a problem with a script look:
suppusly it should works fine, really in the console there're no problems but the pronlem is don happens nothing, please help me to fix it and make it works 100%.
suppusly it should works fine, really in the console there're no problems but the pronlem is don happens nothing, please help me to fix it and make it works 100%.
<globalevent name="VIP" interval="10" event="script" value="vip.lua"/>
function onThink(interval, lastExecution, thinkInterval)
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(cid, 11551) == 1 then
doSendAnimatedText(getCreaturePosition(cid), "VIP!", TEXTCOLOR_RED)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
end
end
return true
end