local t = {
vip = 58241, -- VIP storage.
takedays = 7 -- how many days will be paid.
}
function onSay(cid,words,param)
if getPlayerStorageValue(cid,t.vip) > t.takedays then
doPlayerSetSex(cid,(getPlayerSex(cid) == 0 and 1 or 0))
setPlayerStorageValue(cid,t.vip,getPlayerStorageValue(cid,t.vip)-t.takedays)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have changed sex and paid '..t.takedays..' days of VIP!')
doSendMagicEffect(getThingPos(cid),CONST_ME_MAGIC_GREEN)
else
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You don\'t have '..t.takedays..' VIP days.')
doSendMagicEffect(getThingPos(cid),CONST_ME_POFF)
end
return true
end