PHP код:
stock Desconnectar(playerid)
{
new conta [ 256 ];
format(conta, sizeof(conta), PASTA_CONTAS, PlayerName(playerid));
if(PlayerInfo[playerid][pLogged] == 1)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
new grana;
grana = GetPlayerGrana(playerid);
dini_IntSet(conta, "Admin", pAdmin[playerid]);
dini_IntSet(conta, "Profissao", PlayerInfo[ playerid ][pProfissao]);
dini_IntSet(conta, "Guardiao", guardiao[playerid]);
dini_IntSet(conta, "Dinheiro", grana);
dini_IntSet(conta,"Continuar",1);
dini_FloatSet(conta,"ContinuarX",Float:X);
dini_FloatSet(conta,"ContinuarY",Float:Y);
dini_FloatSet(conta,"ContinuarZ",Float:Z);
dini_IntSet(conta, "Entrevista", 0);
dini_IntSet(conta,"aAdmin",0);
dini_IntSet(conta, "EXP", PlayerInfo[playerid][pExpe]);
dini_IntSet(conta, "PlanoDeSaude", PlayerInfo[playerid][pPlano]);
dini_IntSet(conta, "Cash", PlayerInfo[playerid][pCash]);
dini_IntSet(conta, "Punidop",PlayerInfo[playerid][pPunidop]);
dini_IntSet(conta, "Gasolina", PlayerInfo[playerid][Gasolina]);
dini_IntSet(conta, "Diesel", PlayerInfo[playerid][Diesel]);
dini_IntSet(conta, "Etanol", PlayerInfo[playerid][Etanol]);
dini_IntSet(conta, "Relogioupm", minUP[playerid]);
dini_IntSet(conta, "Relogioups", segUP[playerid]);
dini_IntSet(conta, "sequestrado",sequestrado [ playerid ]);
dini_IntSet(conta, "Dinheiro", GetPlayerGrana(playerid));
dini_IntSet(conta, "Procurado", GetPlayerWantedLevel(playerid));
dini_IntSet(conta, "Preso", preso [ playerid ]);
dini_IntSet(conta, "rouboubanco", PlayerInfo[playerid][pRouboubanco]);
dini_IntSet(conta, "jasequestro", jasequestro [ playerid ]);
dini_IntSet(conta, "HabTerrestre", PlayerInfo[playerid][pHabTerrestre]);
dini_IntSet(conta, "HabNautica", PlayerInfo[playerid][pHabNautica]);
dini_IntSet(conta, "HabAerea", PlayerInfo[playerid][pHabAerea]);
dini_IntSet(conta, "HEVG", PlayerInfo[playerid][pHEVG]);
dini_IntSet(conta, "HELG", PlayerInfo[playerid][pHELG]);
dini_IntSet(conta, "HEAG", PlayerInfo[playerid][pHEAG]);
dini_IntSet(conta, "Porte", PlayerInfo[playerid][pPorte]);
dini_IntSet(conta, "Titulo", PlayerInfo[playerid][pTitulo]);
dini_IntSet(conta, "seg", PlayerInfo[playerid] [psegUP]);
dini_IntSet(conta, "min", PlayerInfo[playerid] [pminUP]);
dini_IntSet(conta, "pPreso", PlayerInfo[ playerid ][ pPreso ] );
new UltLog[100],Numd[6]=0;
getdate(Numd[0],Numd[1],Numd[2]);
gettime(Numd[3],Numd[4],Numd[5]);
format(UltLog,sizeof(UltLog),"%d/%d/%d as %d:%d",Numd[2],Numd[1],Numd[0],Numd[3],Numd[4]);
dini_Set(conta,"Ultimo-Login",UltLog);
ValorReceber2[playerid] = 0;
TemIncendio[playerid] = 0;
VaiReceber[playerid] = 0;
Estacionou[playerid] = 0;
PlayerInfo[playerid][psegUP] = 0;
PlayerInfo[playerid][pminUP] = 0;
CPSERVICE_actualcp[playerid] = 0;
EntrouDM[playerid] = 0;
Delete3DTextLabel(boat[playerid]);
Delete3DTextLabel(boatt2[playerid]);
PlayerInfo[playerid][pFunc1] = 0;
PlayerInfo[playerid][pFunc2] = 0;
PlayerInfo[playerid][pFunc3] = 0;
PlayerInfo[playerid][fardado] = 0;
KillTimer(TimerLoArear[playerid]);
PlayerInfo[playerid][pTitulo] = 0;
PlayerInfo[playerid][pPorte] = 0;
PlayerInfo[playerid][pHabAerea] = 0;
PlayerInfo[playerid][pHabNautica] = 0;
PlayerInfo[playerid][pHabTerrestre] =0;
PlayerInfo[playerid][pHEVG] =0;
PlayerInfo[playerid][pHELG] =0;
PlayerInfo[playerid][pHEAG] =0;
PlayerInfo[playerid][pRouboubanco] =0;
jasequestro[playerid]=0;
vercmds[playerid] = 0;
Mute[playerid] = 0;
PlayerInfo[playerid][pProfissao] = false;
PlayerInfo[playerid][pLevel] = 0;
PlayerInfo[playerid][pExpe] = 0;
PlayerInfo[playerid][pCash] = 0;
PlayerInfo[playerid][pPlano] = 0;
PlayerInfo[playerid][pTmaconha] = 0;
PlayerInfo[playerid][pOfmaconha] = 0;
PlayerInfo[playerid][pTcrack] = 0 ;
PlayerInfo[playerid][pOfcrack] = 0 ;
PlayerInfo[playerid][pTcocaina] = 0 ;
PlayerInfo[playerid][pOfcocaina] = 0 ;
PlayerInfo[playerid][pPunidop] = 0 ;
PlayerInfo[playerid][pConvitent] = 0;
sequestrado [playerid] = 0;
preso [playerid] = 0 ;
SetPlayerWantedLevel(playerid, 0);
Algemado[playerid] = false;
Lendotutorial[playerid] = 0;
localizado[playerid] = 0;
if(PlayerVelocimetro[playerid])
{
KillTimer(PlayerVelocimetroTimer[playerid]);
}
KillTimer(OnPlayerUpdateExTimer[playerid]);
godcar[playerid] = false; //godcar
LocalizarID[playerid] = 0;
Dplos[playerid] = 0;
Dpsan[playerid] = 0;
Dpford[playerid] = 0;
Dpventura[playerid] = 0;
ResetVars(playerid);
ClickMause[ playerid ] = 0;
SetPlayerCheckPoint[ playerid ] = 0;
ParticipandoEvento[ playerid ] = 0;
vOcupou[ playerid ] = -1;
KDS[playerid][Deaths] = 0;
KDS[playerid][Kills] = 0;
SaveWeaponsToFile(playerid);
KillTimer(Timercreditos[AuxiliarTel[playerid]]);
KillTimer(TimerUsoudroga[playerid]);
KillTimer(TimerLocalizar[playerid]);
KillTimer(timercou[playerid]);
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pLogged] = 0;
DMLiberado2[playerid] = 0;
msgcount[playerid] = -1;
msgconvi[playerid] = 0;
convidou[playerid] = -1;
if(IsPlayerInAnyVehicle(playerid) && IsVehicleUsingNeon(GetPlayerVehicleID(playerid))) RemoveNeonFromVehicle(GetPlayerVehicleID(playerid));
}
return 1;
}