<?xml version="1.0" encoding="UTF-8"?>
<mod name="VIP_Effect" version="1.0" author="Slaktaren" contact="my ass" enabled="yes">
<globalevent name="VIP_Effect" interval="10" event="script"><![CDATA[
if isVip(getAccountByName(getPlayerName(cid))) then
doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_BLUE)
end
return TRUE
]]></event>
</mod>
function onThink(interval, lastExecution, thinkInterval)
local msg, storage, color = "VIP!", 45687, 70
for _, pid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(pid, storage) > 0 then
doSendAnimatedText(getThingPos(pid), msg, color)
end end
return true
end
function onThink(interval, lastExecution, thinkInterval)
local msg, storage, color = "VIP!", 45687, 70
for _, pid in ipairs(getPlayersOnline()) do
if isPlayerVip(pid) then
doSendAnimatedText(getThingPos(pid), msg, color)
end end
return true
end
function onThink(interval, lastExecution, thinkInterval)
local msg, color, effect = "VIP!", 70, 51
for _, pid in ipairs(getPlayersOnline()) do
if isPlayerVip(pid) then
doSendAnimatedText(getThingPos(pid), msg, color)
doSendMagicEffect(getThingPos(pid), effect)
end
end
return true
end