Changing Model Download When Logging in??
#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


Messages In This Thread
Changing Model Download When Logging in?? - by NinjaChicken - 06.07.2018, 07:09
Re: Changing Model Download When Logging in?? - by CantBeJohn - 06.07.2018, 09:41
Re: Changing Model Download When Logging in?? - by Verc - 06.07.2018, 12:02
Re: Changing Model Download When Logging in?? - by Lokii - 06.07.2018, 13:20
Re: Changing Model Download When Logging in?? - by Locky_ - 06.07.2018, 15:12
Re: Changing Model Download When Logging in?? - by NinjaChicken - 06.07.2018, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)