-- [( 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
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
It's the only script??? I don't think so....
Post the link where u got all vip system please....