31.05.2011, 11:42
pawn Код:
public SavePlayer()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerOnline(i))
{
dini_IntSet(File, "PlayerMoney", PlayerInfo[i][PlayerCash] = GetPlayerMoney(i));
dini_IntSet(File, "AdminLevel", PlayerInfo[i][AdminLevel]);
dini_IntSet(File, "Rank", PlayerInfo[i][Rank] = GetPlayerScore(i));
dini_IntSet(File, "VIP", PlayerInfo[i][VIP]);
dini_IntSet(File, "Skin", PlayerInfo[i][Skin] = GetPlayerSkin(i));
}
else return 0;
}
return 1;
}