ID:141873
 
Code:
mob/Admin
verb
PerfectGoku()
set category="GM Sagas"
world<<"<i><b>The final terror of the universe has arrived"
M:loc = PerfectGoku.loc
F.loc=locate(70,1,5)//input variable


Problem description: I need to teleport certain players to a certain map at any given moment regardless of where I am.

Even though you never supplied any error, it's pretty obvious. There's no M, there's no F. The line with M in it is pointless.

What you need is a for() loop.
for(var/mob/m) //Loops through all mobs in the world. Current mob is given m as a variable to be used under the for() loop.
if(m.certain_player)
m.loc=locate(1,2,3)//Teleport m to x1,y2,z3.

You could also do this:
for(var/mob/m in certainplayers) //Loop through a predefined list of "certain players".
m.loc=locate(1,2,3)

Assuming you already have a list "certainplayers" and added "certain players" to that list.
mob
gm
verb
teleport_to_certain_loc(mob/M as mob in world)
set category="admin"
if(!M.client)
return
M.loc=locate([specific x] [specific y] [specific z])


just build a list of mobs in world, then teleport them to that location you want
In response to Kaiochao

loading saga.dme
Police.dm:860:error: .: expected end of statement

saga.dmb - 5 errors, 0 warnings (double-click on an error to jump to it)
In response to PerfectGoku
I need it so, like this:
My gms:
Me: I need it so it teles me to a certain place on the map, it says this in the world: "The final terror of the universe has arrived."
I also need separate verbs of that for other people, I could make them once I could get the first one working.
In response to PerfectGoku
Showing just the compile info doesn't exactly help.
In response to Kaiochao
Well those codes don't really have what I want so it doesn't matter too much.
Heres another attempt I made:
mob/Admin
verb
PerfectGoku()
set category="GM Sagas"
world<<"<i><b>The final terror of the universe has arrived"
var/checking = var/savefile/P = new("PerfectGoku.sav")
F.loc=locate(70,1,5)//input variable


I'm gettin a few arguement errors with that.
In response to PerfectGoku
You could erase the whole line defining the variable, since it doesn't do anything no matter how much better it is. What are you trying to do with that line anyways?

Line:
var/checking =  var/savefile/P = new("PerfectGoku.sav")

In response to Kaiochao
To be honest I really don't know how to code such a thing so I'm just winging it.
Example:
I click the admin verb "perfectgoku"
it teleports me to a certain place i coded in.
Now how would I do that?
In response to PerfectGoku
loc: Location. Change it to "teleport" the object to a certain location.
locate() proc: Returns the location specified within the parentheses. Can be a type, tag, textref, or x,y,z. I suggest the x,y,z function as you want to teleport everyone to a certain coordinate on the map.

Using both things mentioned above, you end up with this code:
loc=locate(1,1,1) //x, y, and z coordinates can be found in the map editor.