Hello,
please iam need help for script [MOD]VIP
Script:
NOT WORK's..
Please Fixx..;D
Thanks,
LordiN
please iam need help for script [MOD]VIP
Script:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Verify VIP" version="1.0" author="LordiN" contact="otland.net" enabled="yes">
<config name="vips_config"><![CDATA[
config = {
playerPos = getCreaturePosition(cid),
pos = {x = 32360, y = 31782, z = 7}
}
]]></config>
<event type="login" name="VIP" event="script"><![CDATA[
domodlib('vips_config')
function onLogin(cid)
if isVip(cid) == TRUE then
doSendAnimatedText(config.playerPos, 'VIP!', 210)
doPlayerSetExtraExpRate(cid, 5)
end
if isVip(cid) == FALSE then
doSendAnimatedText(config.playerPos, 'FREE!', TEXTCOLOR_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Adquira sua VIP ja !")
doPlayerSetExtraExpRate(cid, 0)
end
if haveVipDays(cid) == FALSE then
if isVip(cid) == TRUE then
db.executeQuery("UPDATE `players` SET `town_id` = 2, `posx` = 32360, `posy` = 31782, `posz` = 7 WHERE `players`.`account_id` = ".. getAccount(cid) ..";")
db.executeQuery("UPDATE `accounts` SET `vip` = '0' WHERE `accounts`.`id` = ".. getAccount(cid) ..";")
doTeleportThing(cid, config.pos)
doSendMagicEffect(config.pos, 10)
getPlayerTown(cid, 2)
doSendAnimatedText(config.pos, 'FREE!', TEXTCOLOR_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Sua VIP expirou !")
doPlayerSetExtraExpRate(cid, 0)
end
end
]]></event>
</mod>
NOT WORK's..
Please Fixx..;D
Thanks,
LordiN