Zarabustor
Human Being
Hi! this script was for tfs 3.5 and now i change to tfs 3.6 and it dont works look:
function onThink(interval, lastExecution, thinkInterval)
for _, name in ipairs(getOnlinePlayers()) do
local player = getPlayerByName(name)
if getPlayerStorageValue(player,11551) == 1 then
doSendAnimatedText(getCreaturePosition(player), "VIP!", TEXTCOLOR_RED)
doSendMagicEffect(getCreaturePosition(player), CONST_ME_GIFT_WRAPS)
end
end
return TRUE
end
<globalevent name="VIP" interval="10" event="script" value="vip.lua"/>
function onThink(interval, lastExecution, thinkInterval)
for _, name in ipairs(getOnlinePlayers()) do
local player = getPlayerByName(name)
if getPlayerStorageValue(player,11551) == 1 then
doSendAnimatedText(getCreaturePosition(player), "VIP!", TEXTCOLOR_RED)
doSendMagicEffect(getCreaturePosition(player), CONST_ME_GIFT_WRAPS)
end
end
return TRUE
end
<globalevent name="VIP" interval="10" event="script" value="vip.lua"/>