• 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!

[REQUEST] Vip Message Pops Up

theroyal

Wassup :)
Joined
Oct 22, 2009
Messages
372
Reaction score
6
hello i have been trying to search for this script for a long time couldn't find so if someone can give it to me
when a player becomes a vip player a message pops up out of him every couple of second with the word vip and some wierd effect
i think it's creature events type script not sure.
 
i used script but nothing happen :S idk why im use tfs 3.6
local config = {
time = 7,
exhaust = {
storage = 11551,
time = 8,
}
}

local function doText(cid, seconds)
if seconds <= 0 then
doSendAnimatedText(getPlayerPosition(cid),"Vip", TEXTCOLOR_LIGHTBLUE)
return false
end
return addEvent(doText, 1000, cid, seconds - 1)
end

function onThink(cid, interval)
if exhaustion.check(cid, config.exhaust.storage) then
return false
end
if (getPlayerStorageValue(cid,11551) == 1) then
doText(cid, config.time)
exhaustion.set(cid, config.exhaust.storage, config.exhaust.time)
end
return true
end

and xml
<event type="think" name="vipEffect" event="script" value="vipEffect.lua"/>

and login

registerCreatureEvent(cid, "vipEffect")

- - - Updated - - -

bump
 
Back
Top