Admin Only / Limited Online

Posted by ULTDude
I've been looking through the documentation trying to see if this possible, but I'm wondering if there is a way to make it so only Admins can log in? I'm probably just not being creative enough with the available scripts, so that's why I figured I would ask here.

Replies (2)

Last message on 14 Mar 2021

iamadevil on 14 Mar 2021, 05:43:53
you could make it check if the logging in user is admin with " if gms_self_admin_rights() > 0", and if its true, make them go to the next room, and if its not true, make the game end or show a message saying only admins can log in, etc. as far as im aware, there isnt an official way to do that (like gms_login_admins_only() or something like that) so this is probably the easiest way to do it. im not really good myself, so i hope this helps lmao.
Size43 (Administrator) on 14 Mar 2021, 16:19:04
This is what I'd suggest as well!