Xeikh
詠春 ☯
- Joined
- Oct 23, 2009
- Messages
- 724
- Reaction score
- 17
Hello!
Im using this vip script:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) > 365 then
doPlayerSendCancel(cid, "You can only have 1 year of vip account or less.")
else
doAddVipDays(cid, 30)
doSendMagicEffect(getPlayerPosition(cid), 36)
doSendAnimatedText(getPlayerPosition(cid), "V.I.P.", TEXTCOLOR_RED)
doPlayerPopupFYI(cid, "We have added 30 vip days to your account!\nEnjoy it!.")
doRemoveItem(item.uid)
end
return true
end
But if i have like 10 scrolls in a slot and i use, remove the 10 scrolls... what i need is, if i use 1, just remove 1 and not all the amount, can please someone help me please?
Btw. i want too.. to change the message "we have added...." instead of a popup, a console message.. please:$
Im using this vip script:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) > 365 then
doPlayerSendCancel(cid, "You can only have 1 year of vip account or less.")
else
doAddVipDays(cid, 30)
doSendMagicEffect(getPlayerPosition(cid), 36)
doSendAnimatedText(getPlayerPosition(cid), "V.I.P.", TEXTCOLOR_RED)
doPlayerPopupFYI(cid, "We have added 30 vip days to your account!\nEnjoy it!.")
doRemoveItem(item.uid)
end
return true
end
But if i have like 10 scrolls in a slot and i use, remove the 10 scrolls... what i need is, if i use 1, just remove 1 and not all the amount, can please someone help me please?
Btw. i want too.. to change the message "we have added...." instead of a popup, a console message.. please:$