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

Me vip medal not work

Jonass

Here who doesn't run, it flies.
Joined
Nov 12, 2008
Messages
216
Reaction score
3
Me vip medal not work,i use tfs 0.4, please help.


I use this script.
-- Credits StreamSide and Empty
function onUse(cid, item, fromPosition, itemEx, toPosition)

if getPlayerStorageValue(cid,11551) < 1 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for 15 days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 15))
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
 
use this
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerItemCount(cid, 5670) >= 1 then
         if item.itemid == 5670 then
            setPlayerStorageValue(cid, 15519, 1)
            doSendMagicEffect(toPosition, 21)
	doPlayerPopupFYI(cid, "You are VIP!!")
	doPlayerRemoveItem(cid, 5670, 1)
         end
end
return TRUE
end

Rep+ :(
 
use this
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerItemCount(cid, 5670) >= 1 then
         if item.itemid == 5670 then
            setPlayerStorageValue(cid, 15519, 1)
            doSendMagicEffect(toPosition, 21)
	doPlayerPopupFYI(cid, "You are VIP!!")
	doPlayerRemoveItem(cid, 5670, 1)
         end
end
return TRUE
end

Rep+ :(


He is not asking for that.



Lua:
-- Credits StreamSide and Empty
-- Fix by Rodo

function onUse(cid, item, fromPosition, itemEx, toPosition)

if getPlayerStorageValue(cid,11551) > 0 then
  doPlayerSendCancel(cid,"You are already a donator.")
  return TRUE
end

if getPlayerLevel(cid) < 2 then
  doPlayerSendCancel(cid,"You need to be at least level 2 to use this.")
  return TRUE
end

doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP for 15 days! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid,11551) + 15))
doRemoveItem(item.uid, 1)
return TRUE

end
 
@Up,
It's for 0.4.

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local storage, level, days = 11551, 8, 30
	local msg = "CONGRATULATIONS! You are now a VIP Member and can now enter all areas."
	return getPlayerStorageValue(cid, storage) < 1 and getPlayerLevel(cid) > level and doCreatureSay(cid, msg, TALKTYPE_ORANGE_1) and setPlayerStorageValue(cid, storage, (getPlayerStorageValue(cid, storage) + days)) or getPlayerStorageValue(cid, storage) >= 1 and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You still have VIP time, there is no need to use this again.") or getPlayerLevel(cid) < level and doPlayerSendCancel(cid, "Sorry, but your level is too low.")
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition) return getPlayerStorageValue(cid, 11551) < 1 and getPlayerLevel(cid) > 8 and doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP Member and can now enter all areas.", TALKTYPE_ORANGE_1) and setPlayerStorageValue(cid, 11551, (getPlayerStorageValue(cid, 11551) + 30)) or getPlayerStorageValue(cid, 11551) >= 1 and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You still have VIP time, there is no need to use this again.") or getPlayerLevel(cid) < 8 and doPlayerSendCancel(cid, "Sorry, but your level is too low.") end
 

Similar threads

Back
Top