Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: None  |  size: 1.43 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public OnPlayerDisconnect(playerid, reason)
  2. {
  3.         new INI:File = INI_Open(UserPath(playerid));
  4.     INI_SetTag(File,"data");
  5.     INI_WriteInt(File, "Level",PlayerInfo[playerid][pLevel]);
  6.         INI_WriteInt(File, "Money",PlayerInfo[playerid][pCash]);
  7.         INI_WriteInt(File, "Admin",PlayerInfo[playerid][pAdmin]);
  8.         INI_WriteInt(File, "Vip",PlayerInfo[playerid][pVip]);
  9.         INI_WriteInt(File, "Spawn",PlayerInfo[playerid][pSpawn]);
  10.         INI_WriteInt(File, "Model",PlayerInfo[playerid][pModel]);
  11.         INI_WriteInt(File, "Locked",PlayerInfo[playerid][pLocked]);
  12.         INI_WriteInt(File, "FirstJoined", PlayerInfo[playerid][pFirstJoined]);
  13.         INI_WriteInt(File, "Sex", PlayerInfo[playerid][pSex]);
  14.         INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge]);
  15.         INI_WriteInt(File, "Origin", PlayerInfo[playerid][pOrigin]);
  16.         INI_WriteInt(File, "Respect", PlayerInfo[playerid][pExp]);
  17.         INI_WriteInt(File, "Warns", PlayerInfo[playerid][pWarns]);
  18.         INI_WriteInt(File, "Selected", PlayerInfo[playerid][pSelected]);
  19.         INI_WriteInt(File, "Continent", PlayerInfo[playerid][pPlace]);
  20.         INI_WriteInt(File, "Muted", PlayerInfo[playerid][pMuted]);
  21.         INI_WriteInt(File, "MuteTime", PlayerInfo[playerid][pMuteTime]);
  22.         INI_WriteInt(File, "Ph", PlayerInfo[playerid][pNumber]);
  23.         INI_WriteInt(File, "DriveLic", PlayerInfo[playerid][pDriveLic]);
  24.         INI_WriteInt(File, "Kills",PlayerInfo[playerid][pKills]);
  25.     INI_WriteInt(File, "Deaths",PlayerInfo[playerid][pDeaths]);
  26.     INI_Close(File);
  27.         return 1;
  28. }