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++
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++