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

VIP Popup Message

Donzscurr

Little Sneaky Poster
Joined
Jun 20, 2009
Messages
25
Reaction score
0
How do I make it so that when players have VIP, if their in the correct storage slot it will pop up on their character VIP and send a magic effect? Here's my script but it's not working.

function onThink(interval, lastExecution)
for _, name in ipairs(getOnlinePlayers()) do
local cid = getPlayerByName(name)
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendMagicEffect(getPlayerPosition(cid), 27)
doSendAnimatedText(getPlayerPosition(cid), "V.I.P", 23)
end
end
return true
end

If anyone can help i will rep++
 
Try

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