[Global Event] VIP Effect (When person is ghost it doesn't shows)

Go down

[Global Event] VIP Effect (When person is ghost it doesn't shows)

Post by Sacred Anlyest on Thu Dec 22, 2011 5:22 pm

Hello Otstrikers,
Alot of ppls requested VIP Effect and if person is ghost it don't shows!

goto data/globalevents/scripts and create vipEffect.lua


Code:
function onThink(interval, lastExecution)
        for _, name in ipairs(getOnlinePlayers()) do
        local cid = getPlayerByName(name)
              if not isPlayerGhost(cid) and getPlayerVipDays(cid) >= 1 then
                  doSendMagicEffect(getPlayerPosition(cid), 27)
                  doSendAnimatedText(getPlayerPosition(cid), "VIP!", TEXTCOLOR_RED)
              end
        end
        return true
end

and goto data/globalevents and open globalevents.xml and put this line
Code:
<globalevent name="vipEffect" interval="3" script="vipEffect.lua"/>

Credits goes to PhoOwned\OTLand

_________________________
Live life like there's no tomorow, Love as long as you Breath <3
˙·٠•●♥️ Twilight New Moon ♥️●•٠·˙
avatar
Sacred Anlyest
Global Moderator

Profession :
  • Mapper
  • Scripter

Posts : 20
Reputation : 1
Join date : 2011-12-20
Age : 20
Location : Egypt

View user profile

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum