• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Fix Globalevent!

Zarabustor

Human Being
Joined
Sep 10, 2009
Messages
186
Reaction score
0
Location
Cancun, Mexico
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"/>
 
really, no errors, just does not work nothing happens

function onThink(interval, lastExecution, thinkInterval)

for _, pid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(pid, 11551) == 1 then
doSendAnimatedText(getCreaturePosition(pid), "VIP", math.random(1,255))
doSendMagicEffect(getCreaturePosition(pid), CONST_ME_GIFT_WRAPS)
end
end
return true
end
 
Back
Top