PHP код:
stock SalvarArq( playerid )
{
if( pInfo[ playerid ][ Logado ] == true )
{
format( gFile, sizeof( gFile ), "Contas/%s.ini", PlayerName( playerid ));
DOF2_SetInt( gFile, "Dinheiro", GetPlayerCash( playerid ));
DOF2_SetInt( gFile, "ContaBanco", pInfo[ playerid ][ ContaBanco ] );
DOF2_SetInt( gFile, "Profissao", pInfo[ playerid ][ Prof ] );
DOF2_SetInt( gFile, "Sexo", pInfo[ playerid ][ Sexo ] );
DOF2_SetInt( gFile, "Exp", pInfo[ playerid ][ Exp ] );
DOF2_SetInt( gFile, "SegUP", pInfo[ playerid ][ SegUP ] );
DOF2_SetInt( gFile, "MinUP", pInfo[ playerid ][ MinUP ] );
DOF2_SetInt( gFile, "Level", pInfo[ playerid ][ Level ] );
DOF2_SetInt( gFile, "Gasolina", pInfo[ playerid ][ Gas ] );
DOF2_SetInt( gFile, "HabTTerrestre", pInfo[ playerid ][ HabTTerrestre ] );
DOF2_SetInt( gFile, "HabNNautica", pInfo[ playerid ][ HabNNautica ] );
DOF2_SetInt( gFile, "HabAAerea", pInfo[ playerid ][ HabAAerea ] );
DOF2_SetInt( gFile, "Procurado", GetPlayerWantedLevel( playerid ));
DOF2_SetInt( gFile, "Preso", pInfo[ playerid ][ Preso ] );
DOF2_SetInt( gFile, "PresoE", pInfo[ playerid ][ PresoE ] );
DOF2_SetInt( gFile, "Cocaina", pInfo[ playerid ][ Pego_QtaCoca ] );
DOF2_SetInt( gFile, "Maconha", pInfo[ playerid ][ Pego_QtaMaco ] );
DOF2_SetInt( gFile, "Crack", pInfo[ playerid ][ Pego_QtaCrac ] );
DOF2_SetInt( gFile, "Cocaina", pInfo[ playerid ][ PT_Cocaina ] );
DOF2_SetInt( gFile, "Maconha", pInfo[ playerid ][ PT_Maconha ] );
DOF2_SetInt( gFile, "Crack", pInfo[ playerid ][ PT_Crack ] );
DOF2_SetInt( gFile, "ContratadoA", pInfo[ playerid ][ ContratadoA ] );
DOF2_SetInt( gFile, "Sequestrado", pInfo[ playerid ][ Sequestrado ] );
DOF2_SetInt( gFile, "SaiuSeq", pInfo[ playerid ][ SaiuSeq ] );
DOF2_SetInt( gFile, "TemGPS", pInfo[ playerid ][ Tem_GPS ] );
DOF2_SetInt( gFile, "TemRelogioUP", pInfo[ playerid ][ Tem_RelogioUP ] );
DOF2_SetInt( gFile, "VeiculoConce", pInfo[ playerid ][ Veiculo_Conce ] );
DOF2_SetInt( gFile, "CorRelogio", pInfo[ playerid ][ RelogioCor ] );
DOF2_SetInt( gFile, "RelogioONOFF", pInfo[ playerid ][ R_UP_ON_OFF ] );
DOF2_SetInt( gFile, "TemVelocimetro", pInfo[ playerid ][ Tem_Velocimetro ] );
DOF2_SetInt( gFile, "VeloONOFF", pInfo[ playerid ][ VelocimetroO_F ] );
DOF2_SetInt( gFile, "TemCura", pInfo[ playerid ][ Tem_Cura ] );
DOF2_SetInt( gFile, "Kit", pInfo[ playerid ][ Tem_Kit ] );
DOF2_SetInt( gFile, "Matou", pInfo[ playerid ][ fMatou ] );
DOF2_SetInt( gFile, "Morreu", pInfo[ playerid ][ fMorreu ] );
DOF2_SetInt( gFile, "Creditos", pInfo[ playerid ][ Celular_c ] );
DOF2_SaveFile();
//
aInfo[ playerid ][ Programador ] = 0;
aInfo[ playerid ][ Gerente ] = 0;
aInfo[ playerid ][ Administrador ] = 0;
aInfo[ playerid ][ Moderador ] = 0;
aInfo[ playerid ][ Ajudante ] = 0;
}
return 1;
}