• 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 please Vip system

Wainkilo

New Member
Joined
Feb 7, 2012
Messages
3
Reaction score
0
hello otland i want help with vipsystem
i want vipdoor and vip medal script please
 
your English sux
anyway
VIP Door System
-- Credits StreamSide and Empty
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cidPosition = getCreaturePosition(cid)
if (item.actionid == 5788 and getPlayerStorageValue(cid,19551) >= 1) then
if cidPosition.x < toPosition.x then
doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Welcome VIP Player", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE)
doCreatureSay(cid, "Cya!", TALKTYPE_ORANGE_1)
end
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but only VIP Players can pass here! Buy VIP from Admin Amadeu.")
return TRUE
end
return FALSE
end

Vip Medal System
-- Credits StreamSide, Empty and Kaorus
function onUse(cid, item, fromPosition, itemEx, toPosition)
local name = getCreatureName(cid)
-- if getPlayerStorageValue(cid,19551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 19551)
doSendAnimatedText(getPlayerPosition(cid), ".V.I.P.!", TEXTCOLOR_RED)
doSendAnimatedText(getPlayerPosition(cid), ".V.I.P.", TEXTCOLOR_RED)
doSendMagicEffect(getPlayerPosition(cid),27)
doCreatureSay(cid, "CONGRATULATIONS " .. name .. "! Now you are a member of the VIP City!!Now you can enter VIP and use unique features!", TALKTYPE_ORANGE_1)
doBroadcastMessage("CONGRATULATIONS " .. name .. "! Now you are a member of the VIP City!!Now you can enter VIP and use unique features!")
setPlayerStorageValue(cid, 19551, (getPlayerStorageValue(cid,19551) + 999))
doSendMagicEffect(getPlayerPosition(cid),27)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
doRemoveItem(item.uid, 1)
end
-- else
-- doPlayerSendCancel(cid,"You are already a donator.")
-- end
return TRUE
end

Actions.lua
<action actionid="5788" script="vipdoor.lua"/>
<action itemid="9653" script="vipland.lua"/>
 
Seron : Thanks you so much , your script work 100% Rep ++
Xeikh : iam not lazy , i can't found Vip system , anyway thanks you
 
Back
Top