21.09.2012, 20:24
pawn Код:
stock SalvarConta(playerid)
{
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), "Contas/%s.ini", Nome);
if(DOF2_FileExists(String))
{
DOF2_SetInt(String, "Dinheiro", GetPlayerMoney(playerid));
DOF2_SetInt(String, "Score", GetPlayerScore(playerid));
DOF2_SetInt(String, "Banco", TitoInfo[playerid][pBank]);
DOF2_SetInt(String, "Score", GetPlayerScore(playerid));
DOF2_SetInt(String, "AdiminLevel", TitoInfo[playerid][pAdmin]);
DOF2_SetInt(String, "Emprego", TitoInfo[playerid][pJob]);
DOF2_SetBool(String, "Tutorial", TitoInfo[playerid][pTut]);
DOF2_SetInt(String, "Cash", TitoInfo[playerid][pCash]);
DOF2_SetInt(String, "Respeito", TitoInfo[playerid][pRespeito]);
DOF2_SetBool(String, "Empresa", TitoInfo[playerid][Empresa]);
DOF2_SetInt(String, "Aviso", TitoInfo[playerid][pAviso]);
DOF2_SetInt(String, "Skin", GetPlayerSkin(playerid));
DOF2_SetBool(String, "Indentidade", TitoInfo[playerid][Indentidade]);
DOF2_SetInt(String, "Drogas", TitoInfo[playerid][pDrogas]);
DOF2_SetInt(String, "Dinamite", TitoInfo[playerid][pDinamite]);
DOF2_SetInt(String, "Total Matou", TotalMatou[playerid]);
DOF2_SetInt(String, "Total Morreu", TotalMorreu[playerid]);
DOF2_SetInt(String, "Total Logou", TotalLogou[playerid]);
}
return 1;
}