Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Iter_Add(LoginQueue[1], playerid);
    format(gString, 100, "%d players in queue (eta: 06 sec)~n~your position: 1", Iter_Count(LoginQueue[1]));
    ShowInfo(playerid, "~y~login queue", gString, 2);
    if(Iter_Count(LoginQueue[0]) < MAX_LOGIN) {
        PlayerVar[playerid][ServerTimer][0] = 1;
        PlayerVar[playerid][ServerTimer][1] = 6;
        Iter_Add(LoginQueue[0], playerid);
    }
    return bool:true;
}

Posted

PlayerLoginQueue(playerid) {
    if(player_selected[playerid] == 15 || IsPlayerLogged(playerid)) return true;
    gString[0] = EOS;
    new x = Iter_Count(LoginQueue[1]);
    format(gString, 100, "%d players in queue (eta: %02d sec)~n~your position: %d", x, (x - (PlayerInLoginQueue)) + 4, (x - (PlayerInLoginQueue + 1)));
    PlayerTextDrawSetString(playerid, InfoxPTD[playerid][1], gString);
    PlayerInLoginQueue++;
    return true;
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.