<?xml version="1.0" encoding="UTF-8"?>
<mod name="Pacc information" version="1.0" author="Legolas23" contact="otland.net" enabled="yes">
<config name="PaccInformation"><![CDATA[
config = {
kickpos = { x=1234, y=123, z=4, stackpos=1 }
paccStorage = 45322
}
]]></config>
<event type="login" name="PaccInformation" event="script"><![CDATA[
domodlib('PaccInformation')
function onLogin(cid)
if getPlayerPremiumDays(cid) == 0 then
doTeleportThing(cid, config.kickpos)
doPlayerSendTextMessage(cid, 25, "Your premium time has ran out!")
setPlayerStorageValue(cid, config.paccStorage, (getPlayerStorageValue(cid, config.paccStorage)+1))
else
if getPlayerStorageValue(cid, config.paccStorage) <= 0 then
return true
end
return true
end
]]></event>
<event type="login" name="PaccInformation" event="buffer"><![CDATA[
registerCreatureEvent(cid, "PaccInformation")
_result = true
]]></event>
</mod>