ID:172169
 
How can you make it so that the first 2 people to log on get to play, and those who log on after that become a different type of mob? (spectator in my case) I just dunno how to make the comp check that. Thanks in advance ^^
i cant remember the code but if u need to test and people keep coming in and bother u then as soon as both the people r in hit host again and choose disallow any new connections...this'll stop people
var
usr_count

mob/var
type

mob
Login()
usr_count++
if(usr_count=<2)
//define player here (can't think of how to do that right now
else
//define spectator here (see above)
In response to Dragon of Ice
Dragon of Ice wrote:
> var
> usr_count
>
> mob/var
> type <--
>
> mob
> Login()
> usr_count++
> if(usr_count=<2)
> //define player here (can't think of how to do that right now
> else
> //define spectator here (see above)
>


You cannot redefine the type variable.

~~> Dragon Lord