• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Effect

X_Anero

New Member
Joined
Apr 10, 2013
Messages
74
Reaction score
1
Location
United Kingdom
Hello Otlanders,

Today i would like to Ask a Question, I have got VIP System
and I wanted, so when player is with VIP, On him there will Be Effect
and every 3 sec it will be Saying "VIP"

Question is: im not sure if shall it be, Globalevent, or Creaturescript.
Thanks
Rep++ For Help
 
LUA:
<globalevent name="VIPeffect" interval="3" script="vipeffect.lua"/>

LUA:
function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
if getPlayerStorageValue(cid, 11551) >= 1 then
doSendAnimatedText(getPlayerPosition(cid), "V I P", TEXTCOLOR_RED)
end
end
return true
end
 
Back
Top