[pedido] acresentar skin e posiзгo
#1

tem como acresentar o salvalmento das skin e posiзгo xyz pra min?
presizar de mais algo avisa...

pawn Код:
new Sexo[MAX_PLAYERS];
new TotalMatou[MAX_PLAYERS];
new TotalMorreu[MAX_PLAYERS];
new TotalLogou[MAX_PLAYERS];

forward SalvarLevel(playerid);
forward CarregarLevel(playerid);

SalvarPlayer(playerid)
{
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[50];
    format(String, sizeof(String), CONTAS, Nome);
    if(Sexo[playerid] == 1) dini_Set(String,"Sexo", "Masculino");
    else if(Sexo[playerid] == 2) dini_Set(String,"Sexo", "Feminino");
    dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid));
    dini_IntSet(String,"Total Matou", TotalMatou[playerid]);
    dini_IntSet(String,"Total Morreu", TotalMorreu[playerid]);
    dini_IntSet(String,"Total Logou", TotalLogou[playerid]);

    return 1;
}

CarregarPlayer(playerid)
{
    new Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    new String[50];
    format(String, sizeof(String), CONTAS, Nome);
    if(!strcmp(dini_Get(String,"Sexo"), "Masculino")) Sexo[playerid] = 1;
    else if (!strcmp(dini_Get(String,"Sexo"), "Feminino")) Sexo[playerid] = 2;
    GivePlayerMoney(playerid, dini_Int(String,"Dinheiro"));
    TotalMatou[playerid] = dini_Int(String, "Total Matou");
    TotalMorreu[playerid] = dini_Int(String, "Total Morreu");
    TotalLogou[playerid] = dini_Int(String, "Total Logou");
    return 1;
}
Reply


Messages In This Thread
[pedido] acresentar skin e posiзгo - by gabriel_matador - 30.04.2012, 01:12
Re: [pedido] acresentar skin e posiзгo - by Detonador - 30.04.2012, 01:17
Re: [pedido] acresentar skin e posiзгo - by gabriel_matador - 30.04.2012, 01:40
Re: [pedido] acresentar skin e posiзгo - by Detonador - 30.04.2012, 14:12
Re: [pedido] acresentar skin e posiзгo - by humildadeforever - 30.04.2012, 15:03
Re: [pedido] acresentar skin e posiзгo - by Detonador - 30.04.2012, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)