Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SAVE USER
- stock SaveUser(playerid){
- new INI:File = INI_Open(UserPath(playerid, USERPATH));
- INI_WriteInt(File, "Lozinka", PlayerInfo[playerid][Lozinka]);
- INI_WriteInt(File, "Novac", PlayerInfo[playerid][Novac]);
- INI_WriteInt(File, "Level", PlayerInfo[playerid][Level]);
- INI_WriteInt(File, "Respekti", PlayerInfo[playerid][Respekti]);
- INI_WriteInt(File, "Banka", PlayerInfo[playerid][Banka]);
- INI_WriteInt(File, "Zlato", PlayerInfo[playerid][Zlato]);
- INI_WriteInt(File, "Org", PlayerInfo[playerid][Org]);
- INI_WriteInt(File, "Lider", PlayerInfo[playerid][Lider]);
- INI_WriteInt(File, "WL", PlayerInfo[playerid][WL]);
- INI_WriteInt(File, "Mute", PlayerInfo[playerid][Mute]);
- INI_WriteInt(File, "Jail", PlayerInfo[playerid][Jail]);
- INI_WriteInt(File, "TelefonBroj", PlayerInfo[playerid][TelefonBroj]);
- INI_WriteInt(File, "TelefonKredit", PlayerInfo[playerid][TelefonKredit]);
- INI_WriteInt(File, "Warn", PlayerInfo[playerid][Warn]);
- INI_WriteInt(File, "Skin", PlayerInfo[playerid][Skin]);
- INI_WriteInt(File, "Vozilo1", PlayerInfo[playerid][Vozilo1]);
- INI_WriteInt(File, "Vozilo2", PlayerInfo[playerid][Vozilo2]);
- INI_WriteInt(File, "Vozilo3", PlayerInfo[playerid][Vozilo3]);
- INI_WriteInt(File, "Kuca", PlayerInfo[playerid][Kuca]);
- INI_WriteInt(File, "Stan", PlayerInfo[playerid][Stan]);
- INI_WriteInt(File, "Garaza", PlayerInfo[playerid][Garaza]);
- INI_WriteInt(File, "VIP", PlayerInfo[playerid][VIP]);
- INI_WriteString(File, "Rank", PlayerInfo[playerid][Rank]);
- INI_WriteInt(File, "Admin", PlayerInfo[playerid][Admin]);
- INI_WriteInt(File, "Supporter", PlayerInfo[playerid][Supporter]);
- INI_WriteInt(File, "StaffCode", PlayerInfo[playerid][StaffCode]);
- INI_WriteInt(File, "AutoDozvola", PlayerInfo[playerid][AutoDozvola]);
- INI_WriteInt(File, "MotorDozvola", PlayerInfo[playerid][MotorDozvola]);
- INI_WriteInt(File, "KamionKombiDozvola", PlayerInfo[playerid][KamionKombiDozvola]);
- INI_WriteInt(File, "LetelicaDozvola", PlayerInfo[playerid][LetelicaDozvola]);
- INI_WriteInt(File, "BrodDozvola", PlayerInfo[playerid][BrodDozvola]);
- INI_WriteInt(File, "Promoter", PlayerInfo[playerid][Promoter]);
- INI_WriteInt(File, "OrgRank", PlayerInfo[playerid][OrgRank]);
- INI_WriteString(File, "Email", PlayerInfo[playerid][Email]);
- INI_WriteInt(File, "Godine", PlayerInfo[playerid][Godine]);
- INI_WriteString(File, "Pol", PlayerInfo[playerid][Pol]);
- INI_Close(File);
- return 1;
- }
- ON PLAYER DISCONNECT
- public OnPlayerDisconnect(playerid, reason){
- SaveUser(playerid);
- // ---------------------------------------------------------------
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment