Amiroslo
Excellent OT User
- Joined
- Jul 28, 2009
- Messages
- 6,812
- Solutions
- 6
- Reaction score
- 822
I got this action script
when someone is over or less than 1 reb he can enter :/ why? whats wrong
im using tfs 0.3.6pl1
rep++
Code:
local config =
{
posWrong = {x=960, y=1075, z=7}, -- If they dont have required storage value
posCorrect = {x=638, y=1753, z=7}, -- If they DO have correct storage value
rebornV = 2500, -- reborn storage
rebornN = 1 -- reborn value requirement
}
-- Reborn teleport script
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, config.rebornV) >= config.rebornN then -- If players "reborn" storage is greater than 1. THEN:
doTeleportThing(cid, config.posCorrect) -- teleport them to "posCorrect" value
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Welcome to Reborn Hunting Spawns.")
else
doTeleportThing(cid, config.posWrong) -- reject their access.
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you are under the requirement reborn.")
end
return true
end
im using tfs 0.3.6pl1
rep++