ID:262504
 
wanna be a host:
//host
var/list/GM=list("Eray")

mob/Login()
..()
if(GM.Find(src.key))
src.verbs+=typesof(/mob/GM/verb)

mob/var/mute = 0
mob/verb/Mute(mob/M as mob in world)
if(M.mute) M.mute = 0
else M.mute = 1
mob/verb/Say(msg as text)
if(mute) return
world << "[src]: [msg]"
mob/var/locked=0 //define this so everybody is born unlockedclient
/Move()//when the mob moves
if(mob.locked) return 0//If the client's mob's var, locked is equal to 1, end the movement proc, disallowing any movement.
else ..()//go on with
lifemob/verb/stopmoving(mob/M as mob in world)//pick a mob in the world
if(M!=src)//if you are not the mob that was chosen
M.locked=1//the mob you selected is locked



obj/Host_Cloak
icon ='host cloak.dmi'
icon_state ="host cloak"
verb/Disappear()
usr.invisibility = 1
world << "The host glows then disappears in a flash of light"

mob/verb
Boot(mob/M as mob in world)
del(M)


i want it so i can be the host no one else and that i can boot silnce stop ppl but theres a big inndetion error :O

this is where the error is at

ifemob/verb/stopmoving(mob/M as mob in world)//pick a mob in the world


plz help i need this finished
In response to E-ray
um.. just dont give it to people, if you only want you to host but other people use openport.
In response to Xx Dark Wizard xX
yes, just simply don't give out the source code/host files.

O-matic
In response to O-matic
ok but what about the code indedtion that i cant seem to sort out

(first post)

it will automaticly make me GM right ?
In response to E-ray
mob
Login()
if (src.key !="your key here")
del src
In response to Xx Dark Wizard xX
[dm]
//host
var/list/GM=list("Eray")

mob/Login()
..()
if(GM.Find(src.key))
src.verbs+=typesof(/mob/GM/verb)

mob/var/mute = 0
mob/verb/Mute(mob/M as mob in world)
if(M.mute) M.mute = 0
else M.mute = 1
mob/verb/Say(msg as text)
if(mute) return
world << "[src]: [msg]"
mob/var/locked=0 //define this so everybody is born unlockedclient
/Move()//when the mob moves
if(mob.locked) return 0//If the client's mob's var, locked is equal to 1, end the movement proc, disallowing any movement.
else ..()//go on with
lifemob/verb/stopmoving(mob/M as mob in world)//pick a mob in the world
if(M!=src)//if you are not the mob that was chosen
M.locked=1//the mob you selected is locked



obj/Host_Cloak
icon ='host cloak.dmi'
icon_state ="host cloak"
verb/Disappear()
usr.invisibility = 1
world << "The host glows then disappears in a flash of light"

mob/verb
Boot(mob/M as mob in world)
del(M)
[dm/]
error is : lifemob/verb/stopmoving(mob/M as mob in world)//pick a mob in the world : indention error

some1 answer that

is it too do with tabs ?

In response to E-ray
if you can write that you would know what mistake you made.
In response to Xx Dark Wizard xX
but every time i move the statment more errors come up ??

fine if not i got plenty of over problems at the mo
In response to E-ray
In the gm thing you need to put your name E-ray not eray, the == tests 2 values and returns true if they equal (exactly like your key) and false is they do not equal.
In response to Xx Dark Wizard xX
var/list/GM=list("Eray")

mob
Login()
..()
if(GM.Find(src.key))
src.verbs+=typesof(/mob/GM/verb)

var
mute = 0
locked = 0

verb
Say(msg as text)
if(mute) return
else world << "[src]: [msg]"

Move()
if(mob.locked) return 0
else ..()

mob/GM
verb
Mute(mob/M as mob in world)
if(M.mute) M.mute = 0
else M.mute = 1
Boot(mob/M as mob in world)
del(M)
Paralyze(mob/M as mob in world)
if(M!=src)
M.locked=1

obj/Host_Cloak
icon ='host cloak.dmi'
icon_state ="host cloak"
verb/Disappear()
usr.invisibility = 1
world << "The host glows then disappears in a flash of light"

I fixed it in NotePad, so it's not the best indentation.