03.11.2015, 21:07
Because you need something like this:
Код:
public OnPlayerDisconnect(playerid, reason) { new INI:File = INI_Open(UserPath(playerid)); // - Opens the Userpath and saves it when they disconnect. INI_SetTag(File,"Roleplay - User Data"); // - Below, add your own loading things but make it like mine, this is a layout I've made for you. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)); INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]); INI_Close(File); } return 1; }