XxDeathAvenger
New Member
- Joined
- May 5, 2011
- Messages
- 95
- Reaction score
- 2
I'm using TFS 0.2.10, would I be able to edit a teleporter to send me somewhere and cost money?
Any help is appreciated.
Any help is appreciated.
local truepos = {x=1000, y=1000, z=7} -- Position where player will go
local falsepos = {x=1000, y=1000, z=7} -- Position infront of the teleport where player will go if rejected to enter since its a tp
function onStepIn(cid, item, frompos, itemEx, topos)
if getPlayerMoney(cid) >= how_much then
doTeleportThing(cid, truepos, TRUE)
doRemoveItem(money_id, how_much)
doCreatureSay(cid, "Teleported!", 19)
else
doCreatureSay(cid, "You do not have enough money to enter!", 19)
doTeleportThing(cid, falsepos, TRUE)
end
return true
end