Can I determine if a player that is browsing my manialink is in a server or on menus? Some magical maniascript function maybe?
I'd like to change manialink stuff depending on player status
w/o getting MPWS players online_status, i'm not breaking any privacy stuff.
[ML-Scripting]Is this possible?
Moderator: NADEO
Re: [ML-Scripting]Is this possible?
It's probably not bulletproof, but you could check the value of CurMap. If it's not Null, then there's a high chance that the player is on a server (or editing a map in the editor?).
Code: Select all
<script><!--
main() {
while(True) {
yield;
if (CurMap != Null) {
log(Now^"> I'm on a server");
} else {
log(Now^"> I'm not on a server");
}
}
}
--></script>
- Rots
- Translator
- Posts: 1101
- Joined: 01 Sep 2010, 14:39
- Manialink: revival
- Location: España, Barcelona
Re: [ML-Scripting]Is this possible?
Ah! Nice idea, I'll give it a try
Do I need to #include something?

Do I need to #include something?
Re: [ML-Scripting]Is this possible?
No.Rots wrote:Do I need to #include something?
Who is online
Users browsing this forum: No registered users and 3 guests