Cloow
Active Member
- Joined
- May 10, 2010
- Messages
- 1,086
- Reaction score
- 35
Hello, i want to make a teleport script.
Example - Player says !tp "<---City--->" it will teleport the player to that location.
This is my script atm.
Now, if i want to make more avaible places how to ?
Example, i want it to be avaible to teleport to 7 diffrent towns.
Do i need to make 7 diffrent scripts then? Make 6 more exactly the same scripts but new ones? Or could i just repeat it in the same script?
NOTE: I dont even know if this script works or not >.<
Example - Player says !tp "<---City--->" it will teleport the player to that location.
This is my script atm.
Code:
local t =
{
pos = {x=999, y=999, z=999},
}
function onSay(cid, words, param, channel)
doTeleportThing(cid, local.pos, pushmove = true)
end
return TRUE
end
Now, if i want to make more avaible places how to ?
Example, i want it to be avaible to teleport to 7 diffrent towns.
Do i need to make 7 diffrent scripts then? Make 6 more exactly the same scripts but new ones? Or could i just repeat it in the same script?
NOTE: I dont even know if this script works or not >.<