• 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 system 0.3.5pl1

henriqhaga

New Member
Joined
Jun 18, 2009
Messages
5
Reaction score
0
How i Make a good vip sistem on tfs 3.5 pl1? i1am needing to my server. is a question noob but i dont know. =( Thanks
 
mine: 0.3.5pl1

LUA:
--Config by Wlj Otland--
local Config AddPlayerPremiumDays  --- From server config premium=vip. So dont change config.lua to free prem then all get vip..---
local AddDays = 7 -- Days of VIP Player will get--
local STORE_VALUE = 11551 -- The doors unid  '11551'--
local EXHAUST_TIME = 2 -- Exhaust time in seconds.--

--Config--
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2354 then  -- Item ID <.<.
getPlayerStorageValue(cid, 11551)   -- The doors unid  '11551'--
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!. ", TALKTYPE_BLUE_1)
if item.uid == 70430 and getPlayerStorageValue(cid,70430) == 1 then  -- Use Unid '70430' on the "quest" SQM..--
doSendMagicEffect(pos, 29)
setPlayerStorageValue(cid, 11551, 1)   -- The doors unid  '11551'--
doRemoveItem(item.uid, 1)
end
else
doPlayerSendCancel(cid,'You have not talked with CM Reaper! Please ask for a trip to GM Island.')  -- CM Reaper is a npc, He can help the player to GM Island. Use the value to make this "quest".--
doRemoveItem(item.uid, 1)
	end
	return LUA_NO_ERROR
end
 
Back
Top