mob
Login()
usr<<sound('halo.mid',1)
GM()
if(players<= 0)
gametype = input("Game Type?") in list("CTF(Capture The Flag)","Maze","Slayer")
switch(gametype)
if("CTF(Capture The Flag)")
world.status="[gametype]"
switch(input("Team?") in list("Red","Blue"))
if("Red")
overlaytext(src)
checkpos(src)
src.verbs+=/mob/verb/CTF_Score
world<<"<font color=red>[usr.key] has logged in with red"
usr.loc=locate(39,25,7)
usr.icon='MstrChf.dmi'
usr.verbs += /mob/verb/Meele
usr.verbs += /mob/verb/Shoot
icon_state="r"
src.frozen=0
usr.red=1
for(var/obj/healthbar/H in usr.client.screen)
var/is = 0
is = text2num(H.icon_state) //make the var "is" the number equivilant to H's icon state
is += 7 //add one to "is"
H.icon_state = num2text(is) //make H's icon state the text equivilant of is
usr.hp += 7
else if("Blue")
overlaytext(src)
checkpos(src)
src.verbs+=/mob/verb/CTF_Score
world<<"<font color=blue>[usr.key] has logged in with blue"
usr.loc=locate(4,24,7)
usr.icon='MstrChf.dmi'
usr.verbs += /mob/verb/Meele
usr.verbs += /mob/verb/Shoot
icon_state="b"
src.frozen=0
usr.blue=1
for(var/obj/healthbar/H in usr.client.screen)
var/is = 0
is = text2num(H.icon_state) //make the var "is" the number equivilant to H's icon state
is += 7 //add one to "is"
H.icon_state = num2text(is) //make H's icon state the text equivilant of is
usr.hp += 7
if("Maze")
src.verbs-=/mob/verb/CTF_Score
world.status="[gametype]"
world<<"[usr.key] has logged in"
lc()
usr.icon='MstrChf.dmi'
if(prob(50))
overlaytext(src)
checkpos(src)
src.verbs-=/mob/verb/CTF_Score
usr.loc=locate(3,35,6)
src.frozen=0
usr.verbs += /mob/verb/Meele
usr.verbs += /mob/verb/Shoot
for(var/obj/healthbar/H in usr.client.screen)
var/is = 0
is = text2num(H.icon_state) //make the var "is" the number equivilant to H's icon state
is += 7 //add one to "is"
H.icon_state = num2text(is) //make H's icon state the text equivilant of is
usr.hp += 7
if(prob(50))
overlaytext(src)
checkpos(src)
src.verbs-=/mob/verb/CTF_Score
usr.loc=locate(38,4,6)
src.frozen=0
for(var/obj/healthbar/H in usr.client.screen)
var/is = 0
usr.verbs += /mob/verb/Meele
usr.verbs += /mob/verb/Shoot
is = text2num(H.icon_state) //make the var "is" the number equivilant to H's icon state
is += 7 //add one to "is"
H.icon_state = num2text(is) //make H's icon state the text equivilant of is
usr.hp += 7
if("Slayer")
src.verbs-=/mob/verb/CTF_Score
world.status="[gametype]"
usr.icon='MstrChf.dmi'
world<<"[usr.key] has logged in"
lc()
if(prob(50))
overlaytext(src)
checkpos(src)
src.verbs-=/mob/verb/CTF_Score
usr.loc=locate(2,2,5)
src.frozen=0
usr.verbs += /mob/verb/Meele
usr.verbs += /mob/verb/Shoot
for(var/obj/healthbar/H in usr.client.screen)
var/is = 0
is = text2num(H.icon_state) //make the var "is" the number equivilant to H's icon state
is += 7 //add one to "is"
H.icon_state = num2text(is) //make H's icon state the text equivilant of is
usr.hp += 7
if(prob(50))
overlaytext(src)
checkpos(src)
src.verbs-=/mob/verb/CTF_Score
usr.loc=locate(41,41,5)
src.frozen=0
for(var/obj/healthbar/H in usr.client.screen)
var/is = 0
usr.verbs += /mob/verb/Meele
usr.verbs += /mob/verb/Shoot
is = text2num(H.icon_state) //make the var "is" the number equivilant to H's icon state
is += 7 //add one to "is"
H.icon_state = num2text(is) //make H's icon state the text equivilant of is
usr.hp += 7
I want so the HOST chooses what type of game he hosts and all other incoming players go to the course.