[Y_INI]Registering with another account loads previous playerid account
#4

You need to reset your player variables once the player disconnects. I'm sure you have a player enum array which stores stats like money, skin, etc. You'll need to reset those when the player disconnects.

For example:
Код:
public OnPlayerDisconnect(playerid, reason)
{
    PlayerInfo[playerid][pMoney] = 0;
    PlayerInfo[playerid][pSkin] = 0;
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)