18.10.2011, 16:19
Like This :
And When Player Logs In:
pawn Код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Vip",PlayerInfo[playerid][pVip]);
INI_Int("Score",PlayerInfo[playerid][pScore]);
INI_Int("Skin",PlayerInfo[playerid][pSkin]);
INI_Int("Mute",PlayerInfo[playerid][pMuted]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
INI_Int("SRank",PlayerInfo[playerid][pSRank]);
INI_Int("Captures",PlayerInfo[playerid][pCarsCaptured]);
INI_Int("Cookies",PlayerInfo[playerid][pCookies]);
return 1;
}
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);