Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock SavePlayer(playerid)
- {
- if(p_logged{playerid} == true) return true;
- static const fmt_str[] = "accounts/%s.ini";
- new string[sizeof(fmt_str)-2+MAX_PLAYER_NAME+4];
- format(string, sizeof(string), fmt_str, pNick(playerid));
- new iniFile = ini_openFile(string);
- ini_setString(iniFile, "parola", p_info[playerid][p_password]);
- ini_setString(iniFile, "email", p_info[playerid][p_mail]);
- p_info[playerid][p_level] = GetPlayerScore(playerid);
- ini_setString(iniFile, "Level", p_info[playerid][p_level]);
- ini_setString(iniFile, "pCarLic", p_info[playerid][p_permis]);
- ini_setString(iniFile, "Admin", p_info[playerid][p_admin]);
- ini_setString(iniFile, "Job", p_info[playerid][p_job]);
- p_info[playerid][p_money] = GetPlayerMoney(playerid);
- ini_setInteger(iniFile, "bani", p_info[playerid][p_money]);
- p_info[playerid][p_skin] = GetPlayerSkin(playerid);
- ini_setInteger(iniFile, "Skin", p_info[playerid][p_skin]);
- ini_closeFile(iniFile);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement