Код:
public OnPlayerDisconnect(playerid, reason)
{
if (GetPVarInt(playerid, "RegisterTextDraws"))
{
for(new i; i < MAX_REGISTER_TEXTDRAWS; i++)
{
PlayerTextDrawHide(playerid, RegisterTextDraw[playerid][i]);
PlayerTextDrawDestroy(playerid, RegisterTextDraw[playerid][i]);
}
}
if (GetPVarInt(playerid, "LogginTextDraws"))
{
for(new i; i < MAX_LOGGIN_TEXTDRAWS; i++)
{
PlayerTextDrawHide(playerid, LogginTextDraw[playerid][i]);
PlayerTextDrawDestroy(playerid, LogginTextDraw[playerid][i]);
}
}
SetPVarString(playerid, "Password", EOS); //595 LINE
SetPVarInt(playerid, "Gender", -1);
SetPVarInt(playerid, "BirthDateDay", -1);
SetPVarInt(playerid, "BirthDateMonth", -1);
SetPVarInt(playerid, "BirthDateYear", -1);
SetPVarInt(playerid, "LogginAttempts", -1);
SetPVarInt(playerid, "CurrentPreviewModel", -1);
SetPVarInt(playerid, "RegisterTextDraws", -1);
SetPVarInt(playerid, "LogginTextDraws", -1);
SetPVarInt(playerid, "LoggedInPlayer", -1);
SetPVarInt(playerid, "LogginAttempts", 0);
return 1;
}