• 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!

!viptest Command

arturhaddad

Member
Joined
Aug 14, 2010
Messages
217
Reaction score
8
I need a command that gives 1 premmium day to a level 200 when he says !viptest (for example). It must be used only once.

It is meant to give a try of premium features to free account players and motivate them to get a premmium.

Ty.
 
LUA:
function onSay(cid,words,param)
local v,s = getThingPos(cid),12754 --- number is storage value.	
	if getPlayerLevel(cid) >= 200 then
		if getPlayerStorageValue(cid,s) ~= 1 then
			doPlayerAddPremiumDays(cid,1)
			doPlayerSendTextMessage(cid,27,'You got 1 day of premium so you can experience the benefits of premium!')
			setPlayerStorageValue(cid,s,1)
			doSendMagicEffect(v,12)
		else
			doPlayerSendTextMessage(cid,27,'You can\'t use this twice!')
			doSendMagicEffect(v,2)
		end
	else
		doPlayerSendTextMessage(cid,19,'You need to be level 200 or higher to try out premium.')
		doSendMagicEffect(v,2)
	end
	return true
end
 
Back
Top