[AJUDA] DOF2 Nгo estб salvando
#2

pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
    SalvarConta(playerid);
    return 1;
}

public OnGameModeExit()
{
    DOF2_Exit();
    return 1;
}

SalvarConta(playerid)
{
    new file[64];
    new Float:Vida, Float:Colete;
    GetPlayerHealth(playerid, Vida);
    GetPlayerArmour(playerid, Colete);

    format(file, sizeof(file), d_CONTAS, PlayerInfo[playerid][Nome]);
    DOF2_SetInt(file, "Assassinatos",PlayerInfo[playerid][Assassinatos]);
    DOF2_SetInt(file, "Mortes",PlayerInfo[playerid][Mortes]);
    DOF2_SetInt(file, "Dinheiro",PlayerInfo[playerid][Dinheiro]);
    DOF2_SetInt(file, "AdminLevel",PlayerInfo[playerid][Admin]);
    DOF2_SetFloat(file, "Vida",Vida);
    DOF2_SetFloat(file, "Colete",Colete);
    return DOF2_SaveFile();
}
Abraзos.
Reply


Messages In This Thread
[AJUDA] DOF2 Nгo estб salvando - by Chis - 14.05.2012, 21:22
Re: [AJUDA] DOF2 Nгo estб salvando - by Lуs - 14.05.2012, 21:23
Respuesta: [AJUDA] DOF2 Nгo estб salvando - by Chis - 14.05.2012, 21:31
Re: [AJUDA] DOF2 Nгo estб salvando - by mau.tito - 14.05.2012, 21:57
Respuesta: [AJUDA] DOF2 Nгo estб salvando - by Chis - 14.05.2012, 21:59
Re: [AJUDA] DOF2 Nгo estб salvando - by ViictorDaay- - 14.05.2012, 22:11
Re: [AJUDA] DOF2 Nгo estб salvando - by paulor - 14.05.2012, 22:39
Respuesta: [AJUDA] DOF2 Nгo estб salvando - by Chis - 14.05.2012, 22:52
Re: [AJUDA] DOF2 Nгo estб salvando - by Joker_OutLock - 14.05.2012, 22:56
Re: [AJUDA] DOF2 Nгo estб salvando - by paulor - 14.05.2012, 23:08

Forum Jump:


Users browsing this thread: 2 Guest(s)