GiDan's admin system
#9

No, here is the line in on OnPlayerDisconnect:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new
        pFile[35];

    format(pFile, 35, Player_File, GetName(playerid));
   
    new
    INI:UserFile = INI_Open(pFile);
    INI_WriteInt(UserFile, "Admin", P_Data[playerid][pAdmin]);
    INI_WriteInt(UserFile, "Money", GetPlayerMoney(playerid));
    INI_WriteInt(UserFile, "Score", GetPlayerScore(playerid));
    INI_WriteInt(UserFile, "Skin", P_Data[playerid][pSkin]);
    INI_WriteInt(UserFile, "Warn", P_Data[playerid][pWarn]);
    INI_WriteInt(UserFile, "VIP", P_Data[playerid][VIP]);

    INI_Close(UserFile);
    return 1;
}
Reply


Messages In This Thread
GiDan's admin system - by Primard - 10.01.2015, 13:36
Re: GiDan's admin system - by iCurse - 10.01.2015, 13:40
Re: GiDan's admin system - by Primard - 10.01.2015, 13:41
Re: GiDan's admin system - by iCurse - 10.01.2015, 13:44
Re: GiDan's admin system - by Primard - 10.01.2015, 13:59
Re: GiDan's admin system - by Primard - 10.01.2015, 14:08
Re: GiDan's admin system - by Primard - 11.01.2015, 00:32
Re: GiDan's admin system - by Arxalan - 11.01.2015, 05:23
Re: GiDan's admin system - by Primard - 12.01.2015, 08:33

Forum Jump:


Users browsing this thread: 2 Guest(s)