ID:147076
 
Ok,ppl have been telling me the same hting but its not what I want.
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.
Just check if the hosts IP is the games IP at login. Then he chooses the type of game. Then when other people come use an if() to check which game the host chose. Then locate() them to the right location.
In response to Dession
uh...........huh............<.<.......What he say? >.<
Well, I think your problem is that you need to have the game mode stuff under your GM Login() and all the other stuff under player Login(). Also, most of your usr should be src.
They told you everything you wanted to know, you were just too busy begging for an example to figure it out for yourself.
In response to Dession
what if there are multiple connections from one PC?
In response to Ter13
Ter13 wrote:
what if there are multiple connections from one PC?

Or if I wanted to host it on DreamDaemon and leave it going for a while, this method would cause problems. There area a bunch of subscription-to-host games that require the host to change settings, but most get hairy if you are not hosting through DreamMaker.

A better way to do this would be to give the host a game options verb where he/she can set things as they want, the settings get stored in a text file. In world/New() read the settings and store them in a list or as seperate variables.
In response to CodingSkillz2
Have a variable that says the choice is locked. Have a variable that tells what game style it is. Its not hard.