[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

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)
        return true

and goto data/globalevents and open globalevents.xml and put this line
<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 ♥️●•٠·˙
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