28.05.2013, 13:58
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File, "Level",PlayerInfo[playerid][pLevel]);
INI_WriteInt(File, "Money",GetPlayerMoney( playerid ));
INI_WriteInt(File, "Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File, "Tester",PlayerInfo[playerid][pTester]);
INI_WriteInt(File, "Guard",PlayerInfo[playerid][pGuard]);
INI_WriteInt(File, "Vip",PlayerInfo[playerid][pVip]);
INI_WriteInt(File, "Spawn",PlayerInfo[playerid][pSpawn]);
INI_WriteInt(File, "Model",PlayerInfo[playerid][pModel]);
INI_WriteInt(File, "Locked",PlayerInfo[playerid][pLocked]);
INI_WriteInt(File, "FirstJoined", PlayerInfo[playerid][pFirstJoined]);
INI_WriteInt(File, "Sex", PlayerInfo[playerid][pSex]);
INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
INI_WriteInt(File, "Origin", PlayerInfo[playerid][pOrigin]);
INI_WriteInt(File, "Respect", PlayerInfo[playerid][pExp]);
INI_WriteInt(File, "Warns", PlayerInfo[playerid][pWarns]);
INI_WriteInt(File, "Selected", PlayerInfo[playerid][pSelected]);
INI_WriteInt(File, "Continent", PlayerInfo[playerid][pPlace]);
INI_WriteInt(File, "Muted", PlayerInfo[playerid][pMuted]);
INI_WriteInt(File, "MuteTime", PlayerInfo[playerid][pMuteTime]);
INI_WriteInt(File, "Ph", PlayerInfo[playerid][pNumber]);
INI_WriteInt(File, "DriveLic", PlayerInfo[playerid][pDriveLic]);
INI_Close(File);
return 1;
}