ID:1376354
 
(See the best response by Ter13.)
I need the code to make myself owner, Help please?
( BTW no bad comments. Like everybody says: If you don't have something nice to say, don't say anything at all.)
var/admins = list("Jameswagnac123")
mob/Login()
..()


var/adminlist = list("jameswagnac123")

mob/Login()
if(src.ckey in adminlist)


I use the first one. You'll have to code what verbs you want yourself, which I'm sure you know. If you need any more help, feel free to page me. I'll give you a test code if there's any errors to show you that it works.
Best response
You were already told yesterday there is no single way to do this. There are a number of ways, and it all depends on what system you are using.

We weren't being mean yesterday. We were giving you the right answer. You just don't know enough about programming yet to see that.
I also agree with the post above mine.

Also, try reading the DM guide.
http://www.byond.com/docs/guide/

It may be a a lot, but it helps. You can also find some tutorials on YouTube.

Also Zilals guide:
http://zilal.byondhome.com/tutorials/zbt.html

It isn't much but it could be worth reading.
It's called using your brains, that's how you make yourself an admin :)
While I agree with the comments already posted, I learned through examining demos, either by copy and pasting them into a project or by altering them. I never read anything other than the help-on, because not everyone enjoys reading to learn. So, I'll give an example of how to create an admin system which will have you as admin, and explain how everything works.

Here we go:
/*
First off, the mob/Login. Technically, you could use client/Login to do this, but honestly, it doesn't really matter too much. Plus, I can think of a couple issues client/Login may cause for this type of system.
*/

var/list/Admins=list("Jameswagnac123","Ss4tobyForExample")

mob/Login()//This is ran whenever a player logs in
if(src.ckey in Admins)//This will make sure their key is in the Admins list, defined above.
src.verbs+=typesof(/mob/admin/verb/)//Types of will create a list of every path that branches from the given path. This is idea to give someone every command.
..()//This will make the login proc do it's native function, which is to simply send the mob to the lowest available location. You may want to omit this out.

/*
Now, to define some variables to be under the mob/admin/verb path!

Everything below are the verbs that will be given to the admins upon login.
*/


mob/admin/verb
Goto(m as mob in world)
if(m)
src.loc=m.loc
src<<"You teleport to [m]."
m<<"[src] appears from nowhere!"

Summon(m as mob in world)
if(m)//This if is probably not necessary.
if(m.client)//Only allow for players to be summoned.
m.loc=src.loc
range(m)<<"[m] was summoned by [src]!"

Boot(m as mob in world)
if(m)
switch(alert(src,"Are you sure you want to boot [m]?","Boot:","No","Yes"))
if("Yes")
world<<"[m] was booted by [src]!"
del(m)


Essentially, you can give an admin power to do anything in a game. Just have to know how to make the verb. The verbs I provided are basic examples, but you can look through the resources to find better verbs that you can copy and paste into your game. Just be sure to change the path to match your own.

I hope you found this useful.
So now copy-pasting is encouraged? Since when?
In response to Albro1
Albro1 wrote:
So now copy-pasting is encouraged? Since when?

I believe ss4toby was attempting to express (albeit poorly) the value of learning by example and reverse engineering.

What he doesn't know, however, is that in his thread yesterday, the OP posted an entire DM file consisting of a number of thousands of lines of code that was so hopelessly backward and against standards and practices of even the most basic form of reason and logic, that the only option the OP has to learn is to abandon the codebase he is working on completely.

Learning by example and reverse engineering is only as good as the example you have on hand, and the OP's example that he is refusing to accept is rancid, is only going to hurt him in the long run.
Looks guys, you're being closed minded. As stated, some people simply get bored learning through reading. Therefore, BYOND loses potential programmers if that were the only method offering. I do admit, copying and pasting/reverse engineering has huge downfalls to learning the language accurately, but it does offer some advantages too. In essence, the copying and pasting method is really only bad when bad examples are given.
He already has an entire source, though. If he had the intention to learn from looking at code, he wouldn't be asking how to make himself an owner. He just wants things handed to him, which we aren't here to do.
This really is not the place to have this kind of discussion, guys.
Ctr+F the previous Owner's name in the code. Badda bing.