Changing Model Download When Logging in??
#1

Currently when new players connect to the server this shows up over the login box



Is it possible at all to not have that show up and wait until the player has successfully logged into the server before it begins downloading the models? Or even if its possible to hide it completely and just download in the background?
Reply
#2

Your best bet is to just show your login/registration dialogs (along with everything else you have under OnPlayerConnect for the most part) AFTER a player finishes downloading everything. Which would be OnPlayerFinishedDownloading.
Reply
#3

And stop using that cheat..
Reply
#4

Quote:
Originally Posted by Verc
Посмотреть сообщение
And stop using that cheat..
Some people use it to save positions faster and to save cars faster
Reply
#5

I recommend you use part of the account read resources in OnPlayerConnect and login parameter in OnPlayerRequestClass.

OnPlayerFinishedDownloading is only called once when it connects. When reconnected (loss of connection) this callback is not called.

Compare to verify that the login parameter for the player has been shown, otherwise show and change the value of the variable.

PHP код:
public OnPlayerConnect(playerid)
{
    
ShowLogin[playerid]=false;
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    if(!
ShowLogin[playerid])
    {
        
//ShowPlayerDialog(playerid, ...);
        
ShowLogin[playerid]=true;
        return 
0;
    }
    return 
1;

Reply
#6

Quote:
Originally Posted by Verc
Посмотреть сообщение
And stop using that cheat..
How is it cheating when i own and run the server haha? without it administrating it would be alot harder
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)