Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock Path(playerid)
- new str[128],name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- format(str,sizeof(str),UserPath,name);
- return str;
- }
- stock SaveAccount(playerid)
- {
- new INI:file = INI_Open(Path(playerid));
- INI_SetTag(file, "PLAYER DATA");
- INI_WriteInt(file, "MONEY", GetPlayerMoney(playerid));
- INI_WriteInt(file, "SKIN", GetPlayerSkin(playerid));
- INI_WriteInt(file, "LEVEL", GetPlayerScore(playerid));
- INI_WriteInt(file, "EXP", PLAYER_INFO[playerid][EXP]);
- INI_WriteInt(file, "KILLS", PLAYER_INFO[playerid][KILLS]);
- INI_WriteInt(file, "DEATHS", PLAYER_INFO[playerid][DEATHS]);
- INI_WriteInt(file, "LOGGED IN", PLAYER_INFO[playerid][IS_LOGGEDIN]);
- INI_WriteInt(file, "FIRST CONNECTION", PLAYER_INFO[playerid][NEW_REGISTRATION]);
- return 1;
- }
- stock SaveAccounts()
- {
- foreach (new i : Player)
- {
- SaveAccount(i);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement