Thanks alot Shawak
I'll rep+ you
Can player Make something like V I P every 5 seconds with red ?
<globalevent name="Animated Text" interval="5" event="script" value="vip_text.lua"/>
function onThink(interval, lastExecution, thinkInterval)
local cfg = {}
cfg.storage = 1234 -- VIP Storage
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(cid, cfg.storage) > 0 then
doSendAnimatedText(getThingPos(cid), "VIP", TEXTCOLOR_RED)
end
end
return true
end
function onThink(interval, lastExecution, thinkInterval)
local cfg = {}
cfg.storage = 1234 -- VIP Storage
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(cid, cfg.storage) > 0 then
doSendAnimatedText(getThingPos(cid), "VIP", TEXTCOLOR_RED)
end
end
return true
end
Why that don't work ?<globalevent name="Animated Text" interval="0" event="script" value="vip_text.lua"/>
Thanks man !!
Are you sure that it works ?
Because it doesn't work with me !
Why that don't work ?