• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help with Vip Item Script

korff

New Member
Joined
Sep 11, 2009
Messages
78
Reaction score
3
Im trying to make a Vip item script (Im new with this stuff),
I make it like this.

Ex: Player premmium account, with 100 days want to buy a wand vip.
Talkaction for wand vip (!buywandvip)
When you use the command, the player get the item on backpack but looses 36 days of premmium account.

after that, player will have only 64 days of premmium account.

function onSay(cid, words, param)

if doPlayerRemovePremiumDays(cid, 36) == 1 then
doPlayerAddItem(cid, 7429,1)
else
doPlayerSendCancel(cid,"Sorry, but you don't have 36 premium days.")
end
end

TFS: 0.2x +
Wand Vip ID: 7429

In this script, player dont get the item, but he loose the premium acc days.
Why?

Can someone give me a help, if you know how to do this script.
I tried so hard.
But I still can't put it working.

:thumbup:
 
Last edited:
Still same error, says "Sorry, but you don't have 36 premium days." , but, he looses 36 premmy days and dont create the item
 
adjusted.

function onSay(cid, words, param)

if doPlayerRemovePremiumDays(cid, 36) == FALSE then
doPlayerAddItem(cid, 7429,1)
else
doPlayerSendCancel(cid,"Sorry, but you don't have 36 premium days.")
end

return TRUE
end
 
Lua:
function onSay(cid, words, param)
	if getPlayerPremiumDays(cid) >= 36 then
		doPlayerRemovePremiumDays(cid, 36)
		doPlayerAddItem(cid, 7429,1)
	else
		doPlayerSendCancel(cid,"Sorry, but you don't have 36 premium days.")
	end
	return TRUE
end
 
Back
Top