ID:262802
 
I Have Dial-Up , So When I Run The Game It Lags For Other Players , i want To Let My Friend , And Only him Host. When i sent him the files though , he Became head Moderator , Im still going to Join the Game , so basically i need the coding to let him host , but me be head moderator
Thanks in advance
Qui.

You're giving the users administrative powers. Add a keycheck in the login instead.

PS; this should be in Developer How-To
There is no "code" for letting someone host. They just click the Host button and that's it. You're probably making the first person to login the Head Moderator, when you should only make them Head Moderator if they match your key.
In response to AZ0123
i have a nifty little code for this, let me see...
i will give you the codes for keycheck for MOD's and Über MOD's (just in case of annoying MOD's)
mob
Login()
MODcheck() // When loggin on perform this check

proc
MODcheck() // The desired proc
if (usr.key == "key1" | "maybe_key2") // Check for the keys of those MOD's
usr.MOD = 1 // Nifty little var, i use it to stop MOD's editing other MOD's
usr.suffix = "MOD" // Let them know your powers
MODextras() // This gives you the extra verbs

this is for the extra verbs check
    proc
MODextras()
new/mob/MOD/verb/Boot(usr)
new/mob/MOD/verb/Ban(usr)
new/mob/MOD/verb/Unban(usr)
new/mob/MOD/verb/Ban_ip_range(usr)
new/mob/MOD/verb/Display_ip_address(usr)
new/mob/MOD/verb/Edit(usr)
new/mob/MOD/verb/Disable_cheats(usr)
new/mob/MOD/verb/Mute(usr)
new/mob/MOD/verb/Unmute(usr)
if (usr.key == "Meganutter") // I am Über MOD in my own game of-course thus allows me to edit MOD's
usr.SuperMOD = 1
usr.Creator = 1
usr.suffix = "SuperMOD & Creator"
new/mob/MOD/verb/Edit_MOD(usr)
new/mob/MOD/verb/Edit_all(usr)

Regular edit beginning
    MOD
verb
Edit(mob/edit as mob in online)
set category = "Options"
if (edit.MOD == 1) // Put this as the start of your edit verb and only Über MOD's can edit everyone
usr << "You cant edit MOD's"
return

MOD editor
    MOD
verb
Edit_MOD(mob/edit as mob in online)
set category = "Options"
if (usr.SuperMOD == 0)
usr << "You cant edit MOD's"
return
if (edit.suffix <> MOD)
usr << "This is not a MOD"
return

i hope i helped you a bit with these codes ^^ if you have any questions, do not fear to page or email me
just insert the missing vars how you like them
In response to Meganutter
1) Don't put usr in those procs. Use src.

2) Don't do if(key==""), do if(ckey=="").

3) Don't do if(var==1) or if(var==0) for Boolean variables (variables that can only ever be 1 or 0). Do if(var) or if(!var).

4) Instead of adding a lot of verbs seperately, use typesof().
In response to DeathAwaitsU
ckey might not work well for administration stuff if the username has spaces in it. Then someone can remove the space and be an admin.
In response to Audeuro
Um, no.

Every key on BYOND has an original ckey. For example, no one can make the key "Death Awaits U" because I have the ckey "deathawaitsu".
In response to DeathAwaitsU
DeathAwaitsU wrote:
Um, no.

Every key on BYOND has an original ckey. For example, no one can make the key "Death Awaits U" because I have the ckey "deathawaitsu".

Could've sworn I heard a while ago that if someone had a key named...say..."Iggle Biggle Wiggle," and then someone else could make "IggleBiggleWiggle."
In response to Meganutter
Problems(aside from what DAU said);

You didn't call the parent proc in mob/Login() (..())
Don't use |, use || as if() arguments.
Edit(mob/edit as mob in online) Uh, what? Why not
(mob/edit in world)?
In response to Artemio
Well Anyway , Thanks for All The Help :)