juansanchez
Intermediate OT User
- Joined
- Apr 2, 2015
- Messages
- 217
- Reaction score
- 130
Hey otland guys, i need help today with my reset door script that i have.
In my server there is Reset System, and so i needed reset doors. I found the script in another forum and it kind of works.
Whoever did the script, added a function to give +1 id to the door in order to open.
And if the players keep on walking in and out in the door, the door starts to change to other doors, some doors go sideways and it all messes up.
I Tried to ask for help in the other forum but no one could help me, if anyone can help me out, i'd really appreciate.
Script:
TFS 0.3.7
In my server there is Reset System, and so i needed reset doors. I found the script in another forum and it kind of works.
Whoever did the script, added a function to give +1 id to the door in order to open.
And if the players keep on walking in and out in the door, the door starts to change to other doors, some doors go sideways and it all messes up.
I Tried to ask for help in the other forum but no one could help me, if anyone can help me out, i'd really appreciate.
Script:
function onUse(cid, item, frompos, item2, topos)
local reset = 5 -- quanty reset
if getPlayerReset(cid) < reset then
return doPlayerSendTextMessage(cid,18,"Voce precisa de "..reset.." resets ou mais para passar dessa porta.") end
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, topos, TRUE)
return true
end
local reset = 5 -- quanty reset
if getPlayerReset(cid) < reset then
return doPlayerSendTextMessage(cid,18,"Voce precisa de "..reset.." resets ou mais para passar dessa porta.") end
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, topos, TRUE)
return true
end
TFS 0.3.7