zidanefrance
Seniour Member
- Joined
- Jul 20, 2009
- Messages
- 51
- Reaction score
- 0
I need a script That makes ppl when they are VIP they have magic effect every X seconds and doCreatureSay VIP or something like that....help me with it and I will rep++ u!!
function onThink(interval, lastExecution, thinkInterval)
for _, cid in ipairs(getPlayersOnline()) do
if (getPlayerStorageValue(cid, xxxx) > 0) then
doSendAnimatedText(getCreaturePosition(cid), "* VIP *", TEXTCOLOR_RED)
end
end
return true
end
function onThink(interval, lastExecution, thinkInterval)
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(cid, XXXX) > 0 then
doSendAnimatedText(getCreaturePosition(cid), "Vip", TEXTCOLOR_RED)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
end
end
return true
end