RunarM
Finally back
How do i add Donation System in the Game?
Like, Training monk you need Donation to go here.
You understand?
Thanks =) ^^
Like, Training monk you need Donation to go here.
You understand?
Thanks =) ^^
function onStepIn(cid, item, pos, frompos)
if isPlayer(cid) == TRUE and item.actionid == 6000 and getPlayerStorageValue(cid,6000) == 1 then
doTeleportThing(cid, {x=358, y=638, z=7})
doPlayerSendTextMessage(cid,22,"You're now in the VIP zone.")
else
doPlayerSendTextMessage(cid,22,"Sorry only VIP players, buy VIP access at our donation shop.")
doTeleportThing(cid, frompos)
end
end
function onUse(cid,item,frompos,item2,topos)
queststatus = getPlayerStorageValue(cid,6000)
if queststatus == -1 then
setPlayerStorageValue(cid,6000,1)
doRemoveItem(item.uid, 1)
doSendMagicEffect(frompos, CONST_ME_FIREWORK_YELLOW)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "You're now a VIP player!")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Sorry you already have VIP.")
end
return TRUE
end