Shawak
Intermediate OT User
Here a script they shows your current Vip time left.
Version:
TFS 0.3.5pl1
Credits:
100% me ^_^
Update from:
http://otland.net/f163/full-working-vip-system-shawak-44840/
You have to have the functions at your functions.lua, or the script won't work.
Script:
- mods/VipTimeCheck.xml
Not tested!, so please report bugs on this forum ^_^.
Regards,
Shawak
Version:
TFS 0.3.5pl1
Credits:
100% me ^_^
Update from:
http://otland.net/f163/full-working-vip-system-shawak-44840/
You have to have the functions at your functions.lua, or the script won't work.
Script:
- mods/VipTimeCheck.xml
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="VipTime Shower" version="1.0" author="Shawak" contact="otland.net" enabled="yes">
<description>
This script shows your current vip time left.
You need Shawaks Vip System, look here:
[url]http://otland.net/f163/full-working-vip-system-shawak-44840/[/url]
</description>
<talkaction words="!vipcheck" event="script"><![CDATA[
dofile(getDataDir() .. "lib/function.lua")
function onSay(cid, words, param, channel)
if isPlayerVip(cid) ~= TRUE then
return doPlayerSendTextMessage(cid, 22, "You aren't a VIP Player.")
end
local left, d, h, m, s = (getPlayerStorageValue(cid, vip_storage) - os.time()), 0, 0, 0, 0
while left >= 86400 do
left = left - 86400
d = d+1
end
while left >= 3600 do
left = left - 3600
h = h + 1
end
while left >= 60 do
left = left - 60
m = m + 1
end
while left >= 1 do
left = left - 1
s = s+1
end
return doPlayerPopupFYI(cid, "VIP Player Informations:\n\nYour VIP time left:\nDays: "..d.."\nHours: "..h.."\nMinutes: "..m.."\nSeconds: "..s.."")
end
]]></talkaction>
</mod>
Not tested!, so please report bugs on this forum ^_^.
Regards,
Shawak
Last edited: