[AJUDA] Salvar emprego do player
#4

pawn Код:
SalvarPlayer(playerid)
{
    new Float:Vida;
    new Float:Colete;
    GetPlayerHealth(playerid, Vida);
    GetPlayerArmour(playerid, Colete);
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[50];
    format(String, sizeof(String), Contas, Nome);
    dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid));
    dini_FloatSet(String,"Vida", Vida);
    dini_FloatSet(String,"Colete", Colete);
    dini_IntSet(String,"Matou", Matou[playerid]);
    dini_IntSet(String,"Morreu", Morreu[playerid]);
    dini_IntSet(String,"Logou", Logou[playerid]);
    dini_IntSet(String,"Profissao", gTeam[playerid]);
    return 1;
}
SetarPlayer(playerid)
{
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[50];
    format(String, sizeof(String), Contas, Nome);
    GivePlayerMoney(playerid, dini_Int(String,"Dinheiro"));
    SetPlayerHealth(playerid, dini_Int(String,"Vida"));
    SetPlayerArmour(playerid, dini_Int(String,"Colete"));
    Matou[playerid] = dini_Int(String, "Matou");
    Morreu[playerid] = dini_Int(String, "Morreu");
    Logou[playerid] = dini_Int(String, "Logou");
    gTeam[playerid] = dini_Int(String, "Profissao");

    return 1;
}

Atenciosamente,
Falcon.
Reply


Messages In This Thread
[AJUDA] Salvar emprego do player - by Lucas OutLawz - 20.06.2011, 03:41
Re: [AJUDA] Salvar emprego do player - by Shadoww5 - 20.06.2011, 11:02
Re: [AJUDA] Salvar emprego do player - by Lucas OutLawz - 20.06.2011, 12:20
Re: [AJUDA] Salvar emprego do player - by Falcon. - 20.06.2011, 12:29
Re: [AJUDA] Salvar emprego do player - by Lucas OutLawz - 20.06.2011, 12:32
Re: [AJUDA] Salvar emprego do player - by mengueh - 20.06.2011, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)