06.07.2018, 15:12
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.
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(playerid, classid)
{
if(!ShowLogin[playerid])
{
//ShowPlayerDialog(playerid, ...);
ShowLogin[playerid]=true;
return 0;
}
return 1;
}

