17.06.2014, 17:32
Код:
public OnPlayerDisconnect(playerid, reason) { dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]); dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]); dini_IntSet(file, "RobLevel",PlayerInfo[playerid][pRobRank]); dini_IntSet(file, "Money", GetPlayerMoney(playerid)); return 1; }
and for playerrigester
Код:
dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel] = 0); dini_IntSet(file, "RobLevel",PlayerInfo[playerid][pRobRank] = 0); dini_IntSet(file, "Money",PlayerInfo[playerid][pCash] = 3000); dini_IntSet(file, "Score",PlayerInfo[playerid][pScore] = 0);
Код:
PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel"); PlayerInfo[playerid][pScore] = dini_Int(file, "Score"); PlayerInfo[playerid][pCash] = dini_Int(file, "Money");