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

Vip exp players

hi man thanks for answering i got this
-- [( Script edited by: DoidinMapper )] --
function onLogin(cid)
local pos = {x=32360, y=31782, z=7}
if vip.hasVip(cid) == TRUE then
if getPlayerStorageValue(cid,55555) ~= 1 then
setPlayerStorageValue(cid,55555,1)
end
elseif vip.hasVip(cid) ~= TRUE and vip.getVip(cid) ~= 0 then
if getPlayerStorageValue(cid,55555) == 1 then
doTeleportThing(cid, pos, TRUE)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your VIP's over!")
doPlayerSendTextMessage(cid,22,"Your VIP's over!")
setPlayerPromotionLevel(cid, 1)
setPlayerStorageValue(cid,55555,2)
elseif getPlayerStorageValue(cid,55555) == -1 then
setPlayerStorageValue(cid,55555,2)
end
end
return TRUE
end
 
LUA:
local multiplier = 1.25 -- this is +25%
 
function onLogin(cid)
	if vip.hasVip(cid) then
		if getCreatureStorage(cid, 55555) ~= 1 then
			doCreatureSetStorage(cid, 55555, 1)
		end
		doPlayerSetRate(cid, SKILL__LEVEL, multiplier)
	elseif not vip.hasVip(cid) and vip.getVip(cid) ~= 0 then
		local a = getCreatureStorage(cid, 55555)
		if a == 1 then
			doPlayerSetRate(cid, SKILL__LEVEL, 1.00)
			doTeleportThing(cid, {x=32360, y=31782, z=7})
			doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'Your VIP\'s over!')
			if getPlayerPromotionLevel(cid) > 1 then
				setPlayerPromotionLevel(cid, 1)
			end
			doCreatureSetStorage(cid, 55555, 2)
		elseif a == -1 then
			doCreatureSetStorage(cid, 55555, 2)
		end
	else
		doPlayerSetRate(cid, SKILL__LEVEL, 1.00)
	end
	return true
end
(I sent him the same script through PMs too, since he asked me for it. just in case)
 
Back
Top