Usage: gms_master_player ( )


Returns the player that logged in the first.

Replies (7)

Last message on 26 Sep 2016

Arcadian on 22 Sep 2016, 19:10:33
Being inside a session, gms_master_player() shows the first player logged in among all the players of the server, or the first played logged in among all the players of the session?
Size43 (Administrator) on 26 Sep 2016, 19:59:26
It's the first played logged in among all the players of the session.
mpgame on 18 Sep 2016, 16:36:38
hello my friend,

how to understand that who is the first player in vs mode(I or other player)?

mpgame on 20 Sep 2016, 17:01:31
hi again ;)
I think by this code gms_team_get_current() it is possible!

but now I have a new problem!
I have some problems with the login part in the case of mobile(android)'s output... because virtual keyboard must open for entering the username and register parts, but it doesn't happen... :(
have you an example source about android login?

I am waiting for your guidance.
thanks thanks thanks
Size43 (Administrator) on 20 Sep 2016, 17:11:44
You can use gms_show_toggle_keyboard to enable or disable the on-screen keyboard. Call it before calling gms_show_login, and the keyboard will automatically show up when the user taps on a textbox.
mpgame on 22 Sep 2016, 12:18:24
Size, is it possible to say me game setting of "Topdown Shooter"? (Minimum number of players - Perferred number of players - Maximum number of players - Minimal waiting time - Maximum waiting time)

That is very important for me because I have problems in my game that they don't exist in topdown shooter!
for example in my game, if 3 players Simultaneously login in 3 different pc, two of them will be "other player" and control it and one of them will be "main player"!.
This is happening despite of using the script "gms_team_set_max(2); " in my login object.
It is notable that my game is 1 vs 1.

Thanks for your guidance very much.
Size43 (Administrator) on 26 Sep 2016, 19:58:56
If your game is 1v1 you should set min, max and preferred number of players to 2.

Also note that everyone will control the "player object", but will show up as an "other player object" to the other players.