13.08.2011, 18:30
I knew your script. I still have it on my PC.
OnPlayerDisconnect saving (remove your old one)
OnDialogResponse. DIALOG_REGISTER:
DIALOG_LOGIN:
Remove old ones and put mine.
OnPlayerDisconnect saving (remove your old one)
pawn Код:
if(INI_Open(getINI(playerid)))
{
INI_WriteInt("Cash", GetPlayerMoney(playerid));
INI_WriteInt("Admin", PlayerInfo[playerid][pAdmin]);
INI_WriteInt("FirstTime", gFirstTimeHasJoined[playerid]);
INI_WriteInt("Skin", GetPlayerSkin(playerid));
INI_WriteInt("Score", GetPlayerScore(playerid));
INI_Save();
INI_Close();
}
pawn Код:
INI_WriteString("Password",inputtext);
INI_WriteInt("Cash", 0);
INI_WriteInt("Admin", 0);
INI_WriteInt("FirstTime", 0);
INI_WriteInt("Skin", 0);
INI_WriteInt("Score", 0);
pawn Код:
GivePlayerMoney( playerid, INI_ReadInt( "Cash" ) );
PlayerInfo[playerid][pAdmin] = INI_ReadInt("Admin");
gFirstTimeHasJoined[playerid] = INI_ReadInt("FirstTime");
gPlayerSkinForEver[playerid] = INI_ReadInt("Skin");
SetPlayerScore( playerid, INI_ReadInt( "Score" ) );