31.05.2016, 15:42
(
Последний раз редактировалось CSLangdale; 31.05.2016 в 16:45.
)
Код:
forward Save_PlayerInfo(); public Save_PlayerInfo() //Saves all the garages, changed to a public because of the autosave timer { new playerid; if(Logged[playerid] == true) { new File, path[64]; format(path,sizeof(path),"/Players/%d.ini"); new INI:file = INI_Open(path); INI_WriteInt(File, "Admin", PlayerInfo[playerid][pAdmin]); INI_WriteInt(File, "Level", PlayerInfo[playerid][pLevel]); INI_WriteInt(File, "Skin", GetPlayerSkin(playerid)); INI_WriteInt(File, "Registered", PlayerInfo[playerid][Registered]); INI_WriteInt(File, "HandMoney", GetPlayerMoney(playerid)); INI_Close(file); } }
It is my attempt at setting an autosave system to save players stats