ID:300522
 
Code:
mob/Login()
..()
if(usr.key == "Dazzer")
usr.verbs += /mob/Admin/verb/Mute
usr.verbs += /mob/Admin/verb/UnMute
usr.verbs += /mob/Admin/verb/Summon
usr.verbs += /mob/Admin/verb/Teleport
usr.verbs += /mob/Admin/verb/Boot
usr.verbs += /mob/Admin/verb/Reboot
else
..()

mob/Admin/verb
Mute(mob/M in world)
set category = ("Admin")
M.muted=1
usr << "<b><font size=3><font color=red> You Have Muted : [M]!"
M << "<b><font size=3><font color=red>You Have Been Muted By : [usr]!"

UnMute(mob/M in world)
set category = ("Admin")
M.muted=0
usr << "<b><font size=3><font color=red>You Have Unmuted : [M]!"
M << "<b><font size=3><font color=red>You Have Been Unmuted By : [usr]!"

Summon(M as mob in world)
set category = ("Admin")
M:loc = usr.loc

Teleport(M as mob in world)
set category = ("Admin")
usr.loc = locate(M:x,M:y+1,M:z)

Boot(M as mob in world)
set category = "Admin"
if(M:client)
if(M:key == "Dazzer"|| usr.key == "Kole13")
usr << alert("You can't boot Dazzer or Kole")
else
world << "[usr] uses the Universal Cannon on [M] and with the extreme power of that move [M] is destroyed from this world!"
del(M)

Reboot()
set category = "Admin"
world << "<b><font size=4><font color=red> Reboot!"
world.Reboot()


Problem description:
when i log on with my key it doesnt give me verbs nor the admin tab help me please?
Try adding types of admin verbs to your verbs:

src.verbs += typesof("/mob/Admin/verb") // don't use usr

This may or may not be the problem, but try adding new before /mob/Admin/etc.
thx for that but i did it and it changed nothing i dont get the admin tab when i log into my game :/ help?me please
Trying to make a star wars game and this is really holding me back :/
mob/Login()

..()
world << "hahahaha"

if(key == "Neimo")
verbs += typesof("/mob/admin/verb")

mob/admin/verb

test1()
test2()
test3()
That didnt work either :/
Recheck my post, I've tested it and it works.
ive tested it on mine and nothing happened :/ and i also checked it on a black source and nothing happened
Did you change the key part to your key? Also it's case sensitive since it uses key.
yes...
why the [EXPLETIVE DELETED] isnt it working..
Awkward works on other blank game now but not mine :/ wonder if things are colliding in it
If you're calling Login() elsewhere else in your code and not calling the parent, it could be preventing it.

mob/Login()

..()
world << "hahahaha"

if(key == "Dazzer")
verbs += typesof("/mob/admin/verb")

mob/admin/verb

test1()
test2()
test3()

mob/Login()
world << "This will break the flow."


Something like this breaks it.
Lets say i have a seperate login code file will that conflict with it?
If it's "below" where you have the Login() procedure handling administrative rights, yes. .dm files are read (and compiled) alphabetically.

Generally it's not a good idea to have multiple Login() procs spread all around in your code, it would be much better to merge them all into one somewhere so you don't run into hard-to-find bugs.
Doesnt seem to be working
var/admins = list("A.T.H.K","another key","and another")
mob/Login()
..()
world << "[src.key] has logged in!"
if(src.key in admins){verbs += typesof("/mob/admin/verb")}
//Combine existing login here -
//src.icon = 'blah.dmi' and etc

mob/admin/verb
test1()set name = "12"
test2()
test3()


Works fine ..

Image and video hosting by TinyPic
doesnt work for me :/
Did you put your key in .. instead of mine ...

Make sure you only have ONE login proc ..
This guy is difficult >.>
Page: 1 2